Repository navigation
feat: detect Cursor plan "Ready to build?" prompt as waiting_input - #347
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
waiting_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), andsrc/e2e/returnToMenu.test.ts, which needs a PTY (a pseudo-terminal); neither touches the Cursor detector.bunx vitest run src/e2erun where a PTY is available →Tests 4 passed (4).bun run lintandbun run typecheck→ no errors.🤖 Generated with Claude Code