📁 Feature: Watch for File Changes in /workspaces and Auto-Update Frontend
Summary
Currently, the sandbox file explorer fetches files only on page load or on-click. This is inefficient and non-reactive. We need to add a watcher mechanism to detect file/directory changes inside /workspaces, and automatically emit updated file structure back to the frontend.
Motivation
To mimic a true IDE experience, changes in the file system (new files, renamed, deleted, modified) should be reflected in near real-time in the frontend UI.
Tasks
🧠 Backend (Runner Service)
🧑🎨 Frontend
Code Locations
- Runner:
runner/pkg/ws/ws.go
- Frontend: Likely in sandbox view, near file tree handler component
Labels
feature, frontend, backend, websockets, file-watcher, devex
📁 Feature: Watch for File Changes in /workspaces and Auto-Update Frontend
Summary
Currently, the sandbox file explorer fetches files only on page load or on-click. This is inefficient and non-reactive. We need to add a watcher mechanism to detect file/directory changes inside
/workspaces, and automatically emit updated file structure back to the frontend.Motivation
To mimic a true IDE experience, changes in the file system (new files, renamed, deleted, modified) should be reflected in near real-time in the frontend UI.
Tasks
🧠 Backend (Runner Service)
fsnotify) in/runner/pkg/ws/ws.goor related socket handler./workspaces.🧑🎨 Frontend
Code Locations
runner/pkg/ws/ws.goLabels
feature,frontend,backend,websockets,file-watcher,devex