Skip to content

feat(app): add file tree panel#10236

Open
edoedac0 wants to merge 4 commits intoanomalyco:devfrom
edoedac0:snapshot-file-tree
Open

feat(app): add file tree panel#10236
edoedac0 wants to merge 4 commits intoanomalyco:devfrom
edoedac0:snapshot-file-tree

Conversation

@edoedac0
Copy link
Contributor

@edoedac0 edoedac0 commented Jan 23, 2026

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
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions
Copy link
Contributor

The following comment was made by an LLM, it may be inaccurate:

No duplicate PRs found

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