Skip to content

feat(coding-agent): jitter the session's auto-retry backoff (stack 3/3) - #9

Merged
ivanmilevtues merged 1 commit into
mainfrom
example/session-retry-jitter
Oct 23, 2026
Merged

ivanmilevtues merged 1 commit into
mainfrom
example/session-retry-jitter

Conversation

@ivanmilevtues

Copy link
Copy Markdown
Member

Top of the example stack, based on #8 (which is based on #7).

AgentSession auto-retry now waits jitteredRetryDelayMs instead of retryDelayMs, so sessions that failed together do not retry in lockstep. The delay-cap regression test pins Math.random to the top of the range.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T22:28:01.204076Z 4efff2e PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

CodeBoarding review

Status: 1 changed component

See the full change in CodeBoarding.

graph LR
    n_Coding_Agent_Application["Coding Agent Application"]
    n_AI_Provider_Runtime["AI Provider Runtime"]
    n_Durable_State_Codemode_Runtime["Durable State #38; Codemode Runtime"]
    n_Workspace_Automation_Scripts["Workspace Automation Scripts"]
    n_Terminal_UI_Toolkit["Terminal UI Toolkit"]
    n_Agent_Evaluation_Harness["Agent Evaluation Harness"]
    n_MCP_Protocol_Client["MCP Protocol Client"]
    n_Agent_Core_Loop["Agent Core Loop"]
    n_Telemetry_Instrumentation["Telemetry Instrumentation"]
    n_Coding_Agent_Application -- "queries models and provider credentials" --> n_AI_Provider_Runtime
    n_Coding_Agent_Application -- "renders interactive screens and controls" --> n_Terminal_UI_Toolkit
    n_Coding_Agent_Application -- "drives agent prompt execution loop via" --> n_Agent_Core_Loop
    n_Coding_Agent_Application -- "executes scripts in codemode sandboxes" --> n_Durable_State_Codemode_Runtime
    n_Coding_Agent_Application -- "manages MCP authentication and transports" --> n_MCP_Protocol_Client
    n_AI_Provider_Runtime -- "prompts interactive login flow" --> n_Coding_Agent_Application
    n_Durable_State_Codemode_Runtime -- "delegates execution callbacks to agent runtime" --> n_Coding_Agent_Application
    n_Durable_State_Codemode_Runtime -- "queries available model catalog" --> n_AI_Provider_Runtime
    n_Workspace_Automation_Scripts -- "hydrates model catalog definitions" --> n_AI_Provider_Runtime
    n_Workspace_Automation_Scripts -- "loads session and auth configurations" --> n_Coding_Agent_Application
    n_Workspace_Automation_Scripts -- "persists state in durable documents" --> n_Durable_State_Codemode_Runtime
    n_Terminal_UI_Toolkit -- "dispatches layout and input events to views" --> n_Coding_Agent_Application
    n_Agent_Evaluation_Harness -- "benchmarks model runtimes" --> n_Coding_Agent_Application
    n_Agent_Evaluation_Harness -- "tests provider model interfaces" --> n_AI_Provider_Runtime
    n_Agent_Evaluation_Harness -- "verifies agent state in UI evaluations" --> n_Agent_Core_Loop
    n_MCP_Protocol_Client -- "persists tokens via agent credential store" --> n_Coding_Agent_Application
    n_Agent_Core_Loop -- "dispatches events to message stream" --> n_AI_Provider_Runtime
    classDef added fill:#1f883d,stroke:#0b5d23,color:#ffffff;
    classDef modified fill:#bf8700,stroke:#7d4e00,color:#ffffff;
    classDef deleted fill:#cf222e,stroke:#82071e,color:#ffffff,stroke-dasharray:5 3;
    class n_Coding_Agent_Application modified;
    linkStyle 2 stroke:#7d4e00,stroke-width:2px;
Loading

download artifacts · run 40033664407

@ivanmilevtues
ivanmilevtues changed the base branch from example/retry-jitter to main October 23, 2026 23:18
@ivanmilevtues
ivanmilevtues merged commit bf32f34 into main Oct 23, 2026
3 checks passed
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