René's URL Explorer Experiment


Title: Orchestration mail should inject a pointer, not the payload (finishes #12536, fixes #7337 for worker panes) · Issue #12953 · stablyai/orca · GitHub

Open Graph Title: Orchestration mail should inject a pointer, not the payload (finishes #12536, fixes #7337 for worker panes) · Issue #12953 · stablyai/orca

X Title: Orchestration mail should inject a pointer, not the payload (finishes #12536, fixes #7337 for worker panes) · Issue #12953 · stablyai/orca

Description: Split out from #12584, which fixed the first half of #12536 (mail to an already-idle recipient never fired). Two related problems remain, and they share one root cause. What's still broken 1. A bound coordinator receives mail but never a...

Open Graph Description: Split out from #12584, which fixed the first half of #12536 (mail to an already-idle recipient never fired). Two related problems remain, and they share one root cause. What's still broken 1. A bou...

X Description: Split out from #12584, which fixed the first half of #12536 (mail to an already-idle recipient never fired). Two related problems remain, and they share one root cause. What's still broken 1. A...

Opengraph URL: https://github.com/stablyai/orca/issues/12953

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Orchestration mail should inject a pointer, not the payload (finishes #12536, fixes #7337 for worker panes)","articleBody":"Split out from #12584, which fixed the first half of #12536 (mail to an already-idle recipient never fired). Two related problems remain, and they share one root cause.\n\n## What's still broken\n\n**1. A bound coordinator receives mail but never acts on it (#12536's second half)**\n\n`deliverPendingMessages` writes the banner, then returns early for the active `coordinator_handle` without the delayed Enter, so the text sits at the prompt unsubmitted. The row is still stamped `delivered_at`, so push never retries it.\n\nNote this cannot be fixed by making the coordinator auto-submit. `worker_done`/`heartbeat` are readdressed to `run:\u003cid>` in `rpc/methods/orchestration.ts` whenever the sender has a run and a dispatch, and `run:` is not a terminal handle, so it is rejected before delivery. Lifecycle mail reaches a coordinator only through `check --wait`. The fix belongs at the `run:` consumer layer, not the push path.\n\n**2. Mail still clobbers a half-typed prompt (#7337 is only partly fixed)**\n\nThe original report was a user mid-sentence in the orchestrator whose partial text was submitted together with an incoming worker message. #7391 removed the synthesized Enter for the coordinator pane, but left the write in place — so the banner is still pasted into whatever you were typing, and `delivered_at` is stamped for mail nobody acted on.\n\nWorse, the guard barely applies. `getActiveCoordinatorRun()` is an unscoped global `SELECT ... WHERE status='running' ORDER BY created_at DESC LIMIT 1` over `coordinator_runs`, a table written only by `orchestration.run` and `Coordinator.run()`. No CLI command writes it — the CLI's `run-create` writes the modern `runs` table. So in CLI-driven workflows the branch effectively never fires, and **a human typing into a worker pane gets the banner plus a synthesized Enter today**.\n\n#12584 makes this more likely to bite, not less: push previously fired only on a busy->idle transition, so a pane you were merely typing in was rarely targeted. It now fires the moment mail is sent.\n\n## Root cause\n\nThe terminal write carries the **payload**. That makes a collision destructive (a real instruction is corrupted and lost) rather than cosmetic.\n\n## Proposed direction\n\n**Inject a pointer, not the payload.** Write a short line — \"you have N orchestration messages, run `orca orchestration check`\" — and keep the content in the store the agent reads on demand. Then:\n\n- A collision garbles a short machine-generated string instead of losing a task.\n- Delivery stops being an event that can be missed. The row is durable, so any later trigger drains it; already-idle stops being a special case.\n- `delivered_at` regains an honest meaning: the pointer is not the delivery, the `check` is.\n\n**Then wire `check --inject` into the `UserPromptSubmit` hooks Orca already installs** (~18 agents under `src/main/*/hook-service.ts`), so mail arrives at turn boundaries and the pointer write becomes the rare fallback for runtimes without hooks.\n\nTwo caveats worth carrying:\n- Hooks are reliable for *delivery at turn boundaries* but not as *lifecycle state authority* — they miss transitions (cancellations, interrupts). Keep title/process detection as the status source.\n- `UserPromptSubmit` does not fire for an idle agent nobody is talking to, so a wake path is still needed. That is what the pointer write is for.\n\n**Also worth adopting:** invert the trigger. Send, then use the state change only to *confirm* delivery landed, against a monotonic sequence counter rather than a status comparison — a fast idle->working->idle turn produces no status difference but does bump a counter — with a bounded timeout and a distinct \"no observed effect\" error, so an ineffective injection surfaces instead of failing silently.\n\n## Rejected\n\nTracking unsubmitted keystrokes per pane to detect a draft. Implemented and tested, then discarded: the counter tracks magnitude, which is unknowable. Word-deletion (Ctrl+W, Ctrl+K, Alt+Backspace) empties the box without decrementing, leaving the pane permanently \"dirty\" so mail defers forever — and there is currently no UI surface for pending mail, so that stranding is silent. Ctrl+W cannot be treated as a clear either, since it deletes one word and the box may still hold text.\n\nPrompt-emptiness detection from rendered output was also assessed as unreliable: the composer always renders something, and stripping ANSI makes a dim placeholder byte-identical to typed text. It may be feasible if cell attributes are retained (the emulator is xterm-backed, so the data exists even though `getVisibleLines()` discards it) — unverified, and unnecessary if the terminal only ever carries a pointer.\n","author":{"url":"https://github.com/Jinwoo-H","@type":"Person","name":"Jinwoo-H"},"datePublished":"2026-08-06T22:06:50Z","url":"https://github.com/stablyai/orca/issues/12953"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:14d31006-a8de-47bb-a3a7-9b1277fe1a2d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA32A:4A706:C12EA:FAFAF:6AEBDFDD
html-safe-noncee4d3d076be8bb1d2e63cb111d26598eca243e430ff91f8ba7961ba52ec8a9132
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzJBOjRBNzA2OkMxMkVBOkZBRkFGOjZBRUJERkREIiwidmlzaXRvcl9pZCI6IjkxNTQ0MzExMDQ4MDg5MDI2MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac56323889765635ed134883cf336f67846a5ad5ae678c310a559a616e5da24a54
hovercard-subject-tagissue:5085045551
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stablyai/orca/12953/issue_layout
twitter:imagehttps://opengraph.githubassets.com/812d963507f2bb1f3e7fb34536df200f1445bbd2f4074ad681a2c14a8f015dac/stablyai/orca/issues/12953
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/812d963507f2bb1f3e7fb34536df200f1445bbd2f4074ad681a2c14a8f015dac/stablyai/orca/issues/12953
og:image:altSplit out from #12584, which fixed the first half of #12536 (mail to an already-idle recipient never fired). Two related problems remain, and they share one root cause. What's still broken 1. A bou...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameJinwoo-H
hostnamegithub.com
expected-hostnamegithub.com
Nonecb4fe414357cc0dbc2996fde3e4947524ebbb7f50a92a6e6934fee909acf2c00
turbo-cache-controlno-preview
go-importgithub.com/stablyai/orca git https://github.com/stablyai/orca.git
octolytics-dimension-user_id127256420
octolytics-dimension-user_loginstablyai
octolytics-dimension-repository_id1183888342
octolytics-dimension-repository_nwostablyai/orca
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1183888342
octolytics-dimension-repository_network_root_nwostablyai/orca
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5295beeefa36b9ce5c704f35fdc483ebb6f2cb19
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/stablyai/orca/issues/12953#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstablyai%2Forca%2Fissues%2F12953
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fstablyai%2Forca%2Fissues%2F12953
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=stablyai%2Forca
Reloadhttps://github.com/stablyai/orca/issues/12953
Reloadhttps://github.com/stablyai/orca/issues/12953
Reloadhttps://github.com/stablyai/orca/issues/12953
stablyaihttps://github.com/stablyai
orcahttps://github.com/stablyai/orca
Codehttps://github.com/stablyai/orca
Issues4.4k (4.4k)https://github.com/stablyai/orca/issues
Pull requests3.8k (3.8k)https://github.com/stablyai/orca/pulls
Discussionshttps://github.com/stablyai/orca/discussions
Actionshttps://github.com/stablyai/orca/actions
Projectshttps://github.com/stablyai/orca/projects
Security and qualityhttps://github.com/stablyai/orca/security
Insightshttps://github.com/stablyai/orca/pulse
https://github.com/stablyai/orca
Orchestration mail should inject a pointer, not the payload (finishes #12536, fixes #7337 for worker panes)https://github.com/stablyai/orca/issues/12953#top
https://github.com/Jinwoo-H
https://github.com/Jinwoo-H
Jinwoo-Hhttps://github.com/Jinwoo-H
on Aug 6, 2026https://github.com/stablyai/orca/issues/12953#issue-5085045551
#12584https://github.com/stablyai/orca/pull/12584
#12536https://github.com/stablyai/orca/issues/12536
#12536https://github.com/stablyai/orca/issues/12536
#7337https://github.com/stablyai/orca/issues/7337
#7391https://github.com/stablyai/orca/pull/7391
#12584https://github.com/stablyai/orca/pull/12584
Jinwoo-Hhttps://github.com/Jinwoo-H
on Aug 7, 2026https://github.com/stablyai/orca/issues/12953#event-29101458102
fix(orchestration): wake coordinators with mail pointers (#12988)https://github.com/stablyai/orca/commit/2b42de1f522ae3bb8fe397b9217e223e3c5cf6f6
#12988https://github.com/stablyai/orca/pull/12988
2b42de1https://github.com/stablyai/orca/commit/2b42de1f522ae3bb8fe397b9217e223e3c5cf6f6
AmethystLianghttps://github.com/AmethystLiang
P1https://github.com/stablyai/orca/issues?q=state%3Aopen%20label%3A%22P1%22
on Aug 7, 2026https://github.com/stablyai/orca/issues/12953#event-29109394848
https://github.com/AmethystLiang
AmethystLianghttps://github.com/AmethystLiang
on Aug 7, 2026https://github.com/stablyai/orca/issues/12953#issuecomment-5215161450
AmethystLianghttps://github.com/AmethystLiang
Jinwoo-Hhttps://github.com/Jinwoo-H
on Aug 7, 2026https://github.com/stablyai/orca/issues/12953#event-29109398888
AmethystLianghttps://github.com/AmethystLiang
P1https://github.com/stablyai/orca/issues?q=state%3Aopen%20label%3A%22P1%22
on Aug 8, 2026https://github.com/stablyai/orca/issues/12953#event-29146588041
https://github.com/brennanb2025
brennanb2025https://github.com/brennanb2025
on Aug 13, 2026https://github.com/stablyai/orca/issues/12953#issuecomment-5286294088
#12988https://github.com/stablyai/orca/pull/12988
#14332https://github.com/stablyai/orca/pull/14332
#14332https://github.com/stablyai/orca/pull/14332
enrick-devhttps://github.com/enrick-dev
on Oct 15, 2026https://github.com/stablyai/orca/issues/12953#event-33352744449
fix(orchestration): wake coordinators with mail pointers (stablyai#12988https://github.com/enrick-dev/orca/commit/22cf9e83911cf49b42f9983570b95e2045eeeb51
stablyai#12988https://github.com/stablyai/orca/pull/12988
22cf9e8https://github.com/enrick-dev/orca/commit/22cf9e83911cf49b42f9983570b95e2045eeeb51
Sign up for freehttps://github.com/signup?return_to=https://github.com/stablyai/orca/issues/12953
Sign in to commenthttps://github.com/login?return_to=https://github.com/stablyai/orca/issues/12953
Jinwoo-Hhttps://github.com/Jinwoo-H
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.