Skip to content

Plain output when an agent drives the terminal; init sends agents to --answers - #14

Merged
plur9 merged 2 commits into
mainfrom
fix/plain-output-under-agents
Sep 27, 2026
Merged

plur9 merged 2 commits into
mainfrom
fix/plain-output-under-agents

Conversation

@plur9

@plur9 plur9 commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

Cursor's agent runs commands in a real pseudo-terminal, so isTTY was true and
the CLI animated for it: a spinner redrawing 12 times a second, streamed
winget/npm progress, a 30 s ticker. The agent keeps what it reads in its chat
history, stored in Cursor's state.vscdb, which grew too large for Cursor to
open on a Windows user's machine (docs/incidents/2026-09-27-...).

Harness markers (CURSOR_AGENT, CLAUDECODE, CODEX_SANDBOX, GEMINI_CLI) now turn
off animation, streamed installer output, the update notice and prompts. init
under an agent refuses the wizard and names the ask-the-user --answers path.
A person typing in the same editor's terminal keeps the full wizard.

Tests: tests/output.test.ts, written failing first. It includes a real pseudo-terminal run (script) of datacore init with CURSOR_AGENT=1 and checks four things:

  • it refuses the wizard;
  • it names the --answers path;
  • there's no cursor-hiding or screen-clearing escape;
  • the output is under 3 KB.

155/155 pass.

Note: three local commits on main from another session (MEM-68, MEM-69, INS-4) aren't pushed and aren't in this PR. One of them (18d40f6) currently fails the typecheck at init.ts:512 (group possibly undefined).

🤖 Generated with Claude Code

https://claude.ai/code/session_01GSzwHUALnUZdoW7v21dDtr

plur9 and others added 2 commits September 27, 2026 18:32
…--answers

Cursor's agent runs commands in a real pseudo-terminal, so isTTY was true and
the CLI animated for it: a spinner redrawing 12 times a second, streamed
winget/npm progress, a 30 s ticker. The agent keeps what it reads in its chat
history, stored in Cursor's state.vscdb, which grew too large for Cursor to
open on a Windows user's machine (docs/incidents/2026-09-27-...).

Harness markers (CURSOR_AGENT, CLAUDECODE, CODEX_SANDBOX, GEMINI_CLI) now turn
off animation, streamed installer output, the update notice and prompts. init
under an agent refuses the wizard and names the ask-the-user --answers path.
A person typing in the same editor's terminal keeps the full wizard.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GSzwHUALnUZdoW7v21dDtr
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GSzwHUALnUZdoW7v21dDtr
@plur9
plur9 merged commit d586bc0 into main Sep 27, 2026
2 checks passed
@plur9
plur9 deleted the fix/plain-output-under-agents branch September 27, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant