feat(app): add file tree panel by edoedac0 · Pull Request #10236 · anomalyco/opencode · GitHub
Skip to content

feat(app): add file tree panel - #10236

Closed
edoedac0 wants to merge 4 commits into
anomalyco:devfrom
edoedac0:snapshot-file-tree
Closed

edoedac0 wants to merge 4 commits into
anomalyco:devfrom
edoedac0:snapshot-file-tree

Conversation

@edoedac0

@edoedac0 edoedac0 commented Jan 23, 2026 •

Copy link
Copy Markdown
Contributor

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
Files.system.opencode.mov

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

@github-actions

Copy link
Copy Markdown
Contributor

@github-actions

Copy link
Copy Markdown
Contributor

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.

feat(app): Add file tree panel to session view

2 participants