Open new sessions directly from the command center (#45255)

## What changed

- Replace the inline task composer with a session list: `n` opens a blank session in the selected checkout without sending an initial turn or interrupting running agents.
- Use single-letter action shortcuts and `Enter` to open a session. `Esc` cancels search or rename without closing the list; `Ctrl+C` quits from the list.
- Load destination settings for new sessions while carrying over explicit permission choices. Retain blank sessions and their drafts across navigation until the first turn.

## Testing

Update tests and snapshots for command center navigation, shortcuts, blank draft restoration, destination defaults, permission carryover, and directory trust.

GitOrigin-RevId: bddd04fdbe6ac2f5b7bd70293fd04f673b97ba02
This commit is contained in:
Eric Traut authored and copyberry committed 2026-09-13 16:14:41 +00:00
1 parent 16537b20a5
commit 516f2780fd
67 files changed
+1145 -1744

No files matched your search

+5 -9
View File
@@ -153,21 +153,17 @@ async fn connected_trust_cancellation_and_acceptance_control_task_creation() ->
};
for (expected, input) in [
(prompt, b"\x1b".as_slice()),
("create task", b"\x1b"),
("Launch-folder task", b"\x1b[B\x0e"),
("create task", b"new task"),
("› new task", b"\r"),
("n new", b"\x1b"),
("Launch-folder task", b"\x1b[Bn"),
(prompt, b"\x1b"),
("› new task", b"\r"),
("n new", b"n"),
("You are in", b"\x1b"),
("› new task", b"\x1b"),
("ctrl+o resume", b"\x0f"),
("o resume", b"o"),
("Resume a previous session", b"\x1b[C"),
("Untrusted saved task", b"\r"),
("Open existing task", b"\r"),
("moved-folder", b"\x1b"),
("ctrl+o resume", b"\x0e"),
("› new task", b"\r"),
("o resume", b"n"),
(prompt, b"\r"),
] {
let is_consent = expected == prompt