Enable worktrees by default and clarify local daemon errors (#44870)

## What changed

- Mark `worktrees` stable and enable it by default, removing it from `/experimental`. Point users who explicitly disable it to their Codex configuration.
- When a local daemon lacks `thread/backgroundTerminals/list`, block worktree creation and `/cd` with guidance to run `codex app-server daemon update` and restart Codex.

## Testing

Add regression coverage for unsupported local daemon methods, unrelated errors, embedded servers, and empty background terminal lists. Update feature-gating tests to disable worktrees explicitly and remove worktrees from the experimental menu snapshot.

GitOrigin-RevId: 3f21d0ebaa02da11a6aaa2e1ac615b4518fc98d8
This commit is contained in:
Benjamin Carlsson authored and copyberry committed 2026-09-11 17:08:59 +00:00
1 parent 122d55cba8
commit 68bc5369ba
12 files changed
+120 -25

No files matched your search

+3
View File
@@ -3265,6 +3265,9 @@ requires_openai_auth = {requires_openai_auth}
})
.build()
.await?;
config
.features
.set_enabled(codex_features::Feature::Worktrees, /*enabled*/ false)?;
let model_provider = config.model_provider_id.as_str();
let project_thread_id = write_session_rollout(
temp_dir.path(),