When gsd is spawned as an RPC bridge child process, stdout is a pipe (process.stdout.isTTY === undefined). The TUI render loop would run at ~4,600 renders/sec writing ANSI escape codes to the pipe, consuming 500%+ CPU per process while idle. Add isTTY guard to Terminal interface, ProcessTerminal.start(), TUI.start(), and requestRender() so the entire render pipeline is skipped on non-TTY stdout. RemoteTerminal (browser-backed) correctly reports isTTY=true. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| cli | ||
| core | ||
| modes | ||
| resources/extensions/memory | ||
| tests | ||
| utils | ||
| cli.ts | ||
| config.ts | ||
| index.ts | ||
| main.ts | ||
| migrations.ts | ||