mirror of
https://github.com/openai/codex.git
synced 2026-11-25 15:24:26 +00:00
feat: /fork the current session instead of opening session picker (#9385)
Implemented /fork to fork the current session directly (no picker), handling it via a new ForkCurrentSession app event in both tui and tui2. Updated slash command descriptions/tooltips and adjusted the fork tests accordingly. Removed the unused in-session fork picker event.
This commit is contained in:
1 parent
f89a40a849
commit
e893e83eb9
12 files changed
+113
-135
No files matched your search
@@ -1994,7 +1994,7 @@ impl ChatWidget {
|
||||
self.app_event_tx.send(AppEvent::OpenResumePicker);
|
||||
}
|
||||
SlashCommand::Fork => {
|
||||
self.app_event_tx.send(AppEvent::OpenForkPicker);
|
||||
self.app_event_tx.send(AppEvent::ForkCurrentSession);
|
||||
}
|
||||
SlashCommand::Init => {
|
||||
let init_target = self.config.cwd.join(DEFAULT_PROJECT_DOC_FILENAME);
|
||||
|
||||
Reference in new issue
Block a user