mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
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:
1 parent
122d55cba8
commit
68bc5369ba
12 files changed
+120
-25
No files matched your search
-2
@@ -11,8 +11,6 @@ expression: popup
|
||||
interactive website debugging and other inline
|
||||
JavaScript execution capabilities.
|
||||
[x] Shell tool Allow the model to run shell commands.
|
||||
[ ] Worktrees Create isolated Git worktrees and group sessions by
|
||||
repository.
|
||||
[ ] Voice conversations Talk with Codex using /voice.
|
||||
|
||||
Press space to select or enter to save
|
||||
@@ -3038,7 +3038,6 @@ async fn apps_popup_for_not_installed_app_uses_install_only_selected_description
|
||||
async fn experimental_features_popup_snapshot() {
|
||||
let (mut chat, _rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
|
||||
|
||||
let worktrees = Feature::Worktrees.stage();
|
||||
let voice = Feature::RealtimeConversation.stage();
|
||||
let features = vec![
|
||||
ExperimentalFeatureItem {
|
||||
@@ -3055,13 +3054,6 @@ async fn experimental_features_popup_snapshot() {
|
||||
description: "Allow the model to run shell commands.".to_string(),
|
||||
enabled: true,
|
||||
},
|
||||
ExperimentalFeatureItem {
|
||||
key: Feature::Worktrees.key().to_string(),
|
||||
writable: true,
|
||||
name: worktrees.experimental_menu_name().unwrap().to_string(),
|
||||
description: worktrees.experimental_menu_description().unwrap().to_string(),
|
||||
enabled: false,
|
||||
},
|
||||
ExperimentalFeatureItem {
|
||||
key: Feature::RealtimeConversation.key().to_string(),
|
||||
writable: true,
|
||||
|
||||
@@ -6,6 +6,7 @@ use pretty_assertions::assert_eq;
|
||||
#[tokio::test]
|
||||
async fn slash_new_and_fork_offer_checkout_choices_inside_local_git_repository() {
|
||||
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(/*model_override*/ None).await;
|
||||
chat.set_feature_enabled(Feature::Worktrees, /*enabled*/ false);
|
||||
let checkout = tempdir().expect("temporary checkout");
|
||||
std::fs::create_dir(checkout.path().join(".git")).expect("git directory");
|
||||
std::fs::write(checkout.path().join(".git/HEAD"), "ref: refs/heads/main\n").expect("git HEAD");
|
||||
|
||||
@@ -82,7 +82,7 @@ impl ChatWidget {
|
||||
pub(super) fn show_managed_worktree_picker(&mut self) {
|
||||
if !self.config.features.enabled(Feature::Worktrees) {
|
||||
self.add_error_message(
|
||||
"Enable worktrees in /experimental to create a worktree.".to_string(),
|
||||
"Enable worktrees in your Codex configuration to create a worktree.".to_string(),
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user