mirror of
https://github.com/openai/codex.git
synced 2026-11-18 23:02:23 +00:00
Let users remember the working directory for resumed sessions (#33950)
## What changed - Add `tui.resume_cwd` with `current` and `session` modes for resume and fork flows. - Let users persist either mode directly from the working-directory prompt, while preserving one-time choices when no preference is configured. - Apply the preference consistently during startup and in-app resume, honor explicit `--cd` overrides, and reject unsupported or unavailable directory choices with a clear error. ## Testing - Cover configuration parsing and persistence, prompt behavior, startup and in-app flows, session metadata fallback, and remote workspace constraints. GitOrigin-RevId: 7bf144c4b8c55bdb868cc8a71caf397c7740451a
This commit is contained in:
1 parent
82b294c73c
commit
2895d82b5e
21 files changed
+1469
-79
No files matched your search
@@ -512,6 +512,7 @@ pub(crate) struct App {
|
||||
workspace_command_runner: Option<WorkspaceCommandRunner>,
|
||||
/// Config is stored here so we can recreate ChatWidgets as needed.
|
||||
pub(crate) config: Config,
|
||||
launch_cwd: PathBuf,
|
||||
pub(crate) state_db: Option<StateDbHandle>,
|
||||
cli_kv_overrides: Vec<(String, TomlValue)>,
|
||||
harness_overrides: ConfigOverrides,
|
||||
@@ -766,6 +767,7 @@ impl App {
|
||||
tui: &mut tui::Tui,
|
||||
mut app_server: AppServerSession,
|
||||
mut config: Config,
|
||||
launch_cwd: PathBuf,
|
||||
cli_kv_overrides: Vec<(String, TomlValue)>,
|
||||
harness_overrides: ConfigOverrides,
|
||||
loader_overrides: LoaderOverrides,
|
||||
@@ -1031,6 +1033,7 @@ See the Codex keymap documentation for supported actions and examples."
|
||||
chat_widget,
|
||||
workspace_command_runner: Some(workspace_command_runner),
|
||||
config,
|
||||
launch_cwd,
|
||||
state_db,
|
||||
cli_kv_overrides,
|
||||
harness_overrides,
|
||||
|
||||
Reference in new issue
Block a user