Skip to content

The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.

Hide detached commit labels from the workspace status bar (#342)

Deea492256dbf4e
diff --git a/desktop/design/images/workspace-detached-status.png b/desktop/design/images/workspace-detached-status.png
new file mode 100644
index 000000000..554749bc5
Binary files /dev/null and b/desktop/design/images/workspace-detached-status.png differ
diff --git a/desktop/design/terminal-workspace.md b/desktop/design/terminal-workspace.md
index 6335556b4..b283b8d2e 100644
--- a/desktop/design/terminal-workspace.md
+++ b/desktop/design/terminal-workspace.md
@@ -88,8 +88,9 @@ shared app bar. A dependent viewer uses its owner's context. Keep internal
worktree paths and machinery out of everyday labels.
Machine opens the shared picker scoped to that machine. Project opens its harnesses across
-known checkouts and machines. Branch narrows that project to the exact branch or
-detached commit. These are navigation actions; they do not check out a branch.
+known checkouts and machines. Branch narrows that project to the exact named
+branch. Hide detached commit hashes from the bar. These are navigation actions;
+they do not check out a branch.
The PR label opens that PR. Each field gets its own accessible link, tooltip, and
the shared hover treatment, including in joined Agnoster segments.
diff --git a/desktop/design/workspace-status-bar.md b/desktop/design/workspace-status-bar.md
index c101fd7ea..3f1e66571 100644
--- a/desktop/design/workspace-status-bar.md
+++ b/desktop/design/workspace-status-bar.md
@@ -112,12 +112,16 @@ name; outside Git, use the ordinary folder name. A worktree follows exactly the
same rule. Its generated path and `[worktree]` marker do not belong in the bar.
Keep the full actual path in the tooltip and accessibility detail.
-A focused viewer shows its owning harness's context. Omit absent project or Git
-metadata; detached commits say `detached:<commit>`. Clear it for an empty tab.
+A focused viewer shows its owning harness's context. Show only named branches;
+omit detached commit hashes and absent project or Git metadata. Clear it for an
+empty tab.
+
+![Detached checkout showing its model, machine, and project, rendered with synthetic data](images/workspace-detached-status.png)
+
Each field is independently clickable, with the same bold hover/keyboard-focus
text and hand cursor as the status symbols. Machine opens the shared picker scoped by machine
identity; project opens its harnesses across matching remote checkouts; branch
-opens that project filtered by its exact branch or detached commit. Escape returns
+opens that project filtered by its exact branch. Escape returns
from branch to project, then to project search. Names never establish identity.
Branch navigation does not check out or create a branch.
diff --git a/desktop/lib/state/workspace_status.dart b/desktop/lib/state/workspace_status.dart
index 8d5b8e492..c39e460f3 100644
--- a/desktop/lib/state/workspace_status.dart
+++ b/desktop/lib/state/workspace_status.dart
@@ -170,9 +170,7 @@ class WorkspacePaneContext {
_ => engineIdentity(engine).label,
};
final projectName = project?.label ?? '';
- final branch = project?.detached == true
- ? 'detached:${project!.branch!.substring(kDetachedBranchPrefix.length)}'
- : project?.shownBranch;
+ final branch = project?.shownBranch;
return WorkspacePaneContext(
pane: pane,
agent: agent,