feat(tui): add /app desktop handoff (#25638)

This commit is contained in:
Felipe Coury authored and GitHub committed 2026-06-03 20:30:15 -03:00
1 parent 8285cd278b
commit 80b65e9945
12 files changed
+244 -1

No files matched your search

@@ -202,6 +202,16 @@ impl ChatWidget {
SlashCommand::Fork => {
self.app_event_tx.send(AppEvent::ForkCurrentSession);
}
SlashCommand::App => {
let Some(thread_id) = self.thread_id else {
self.add_error_message(
"Session is still starting; try /app again in a moment.".to_string(),
);
return;
};
self.app_event_tx
.send(AppEvent::OpenDesktopThread { thread_id });
}
SlashCommand::Init => {
let init_target = self.config.cwd.join(DEFAULT_AGENTS_MD_FILENAME);
if init_target.exists() {
@@ -974,6 +984,7 @@ impl ChatWidget {
| SlashCommand::Raw
| SlashCommand::Vim
| SlashCommand::Diff
| SlashCommand::App
| SlashCommand::Rename
| SlashCommand::TestApproval => QueueDrain::Continue,
SlashCommand::Feedback