Home

mweinbach / agent-coworker

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

Add file preview/read IPC and UI improvements

8 months ago

92567dd
Authored
mweinbach2/25/2026, 1:33:00 AM
Register readFile and previewOSFile IPCs and wire them through the preload, desktop API, schemas, and desktopCommands so the renderer can request file previews and read small file snippets (with workspace root checks). Update WorkspaceFileExplorer to open native explorer from the header and to preview OS files on single-click for files; remove the collapse-all control and simplify the file panel header. Add a per-thread model selector UI in ChatView when a thread has no visible feed, and make small layout/styling tweaks in ContextSidebar. Also add tooling/test stubs (chrome_inspector.ts, test_model.ts, test_ws.ts) and a temporary desktop UI image.

Parent01dfaf3

16 files changed
  • apps/desktop/electron/ipc/files.ts+37−1
  • apps/desktop/electron/preload.ts+22−0
  • apps/desktop/src/lib/desktopApi.ts+16−0
  • apps/desktop/src/lib/desktopCommands.ts+9−0
  • apps/desktop/src/lib/desktopSchemas.ts+5−1
  • apps/desktop/src/ui/ChatView.tsx+77−0
  • apps/desktop/src/ui/ContextSidebar.tsx+9−7
  • apps/desktop/src/ui/file-explorer/WorkspaceFileExplorer.tsx
+15
−46
  • bun.lock+119−6
  • chrome_inspector.ts+37−0
  • package.json+1−0
  • prompts/system-models/gemini-3.1-pro-preview.md+186−505
  • src/server/session/TurnExecutionManager.ts+13−3
  • test_model.ts+44−0
  • test_ws.ts+40−0
  • tmp/desktop-test-ui.png——