Skip to content

Retry timed-out provider initialization once - #861

Closed
brsbl wants to merge 1 commit into
mainfrom
bb/thr_xshbfa6h8v
Closed

Retry timed-out provider initialization once#861
brsbl wants to merge 1 commit into
mainfrom
bb/thr_xshbfa6h8v

Conversation

@brsbl

@brsbl brsbl commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • classify JSON-RPC request timeouts with a typed error
  • retry provider startup once, with a fresh process and adapter, only when initialize times out
  • suppress the retry during shutdown and cover the recovery path with a lifecycle regression test

Why

A cold Codex app-server process can occasionally miss the 30-second initialize deadline. The PartySocket upgrade protects the server-to-daemon transport, but this failure is inside the daemon-to-provider JSON-RPC startup path.

Verification

  • pnpm exec turbo run test --filter=@bb/agent-runtime --force (795 tests)
  • pnpm exec turbo run typecheck --filter=@bb/agent-runtime
  • independent review-loop re-review: CORRECT

@brsbl

brsbl commented Aug 5, 2026

Copy link
Copy Markdown
Collaborator Author

Closing as stale. The branch is retained, so this can be reopened if the retry work is still wanted.

@brsbl brsbl closed this Aug 5, 2026
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