Show the terminal bar button on the Chat tab only

Pipelines and Runs no longer carry it; the keyboard shortcut still
toggles the terminal everywhere.
This commit is contained in:
2026-11-10 09:32:35 +00:00
parent 2720a063d1
commit 4ae2de444e
2 changed files with 17 additions and 1 deletions
+6 -1
View File
@@ -747,7 +747,12 @@ class _PipelinesAppState extends State<PipelinesApp>
final runsRoute = tab(AppDestination.runs);
final chatRoute = tab(AppDestination.chat);
return AdaptiveShell(
barActions: [_terminals.toggle(cupertino: _cupertino)],
// The terminal button sits on the Chat tab only; the keyboard
// shortcut still toggles the terminal everywhere.
barActions: [
if (_destinationOf(route.kind) == AppDestination.chat)
_terminals.toggle(cupertino: _cupertino),
],
attentionCount: attentionCount,
cupertino: _cupertino,
destination: _destinationOf(route.kind),