Skip to content

feat: allow session config changes during a running turn - #3715

Open
testikun wants to merge 1 commit into
apache:mainfrom
testikun:codex/issue-3347-session-config
Open

feat: allow session config changes during a running turn#3715
testikun wants to merge 1 commit into
apache:mainfrom
testikun:codex/issue-3347-session-config

Conversation

@testikun

@testikun testikun commented Aug 24, 2026

Copy link
Copy Markdown

Summary

Fixes #3347.

Allow model, thinking-level, and permission-mode changes while a root Turn is running without mutating the active AgentRun.

Implementation

  • Persist a Host-owned pendingConfiguration projection with the Session header.
  • Keep the active AgentRun and its backend/execution boundary immutable.
  • Merge successive client edits against the Host pending projection, including per-model thinking-level reset/restore behavior.
  • Revalidate the pending connection, model, and thinking level at the next-Turn admission boundary; if validation fails, preserve the pending selection and report a typed error.
  • Apply the pending configuration at the fresh root-Turn admission boundary, then clear it before creating the successor AgentRun.
  • Project pending state through the Runtime Host Session catalog so reconnects, restarts, and multiple clients converge.
  • Keep Plan, Swarm, Graph, workspace, and Side Chat configuration outside this slice.

Tests

  • Runtime staging, next-admission application, and failed-validation preservation regression coverage.
  • Runtime Host model-readiness and thinking-level revalidation coverage.
  • Desktop Host-client pending merge and model/thinking reset coverage.
  • Full npm test: 1403 passed.
  • Full lint, format, typecheck, and git diff --check verification passed.

@testikun
testikun force-pushed the codex/issue-3347-session-config branch from 10a5eee to e425f73 Compare August 24, 2026 13:44
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.

Allow Session configuration changes while a turn is running

1 participant