Skip to content

fix(tui): keep closed tabs closed across TUIs - #41401

Open
Narwhster wants to merge 1265 commits into
anomalyco:devfrom
Narwhster:keep-closed-tabs
Open

fix(tui): keep closed tabs closed across TUIs#41401
Narwhster wants to merge 1265 commits into
anomalyco:devfrom
Narwhster:keep-closed-tabs

Conversation

@Narwhster

@Narwhster Narwhster commented Aug 9, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #41394

Type of change

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

What does this PR do?

When two TUIs share tab storage, closing an inactive tab in one TUI caused the other TUI to reopen it when its storage state refreshed. This separates route-driven tab opening from storage-driven metadata updates, so a closed tab is not recreated unless the route actually changes. A regression test covers the cross-TUI case.

How did you verify your code works?

  • bun test test/context/session-tabs.test.tsx --timeout 30000
  • 6 tests passed, 0 failed
  • Repository typecheck pre-push hook passed

Screenshots / recordings

Not applicable. This is a behavior-only TUI bug fix with no visual changes.

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.

kitlangton and others added 30 commits July 30, 2026 15:54
kitlangton and others added 25 commits August 7, 2026 22:29
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
Co-authored-by: Kit Langton <7587245+kitlangton@users.noreply.github.com>
@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Aug 9, 2026
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

service: closing a tab active on another client re-opens it instead of closing

7 participants