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:
Anton Panasenko
2026-01-16 11:28:52 -08:00
committed by GitHub
parent f89a40a849
commit e893e83eb9
12 changed files with 113 additions and 135 deletions

View File

@@ -1532,12 +1532,12 @@ async fn slash_resume_opens_picker() {
}
#[tokio::test]
async fn slash_fork_opens_picker() {
async fn slash_fork_requests_current_fork() {
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(None).await;
chat.dispatch_command(SlashCommand::Fork);
assert_matches!(rx.try_recv(), Ok(AppEvent::OpenForkPicker));
assert_matches!(rx.try_recv(), Ok(AppEvent::ForkCurrentSession));
}
#[tokio::test]