Cycle Ctrl-Tab through available chats

When a tiled workspace has one chat pane, navigate the sidebar chat order while preserving pane state and composer focus. Keep pane and floating-window cycling behavior for their existing layouts, and update shortcut documentation and coverage.
This commit is contained in:
2026-11-13 12:23:52 +00:00
parent df0614e2f7
commit b4d67d6ba8
8 changed files with 158 additions and 77 deletions
@@ -237,6 +237,23 @@ class ChatWorkspaceController extends ChangeNotifier {
_changed();
}
/// Replaces a pane after its caller has already validated [newId]. Unlike
/// [replaceSession], this does not ask the window host to show a floating
/// chat; keyboard cycling filters those chats before calling this method.
void replacePaneSession(String paneId, String newId) {
if (newId.isEmpty) return;
final pane = panes.where((p) => p.id == paneId).firstOrNull;
if (pane == null) return;
final existing = panes.where((p) => p.sessionId == newId).firstOrNull;
if (existing != null) {
close(pane.id);
activate(existing.id);
return;
}
_root = _replace(_root!, pane.id, ChatWorkspacePane(pane.id, newId));
_changed();
}
ChatWorkspaceNode _replace(
ChatWorkspaceNode node,
String id,