Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(desktop): allow Files panel to browse global one-off chat session dirs (#145)

4 months ago

8110a59
Authored
Max Weinbach6/1/2026, 10:41:15 PM
* fix(desktop): allow Files panel to browse global one-off chat session dirs

Global "New chat" sessions run with their cwd under ~/.cowork/chats/<session>,
which the server already trusts as a valid thread workspace. Those directories
are not persisted as project workspace roots, so the desktop Files panel and the
web fs routes rejected desktop:listDirectory / /cowork/fs/* for the chat cwd with
"path is outside allowed workspace roots".

Always include the one-off chats root (~/.cowork/chats) in the file-panel
allowlist, mirroring how save-export and reveal already augment workspace roots
with other ~/.cowork locations. Also drop the now-redundant empty-roots guard in
listDirectory so chat-only sessions list correctly.

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

* style: apply biome formatting to desktop resource build helpers

Fixes CI / Lint (`bunx biome check .`) failures on two over-width lines that
predate this branch but block the repo-wide lint job. Formatting-only,
no behavior change.

Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: Max Weinbach <mweinbach@users.noreply.github.com>

Parent7fb6be3

8 files changed
  • apps/desktop/electron/ipc/files.ts+6−5
  • apps/desktop/electron/services/ipcSecurity.ts+17−2
  • apps/desktop/test/ipc-files.test.ts+58−0
  • apps/desktop/test/ipc-security.test.ts+24−0
  • scripts/build_desktop_resources.ts+4−1
  • src/server/webDesktopService.ts+6−1
  • test/build-desktop-resources.test.ts+3−1
  • test/webDesktopRoutes.test.ts
+36
−0