Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

fix(app): preserve file tree tab on reopen + fix e2e test regressions#16482

Merged
adamdotdevin merged 4 commits intoanomalyco:devfrom
neriousy:fix/app-file-tree-tab
Mar 7, 2026
Merged

fix(app): preserve file tree tab on reopen + fix e2e test regressions#16482
adamdotdevin merged 4 commits intoanomalyco:devfrom
neriousy:fix/app-file-tree-tab

Conversation

@neriousy
Copy link
Contributor

@neriousy neriousy commented Mar 7, 2026

Issue for this PR

Closes #16481

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Persists state for file sidebar so it does not force it to switch to "Changes"
Also fixes some e2e test regressions

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

  1. Open file sidebar
  2. Switch to all files
  3. close & open file sidebar

Screenshots / recordings

2026-03-07.15-55-42.mp4

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Copilot AI review requested due to automatic review settings March 7, 2026 14:58
@neriousy neriousy requested a review from adamdotdevin as a code owner March 7, 2026 14:58
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a session UI regression where reopening the file tree side panel would reset the selected tab (notably switching back to Changes instead of preserving All files), improving continuity of the file sidebar state across toggles.

Changes:

  • Adjusts the file tree “reopen” effect to avoid forcing the tab back to "changes" in common reopen scenarios.
  • Limits automatic tab switching to a narrower condition (only switching to "all" when reopening while a file tab is active and the current file tree tab is "changes").

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

@neriousy neriousy changed the title fix(app): preserve file tree tab on reopen fix(app): preserve file tree tab on reopen + fix e2e test regressions Mar 7, 2026
@adamdotdevin adamdotdevin merged commit 66fcab7 into anomalyco:dev Mar 7, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Closing / Opening file tab does not persist which tab was selected

3 participants