Skip to content

Avoid auto-submitting orchestration mail to Cursor Agent - #3156

Merged
Jinwoo-H merged 2 commits into
stablyai:mainfrom
nwparker:issue-3034-cursor-orchestration-delivery
May 30, 2026
Merged

Jinwoo-H merged 2 commits into
stablyai:mainfrom
nwparker:issue-3034-cursor-orchestration-delivery

Conversation

@nwparker

Copy link
Copy Markdown
Contributor

Fixes #3034

Summary:

  • Detect Cursor Agent terminals during push-on-idle orchestration delivery.
  • Inject pending orchestration mail into Cursor Agent without sending the delayed Enter key.
  • Mark injected Cursor deliveries as delivered so the banner does not replay while leaving unread semantics intact.
  • Add a regression test covering Cursor Agent injection-only delivery.

Validation:

  • pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/orca-runtime.test.ts (206 tests)
  • pnpm run typecheck
  • pnpm run lint
  • git diff --check
  • git merge-tree --write-tree origin/main HEAD -> 88f3b45521d0ca5178b7afe11d051592d2bc5c80

@Jinwoo-H Jinwoo-H left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I reviewed and validated this path.

I added one maintainer fix before landing:

  • Narrow Cursor Agent detection for orchestration push-on-idle to controlled Cursor title shapes, avoiding false positives when another agent's task/tab title merely mentions Cursor.
  • Added a regression test proving a non-Cursor agent title mentioning "Cursor Agent" still receives the normal delayed Enter delivery.

Validation:

  • pnpm exec vitest run --config config/vitest.config.ts src/main/runtime/orca-runtime.test.ts
  • pnpm run typecheck
  • pnpm run lint
  • git diff --check
  • Electron runtime/PTY E2E via CDP: sent orchestration mail through runtime IPC to a renderer-backed PTY emitting Cursor Agent title signals; payload was injected, delivered_at was set, read stayed unread, and raw stdin capture showed no delayed \r.

@Jinwoo-H
Jinwoo-H merged commit 4c69fa6 into stablyai:main May 30, 2026
1 check passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* Avoid auto-submitting orchestration mail to Cursor Agent

* Avoid Cursor orchestration auto-submit false positives

Co-authored-by: Orca <[email protected]>

---------

Co-authored-by: Jinwoo-H <[email protected]>
Co-authored-by: Orca <[email protected]>
nwparker added a commit that referenced this pull request Oct 25, 2026
…ving them in the composer (#33347)

Orchestration mailbox pointers now get their delayed Enter for Cursor too (the Cursor no-Enter skip from #3156 left mail delivered but never acted on). Verified with real cursor-agent. Fixes #19760. Supersedes #19761.

Co-authored-by: Maple <[email protected]>
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.

Agent Orchestration idle delivery auto-submits into Cursor Agent terminal; need per-terminal opt-out or inject-without-Enter

2 participants