Skip to content

Answer new messages on sessions whose sidecar toolbox has crashed - #54

Open
josephschorr wants to merge 1 commit into
mainfrom
wake-past-failed-sidecar
Open

josephschorr wants to merge 1 commit into
mainfrom
wake-past-failed-sidecar

Conversation

@josephschorr

Copy link
Copy Markdown
Member

A parked session whose separately-running sidecar toolbox had crashed could not be woken: a new user message was never answered, and the session's leftover pods were never cleaned up.

Now a crashed sidecar toolbox no longer holds the session back. The new message wakes the session, the agent starts without that toolbox, and it tells the user the toolbox is unavailable. If the toolbox recovers, the agent picks it up. A toolbox that is still starting up no longer delays the wake either. Once the conversation goes quiet, the session sleeps and archives as usual.

A parked session whose separate-pod sidecar was crash-looping never
consumed a wake: the sidecar step returned early on every pass, ahead of
the wake handling. Because a pending wake also suppresses the idle sweep,
the session never slept or archived either, so the user's message went
unanswered and its pods were never reaped.

A sidecar recorded as terminally failed no longer gates the reconcile;
the failure is already on status for the runner to surface, so the pass
falls through, the wake is consumed and the runner is created. A sidecar
that is merely starting still holds the runner, but no longer holds a
pending wake.

The runner now boots without a separate-pod sidecar recorded as
terminally failed instead of polling for its IP and then failing the
session; the tool refresher reports the failure and picks the sidecar up
if it recovers.
@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
openagentprimitives Ignored Ignored Preview Nov 5, 2026 8:57pm UTC

Request Review

This branch has not been deployed

No deployments
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