Skip to content

Remount file tree when project thread changes#216

Merged
BunsDev merged 1 commit into
mainfrom
okcode/independent-file-tree-open-close
Apr 2, 2026
Merged

Remount file tree when project thread changes#216
BunsDev merged 1 commit into
mainfrom
okcode/independent-file-tree-open-close

Conversation

@BunsDev

@BunsDev BunsDev commented Apr 2, 2026

Copy link
Copy Markdown
Member

Summary

  • Remounts WorkspaceFileTree when the active project thread changes by keying it on activeProjectThread.id.
  • Falls back to the project id when no thread is active.
  • Keeps the file tree state isolated across thread switches so open/close state does not leak between contexts.

Testing

  • Not run (PR content only).
  • Verified the change is limited to apps/web/src/components/Sidebar.tsx.

- Key the workspace file tree by active thread or project
- Reset open/close state when switching project context
@vercel

vercel Bot commented Apr 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
okcode-marketing Ready Ready Preview Apr 2, 2026 9:37pm
v0-compute-the-platform-to-build Ready Ready Preview, Open in v0 Apr 2, 2026 9:37pm

@github-actions github-actions Bot added the vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. label Apr 2, 2026
@BunsDev BunsDev merged commit 7df809a into main Apr 2, 2026
9 of 10 checks passed
@BunsDev BunsDev deleted the okcode/independent-file-tree-open-close branch April 6, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant