[PR #10236] feat(app): add file tree panel #13373

Closed
opened 2026-02-16 18:18:14 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/10236

State: closed
Merged: No


Summary

Closes #10239

  • Adds a collapsible file tree panel to the session layout for browsing project files
  • Implements directory listing and lazy-loading via the SDK's file API
  • Persists file tree state (opened/closed, width) across sessions
  • Integrates with file watcher to auto-refresh directories when files are added/removed

https://github.com/user-attachments/assets/d988cc01-167b-49e4-b38d-11913ff11ed3

Changes

  • packages/app/src/context/file.tsx - Added tree state management with listDir, expandDir, collapseDir, and children methods
  • packages/app/src/context/layout.tsx - Added fileTree layout state for panel visibility and width
  • packages/app/src/components/file-tree.tsx - Updated file tree component
  • packages/app/src/pages/layout.tsx - Integrated file tree panel into the session layout
  • packages/app/src/pages/session.tsx - Minor session page updates for file tree integration
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/10236 **State:** closed **Merged:** No --- ## Summary Closes #10239 - Adds a collapsible file tree panel to the session layout for browsing project files - Implements directory listing and lazy-loading via the SDK's file API - Persists file tree state (opened/closed, width) across sessions - Integrates with file watcher to auto-refresh directories when files are added/removed https://github.com/user-attachments/assets/d988cc01-167b-49e4-b38d-11913ff11ed3 ## Changes - `packages/app/src/context/file.tsx` - Added tree state management with `listDir`, `expandDir`, `collapseDir`, and `children` methods - `packages/app/src/context/layout.tsx` - Added `fileTree` layout state for panel visibility and width - `packages/app/src/components/file-tree.tsx` - Updated file tree component - `packages/app/src/pages/layout.tsx` - Integrated file tree panel into the session layout - `packages/app/src/pages/session.tsx` - Minor session page updates for file tree integration
yindo added the pull-request label 2026-02-16 18:18:14 -05:00
yindo closed this issue 2026-02-16 18:18:14 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13373