Skip to content

fix(desktop): show open folder actions for the app's own threads - #853

Merged
M-Zajace merged 3 commits into
devfrom
fix/desktop-bundled-worker-flag
Nov 16, 2026
Merged

M-Zajace merged 3 commits into
devfrom
fix/desktop-bundled-worker-flag

Conversation

@M-Zajace

Copy link
Copy Markdown
Contributor

Summary

In the desktop app (local mode), "Open folder" never appeared in the thread menu or in Thread details, and "Open in default app" never appeared for files opened from the Files panel.

  • Gateway: the worker list query left desktopBundled out of the capabilities it selects, so every worker reached the UI as not bundled and onThisComputer() was always false. The query now selects it. updates-bundled.test.ts asserts the overview marks the app's own worker and not an external one.
  • Finder on macOS: the action reads "Open in Finder" when the thread's worker runs on macOS; Windows and Linux keep "Open folder".
  • Files panel: a file tab now asks its thread whether it is on this computer instead of relying on a flag that only message file links set, so files from the Files panel and restored tabs offer "Open in default app".

Fixes: #513

Verification

  • Dev desktop app on Windows: "Open folder" in the thread menu and the Thread details directory menu opens File Explorer; "Open in default app" on a file from the Files panel opens it (200).
  • Dev desktop app on macOS: "Open in Finder" in both menus opens Finder; "Open in default app" works for Files panel files.
  • updates-bundled.test.ts on macOS with Docker: 2 pass; without the SQL fix the new assertion fails.
  • Locally: lint and format on edited files, @canopy/gateway and @canopy/web typecheck, integration tests typecheck. The full gate is left to CI.

Copy audit (docs/copy.md §8)

Changed text: "Open folder" → "Open in Finder" on macOS (Finder is the name people know the macOS file manager by).

  1. One idea, sentence case, short: pass.
  2. Glossary: no banned synonyms; "Finder" is a product name of the OS, not a new term: pass.
  3. Menu item starts with a verb ("Open"): pass.
  4. Errors: none added or changed: n/a.
  5. Empty states: none: n/a.
  6. No repeated fact: pass.
  7. External gaps: n/a.
  8. No "soul" sentences: n/a.
  9. Short label, fits menus at desktop and phone width: pass.
  10. Text carries the meaning without the icon: pass.

The worker list query left desktopBundled out of the capabilities it
selects, so every worker reached the UI as not bundled. The desktop app
then hid Open folder and Open in default app for its own threads.

Fixes: #513
Only file links in messages marked a tab as local, so files opened from the Files panel or restored tabs never offered Open in default app. The file view now asks the thread whether it is on this computer.
@M-Zajace
M-Zajace merged commit dcf8828 into dev Nov 16, 2026
11 checks passed
@M-Zajace
M-Zajace deleted the fix/desktop-bundled-worker-flag branch November 16, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant