Repository navigation
fix: repair daemon Codex sessions - #536
Conversation
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
📝 WalkthroughWalkthroughThis PR enables daemon CLI commands to accept and forward runtime configuration overrides (provider, model, base_url) from Click context or environment variables through the daemon session creation flow. It introduces centralized JSON error handling with diagnostic details and updates message content type logic in the Codex provider to vary by message role. ChangesRuntime Override Flow from CLI through Daemon Session
Sequence DiagramsequenceDiagram
participant CLI as CLI (daemon run/repl/tui)
participant Override as _daemon_runtime_overrides
participant DaemonHelper as _create_daemon_local_session
participant SessionClient as create_local_daemon_session
participant HTTP as Remote Daemon API
CLI->>Override: ctx
Override->>Override: read from shared_cli_args or env vars
Override-->>CLI: {provider, model, base_url}
CLI->>DaemonHelper: runtime_overrides dict
DaemonHelper->>SessionClient: forward as kwargs
SessionClient->>SessionClient: build payload with provider/model/base_url
SessionClient->>HTTP: POST /sessions with overrides
HTTP-->>SessionClient: session_id
SessionClient-->>CLI: session_id
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Verification
Runtime smoke
Summary by CodeRabbit
New Features
Bug Fixes
Tests