Skip to content

Persist Agent runtime choices per Session - #985

Merged
luokerenx4 merged 1 commit into
devfrom
codex/session-runtime-bindings
Aug 4, 2026
Merged

Persist Agent runtime choices per Session#985
luokerenx4 merged 1 commit into
devfrom
codex/session-runtime-bindings

Conversation

@luokerenx4

Copy link
Copy Markdown
Contributor

Summary

  • persist a secret-free, immutable runtime binding on each product Session identity
  • require every Agent adapter (Claude, Codex, OpenCode, and Pi) to project credentials, model, and effort for interactive, WebPi, headless, and resumed launches
  • resolve vault secrets only at launch time while preserving native global login behavior and preventing Workspace mutation
  • migrate existing Session records, expose safe Session metadata, and package the Pi provider extension

Why

Workspace-level injection was too coarse for scheduled work and exact Session recovery. A resumed Session could otherwise inherit a different credential, model, or effort from whatever the Workspace happened to contain later. This makes the runtime selection a standard Session parameter and makes adapter support explicit.

Verification

  • npx tsc --noEmit
  • cd ui && npx tsc -b
  • pnpm test (475 files passed, 1 skipped; 3935 tests passed, 9 skipped)
  • targeted Session binding / ResumeRegistry / adapter contract specs
  • real pnpm dev browser walk of Issues and Chat
  • CSC_IDENTITY_AUTO_DISCOVERY=false pnpm electron:smoke:workspace (packaged Pi scheduled run, resume identity capture, reply, side effect, completion, cleanup)

@vercel

vercel Bot commented Aug 4, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
openalice-demo Building Building Preview Aug 4, 2026 6:41pm

Request Review

@luokerenx4
luokerenx4 merged commit 6555e6e into dev Aug 4, 2026
9 of 11 checks passed
@luokerenx4
luokerenx4 deleted the codex/session-runtime-bindings branch August 4, 2026 18:41
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