You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug(orchestration): a child whose provider starts in >30 s is adopted without its bootstrap prompt #1370
orchestration_create_agent waits at most 30 s for the renderer's create-agent answer (OrchestrationBridge.dispatchRendererRequest, TIMEOUT_MS = 30_000). The renderer answers only after the child's provider has started. createOrchestrationAgent awaits spawn, then window.api.spawnSession, then main's session.start().
A provider start that is slow but healthy therefore makes the create outcome unknown. The caller gets OrchestrationOutcomeUnknownError ("do not repeat"), and the MCP handler never delivers the bootstrap prompt. When the renderer answers later, adoptLateResponse files the child with bootstrapPromptDelivered: false. The parent ends up with an idle child that never received its brief.
Tests:src/main/orchestration/timeoutOutcome.test.ts pins both the 30 s unknown outcome and the late adoption.
Not decided here
Whether to:
(a) deliver the bootstrap prompt when a timed-out create is adopted late (main holds the request, and armPromptWhenReady already waits for readiness); or
(b) give create-agent a deadline derived from the provider's start budget.
Option (b) conflicts with MCP clients' own tool-call timeouts: a Codex parent's defaults are shorter than 120 s.
Activity
test(opencode): pin the package's startup-wait forwarding and the con…
fix(opencode): wait out a slow but healthy serve start instead of kil…
test(opencode): pin the package's startup-wait forwarding and the con…
fix(orchestration): deliver the bootstrap prompt to a child created a…
fix(orchestration): a bootstrap mark from a replaced parent reaches i…
Merge pull request #1375 from Juliusolsson05/fix/orchestration-late-b…