Skip to content

fix(app): drop archived sessions from home list right away - #44905

Merged
Brendonovich merged 3 commits into
anomalyco:devfrom
NathanTCode:fix-archive-refresh
Aug 25, 2026
Merged

fix(app): drop archived sessions from home list right away#44905
Brendonovich merged 3 commits into
anomalyco:devfrom
NathanTCode:fix-archive-refresh

Conversation

@NathanTCode

@NathanTCodeNathanTCode commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Issue for this PR

Closes#44619

Type of change

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

What does this PR do?

When a session is archived, it stayed visible in the Home list until a full refresh because the in-memory Home index cache was never updated.

This bug already existed before PR #41741 (register archive session command in both layouts), which re-enabled archiving . It was just hidden while archiving was broken. Restoring it brought the bug back.

This PR adds a remove(sessionID) method to the Home index cache (home-session-index.ts), and call it right after archiving, both from Home (home-sessions-controller.tsx) and from the session route (session-archive.ts), so the archived session disappears from the Home list immediately.

The remove call is a no-op when the Home index isn't mounted.

How did you verify your code works?

bun typecheck
Unit tests for home-session-index: removal of a session from the loaded index, and no-op when the index isn't mounted

Screenshots / recordings

Before

CleanShot.2026-08-25.at.08.48.18-converted.mp4

After

CleanShot.2026-08-25.at.08.52.15-converted.mp4

Checklist

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

@github-actionsgithub-actionsBot added needs:compliance This means the issue will auto-close after 2 hours. contributor labels Aug 25, 2026
@github-actionsgithub-actionsBot removed the needs:compliance This means the issue will auto-close after 2 hours. label Aug 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

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

@Brendonovich
Brendonovich enabled auto-merge (squash) August 25, 2026 07:22
@Brendonovich
Brendonovich merged commit a57230b into anomalyco:devAug 25, 2026
8 checks passed
Sign up for freeto 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.

Desktop: archived session stays in the conversation list until the app is refreshed

2 participants

@NathanTCode@Brendonovich