mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Add opt-in automatic background server startup (#46117)
## What changed - Add `features.daemon_auto_start`, disabled by default and available through `/experimental`, to start the shared local server for eligible new, resumed, and forked sessions. Changes take effect on the next launch, and disabling the feature persists an explicit `false`. - Require successful daemon startup and connection when auto-start applies. On failure, show guidance to rerun the same command with `--no-daemon` instead of silently falling back to an embedded server. - Preserve embedded mode for excluded launches, including Bedrock sign-in, and carry exclusion warnings through resume and fork pickers. Honor `--no-daemon` without an exclusion warning. - Update `/import` guidance to recommend restarting with `codex --no-daemon`. ## Testing Add CLI and TUI coverage for automatic daemon attachment, startup and connection failures, `--no-daemon`, picker warning persistence, and Bedrock onboarding with and without a running daemon. Add snapshots and configuration-write assertions for the experimental toggle. GitOrigin-RevId: 2e8eb163bc7ddd268a86c7546c05a85356c1e9ee
This commit is contained in:
1 parent
4b0f19d6f9
commit
70e8fe1be3
37 files changed
+513
-17
No files matched your search
@@ -110,6 +110,8 @@ pub enum Feature {
|
||||
SecretAuthStorage,
|
||||
|
||||
// Experimental
|
||||
/// Automatically start the shared local daemon for eligible interactive launches.
|
||||
DaemonAutoStart,
|
||||
/// Send per-content-entry classifications in internal Responses metadata.
|
||||
ContentItemKinds,
|
||||
/// Record model-attempted tool calls in internal Responses metadata.
|
||||
@@ -920,6 +922,16 @@ pub const FEATURES: &[FeatureSpec] = &[
|
||||
},
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::DaemonAutoStart,
|
||||
key: "daemon_auto_start",
|
||||
stage: Stage::Experimental {
|
||||
name: "Automatically start the background server",
|
||||
menu_description: "Use the shared local server for new, resumed, and forked sessions. Takes effect next launch.",
|
||||
announcement: "Automatic background server startup can now be enabled from /experimental.",
|
||||
},
|
||||
default_enabled: false,
|
||||
},
|
||||
FeatureSpec {
|
||||
id: Feature::TranscriptV2,
|
||||
key: "transcript_v2",
|
||||
|
||||
Reference in new issue
Block a user