feat(desktop): add workspace path status action - #59241
Conversation
OutThisLife
left a comment
There was a problem hiding this comment.
Approve. Clean, well-scoped, and idiomatic.
Surfaces the active session cwd as a status-bar item (hidden when no cwd) with copy / reveal-in-file-manager / reveal-in-tree — reusing the existing copyFilePath / revealFile / revealFileInTree actions and the fileMenu i18n keys rather than adding new plumbing. This is exactly the kind of complementary status panel that's fine around the embedded TUI/composer — it's an orientation affordance, not a second chat surface. The workspaceLabel leaf helper and the added useMemo deps are correct.
Verified on a clean cherry-pick onto current main:
- merges clean
tsc(app + electron) cleaneslinton the changed file clean
Only nit (non-blocking): no unit test, but it's a 50-line presentational item over already-tested actions. Thanks @Supersynergy.
Dismissing my approval — reworking as a superseding PR: drop the per-item icons from the dropdown and align it to the exact menu primitives/typography the other status-bar menus use.
|
Superseded by #63086. Your commit is preserved there intact — I only aligned the dropdown with the rest of the status bar: dropped the per-item icons (they mixed a lucide |
|
Closing in favor of #63086 (text-only dropdown aligned to the shared status-bar menu primitives; your commit preserved). |
…e-status feat(desktop): add workspace path status action (supersedes #59241)
…241-workspace-status feat(desktop): add workspace path status action (supersedes NousResearch#59241)
…241-workspace-status feat(desktop): add workspace path status action (supersedes NousResearch#59241)
…241-workspace-status feat(desktop): add workspace path status action (supersedes NousResearch#59241)
…241-workspace-status feat(desktop): add workspace path status action (supersedes NousResearch#59241)
…241-workspace-status feat(desktop): add workspace path status action (supersedes NousResearch#59241)
Summary
Adds a workspace path item to the desktop status bar with quick path actions.
Why
The current working directory is one of the most important pieces of context in an agentic coding session. If users have to manually infer the folder, copy a path from text, switch to Finder, or hunt through the tree, a simple orientation task becomes a repeated context switch.
This makes the active workspace a visible, actionable object.
Changes
Validation
cd apps/desktop && npm run typecheckcd apps/desktop && npx eslint src/app/shell/hooks/use-statusbar-items.tsx