Skip to content

feat: detect Cursor plan "Ready to build?" prompt as waiting_input - #347

Merged
kbwo merged 1 commit into
mainfrom
feat/cursor-agent-explain-verify-brass-lesson
Oct 18, 2026
Merged

kbwo merged 1 commit into
mainfrom
feat/cursor-agent-explain-verify-brass-lesson

Conversation

@kbwo

@kbwo kbwo commented Oct 18, 2026

Copy link
Copy Markdown
Owner

Merge risk

Note

Low - can be merged without reading the diff. The new pattern is covered by a unit test and the existing Cursor detector tests still pass; the only effect is that one more Cursor screen is reported as waiting for input, and a revert fully undoes it.

Summary

  • After proposing a plan, Cursor Agent asks "Ready to build?" and waits for a choice, but ccmanager reported the session as idle.
  • The Cursor state detector now treats the "Ready to build?" prompt as waiting_input.
  • Sessions sitting at Cursor's plan confirmation now show as waiting for input.

Problem

The plan confirmation's choices ("Yes, build locally (b)" / "Yes, build in cloud (c)" / "No, propose changes (p or Esc)") matched none of the existing waiting patterns, so ccmanager treated the screen as idle and did not show the user that Cursor was waiting for them.

Verification

Ran locally at commit 67e2a0d.

  • bunx vitest run src/services/stateDetector/cursor.test.ts → Tests 19 passed (19), including the new "Ready to build?" case.
  • bunx vitest run src → all pass except the 3 submodule test files, which need to write the global git config (git config --global protocol.file.allow always), and src/e2e/returnToMenu.test.ts, which needs a PTY (a pseudo-terminal); neither touches the Cursor detector.
    • bunx vitest run src/e2e run where a PTY is available → Tests 4 passed (4).
  • bun run lint and bun run typecheck → no errors.
  • Not exercised against a live Cursor Agent session; the test reproduces the prompt's text lines.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@kbwo
kbwo marked this pull request as ready for review October 18, 2026 07:56
@kbwo
kbwo merged commit 6b5dd00 into main Oct 18, 2026
1 check passed
@kbwo
kbwo deleted the feat/cursor-agent-explain-verify-brass-lesson branch October 18, 2026 07:57
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