Skip to content

fix(app): show tree while opening files#36018

Merged
Hona merged 1 commit into
anomalyco:devfrom
Hona:temporary-file-tree
Jul 9, 2026
Merged

fix(app): show tree while opening files#36018
Hona merged 1 commit into
anomalyco:devfrom
Hona:temporary-file-tree

Conversation

@Hona

@Hona Hona commented Jul 9, 2026

Copy link
Copy Markdown
Member

Summary

  • force the embedded file tree visible while the Open file placeholder is active
  • preserve and automatically restore the user's saved closed-tree preference
  • cover opening, selecting, switching away, and reopening with the tree closed

Testing

  • bun run test:e2e e2e/regression/review-open-file.spec.ts
  • bun run test:unit
  • bun typecheck
  • bun run typecheck:e2e
  • bun turbo typecheck (push hook)

@Hona Hona requested a review from Brendonovich as a code owner July 9, 2026 04:25
Copilot AI review requested due to automatic review settings July 9, 2026 04:25

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts the Session “Open file” experience so the embedded file tree/sidebar is forced visible while the “Open file” placeholder UI is active, while still honoring the user’s persisted sidebar-open preference once a real file view is shown.

Changes:

  • Force the file-browser sidebar open when placeholder is active in SessionFileBrowserTab.
  • Extend the Playwright regression spec to assert sidebar visibility behavior across opening, switching away, selecting a file, and reopening when the persisted preference is “closed”.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
packages/app/src/pages/session/v2/session-file-browser-tab.tsx Forces sidebar to be considered open while the Open File placeholder is active.
packages/app/e2e/regression/review-open-file.spec.ts Adds regression coverage for sidebar visibility and restoration of closed-tree preference across tab switches.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<>
<SessionReviewV2SidebarToggle opened={props.state.sidebarOpened()} onToggle={props.state.toggleSidebar} />
<Show when={!props.state.sidebarOpened()}>
<SessionReviewV2SidebarToggle opened={sidebarOpened()} onToggle={props.state.toggleSidebar} />
@Hona Hona added the beta label Jul 9, 2026
@Hona Hona merged commit 9c6bb4f into anomalyco:dev Jul 9, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants