feat(ui): show workspace mode badge in task header#2953
Merged
Conversation
Add a small icon before the task title in the task detail header that
distinguishes where a task runs: local working copy, isolated git
worktree, or cloud.
The workspace mode was already available via useWorkspace(taskId).mode
but nothing surfaced it. Cloud uses the same Cloud/accent glyph as the
sidebar TaskIcon; worktree uses GitFork/teal to avoid clashing with the
sidebar's amber GitBranch ("has changes"); local uses HardDrives/gray.
Generated-By: PostHog Code
Task-Id: aca01a55-925e-4c51-bbd2-2bd957cf3b53
"Cloud — runs in the cloud" was redundant. Describe where it runs instead: "runs on a remote machine". Generated-By: PostHog Code Task-Id: aca01a55-925e-4c51-bbd2-2bd957cf3b53
|
React Doctor found no issues in the changed files. 🎉 Reviewed by React Doctor for commit |
Contributor
|
- Drop the unused `size` prop from WorkspaceModeBadge; hard-code 13. - Show the badge in the channel breadcrumb path too (via leafIcon), so tasks opened inside a channel also surface the workspace mode. Gated on workspaceMode so the breadcrumb's icon slot stays empty until known. Generated-By: PostHog Code Task-Id: aca01a55-925e-4c51-bbd2-2bd957cf3b53
Contributor
|
Reviews (2): Last reviewed commit: "refactor(ui): address review feedback on..." | Re-trigger Greptile |
Generated-By: PostHog Code Task-Id: aca01a55-925e-4c51-bbd2-2bd957cf3b53
adboio
approved these changes
Jun 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem:
When running different tasks, some on local, on cloud, worktrees, its hard to tell which one is running where.
Solution
Adds a small icon before the task title showing where a task runs: local, worktree, or cloud. The mode was already
known (
useWorkspace().mode) but nothing showed it.HardDrives(gray)GitFork(teal)Cloud(accent)Hover for a tooltip. Shows in both the plain and channel (
# channel / title) headers.