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

@NathanTCode NathanTCode 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-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. contributor labels Aug 25, 2026
@github-actions github-actions Bot 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:dev Aug 25, 2026
8 checks passed
@NathanTCode
NathanTCode deleted the fix-archive-refresh branch August 25, 2026 14:40
Anonymouse8882 pushed a commit to Anonymouse8882/opencode that referenced this pull request Aug 27, 2026
…#44905)

Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
(cherry picked from commit a57230b)
Archipel pushed a commit to Archipel/opencode that referenced this pull request Aug 29, 2026
…#44905)

Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>
1056674754 added a commit to 1056674754/opencode that referenced this pull request Aug 31, 2026
Upstream v1.18.23 (ef2880f, merged at 2091b86) -> v1.18.25 (cb7d8b2),
41 commits / 224 files. Upstream superseded the v1.18.24 release commit
(57e8055) with 19db518 (sync release versions for v1.18.24) in the
v1.18.25 lineage; merge base is 31c409a (update inference headers).
Staged delta vs pre-merge fork HEAD is identical to the upstream tag-to-tag
diff (224 files, +5428/-1627), confirming a clean adoption.

Functional changes:
- feat(opencode): load supported v2 config in v1 (anomalyco#45421) — new
  config/v2-compat.ts lowers v2 config onto v1 before schema parsing;
  decodeConfig wraps every load/update path. Fork's getFresh/commitFresh
  interface additions in config.ts untouched.
- feat(opencode): support Azure CLI authentication (anomalyco#45079) and fix:
  remove Bun dependency from Azure authentication (anomalyco#45845) —
  plugin/azure.ts grows an az CLI credential chain (+241); provider.ts
  custom Azure loader adds auth.accountId as a resource-name fallback
  (1 line, disjoint from the fork snapshot architecture). New
  test/plugin/azure.test.ts passes in full.
- fix(opencode): compare config snapshots as JSON (anomalyco#45784) — the update
  path re-reads the original file text and merges the patch onto the raw
  parsed record, detecting change via serialized comparison.
- fix(provider): filter unreplayable Bedrock reasoning before caching
  (anomalyco#45769) — transform.ts; verified disjoint from the fork GLM/ZhiPu
  normalization block, which is intact.
- fix(core): recover legacy database migration history (anomalyco#45061).
- fix(ui): restore focus in stacked dialogs (anomalyco#44928); fix(app): drop
  archived sessions from home list right away (anomalyco#44905).
- console/stats/go: zen quota usage breakdown, weekly retention metrics,
  Go comparison chart mobile fix, auth redirect validation, checkout
  rate limit; docs: Qwen3.8 Flash, GLM-5.3-Flash, Grok 4.6.

Conflicts resolved: 29 package.json version bumps (rebranded 1.18.25-sscity),
bun.lock (took upstream, rebranded workspace entries via bun install; only
external dep delta is removal of the console map stack d3-geo/topojson/
world-atlas plus a @types/bun catalog entry). provider.ts and transform.ts
auto-merged; merged files verified to differ from v1.18.25 only by fork
deltas (ProviderSnapshot architecture, deferred snapshot initialization,
GLM normalization, getFresh/commitFresh). Tests: provider 105, transform,
bedrock, config, v2-compat, session retry/llm — 906 pass / 0 fail across
14 files; azure plugin 18 pass; typecheck clean. Pre-existing, not from
this merge: 4 cf-ai-gateway-e2e anthropic-passthrough tests fail
identically on pre-merge fork HEAD with an unchanged ai-gateway-provider
3.2.0 lock entry — environmental drift, left as-is.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
filipeforattini added a commit to reddb-io/redcode that referenced this pull request Sep 5, 2026
…#44905)

Ported from anomalyco/opencode a57230b.

Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>

Upstream: a57230b
filipeforattini added a commit to reddb-io/redcode that referenced this pull request Sep 5, 2026
…#44905)

Ported from anomalyco/opencode a57230b.

Co-authored-by: Brendan Allan <14191578+Brendonovich@users.noreply.github.com>

Upstream: a57230b
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.

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

2 participants