Skip to content

Black screen hang on launch from a large directory tree (e.g. $HOME) — synchronous FS walk starves first render #67

Description

@Yanbo

Description

Launching klaatcode with cwd set to a large directory tree (e.g. $HOME, which includes ~/Library) hangs forever with a black screen: zero TUI frames are ever emitted, the process spins at ~77–99% CPU indefinitely, and must be kill -9'd. Launching from a small directory works fine and renders the full REPL in seconds.

This is easily misdiagnosed as a terminal-compatibility issue (it reproduces identically in Kitty and Terminal.app), but it is cwd-dependent, not terminal-dependent.

Environment

  • klaatcode --version: 2.5.0 (npm install, darwin-arm64, /opt/homebrew/lib/node_modules/klaatcode/.../bin/klaatcode)
  • macOS Apple Silicon
  • Valid credentials, backend online, update gate skips (already on latest)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions