Skip to content

fix(sessions): return archived pins from the sidebar back-fill - #121444

Merged
OutThisLife merged 1 commit into
mainfrom
bb/71866-pinned-archived
Sep 24, 2026
Merged

OutThisLife merged 1 commit into
mainfrom
bb/71866-pinned-archived

Conversation

@OutThisLife

Copy link
Copy Markdown

Summary

The sidebar back-fill reused a WHERE that required archived = 0, so a pinned session that was also archived never returned. The pin query now uses pinned = 1 and drops only that archived constraint. Source, message-count, child, and hidden filters still apply. The stale sweep already skipped pins and was not changed.

The history-wipe claim in the report was not reproduced. No deleter was added.

Test plan

  • scripts/run_tests.sh tests/hermes_state/test_pinned_archived_sidebar.py — 1 failed on base, 3 passed after.

#104301 is copy only. It was not cherry-picked.

Auto-merge: rebase. Reviewed head 023ea0ec392c. The main list query is unchanged. Only the pin back-fill drops the archived constraint.

Fixes #71866

The include_pinned query reused the listing WHERE, including archived = 0.
The sidebar lists with include_archived=False, so a pinned row stamped
archived never back-filled. Rebuild that query without the archived
constraint and keep the other filters. The stale sweep already skips pins.
@OutThisLife
OutThisLife enabled auto-merge (rebase) September 24, 2026 11:17
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

૮ >ﻌ< ა ci review

ran on 023ea0e — fix(sessions): return archived pins from the sidebar back-fi

⚠️ Warnings

CI timings · View report · View job

Wall time 8m52s vs 6m32s (+35.7%). 6 job(s) slower, 7 faster, 1 unchanged.

  • Python tests / Run tests: +82.0s
  • Python tests / e2e-upgrade: -59.0s
  • Desktop core E2E / Desktop core E2E (Linux): -57.0s
  • OS-specific tests / Windows-only tests: -32.0s
  • Python tests / e2e: -29.0s

@alt-glitch alt-glitch added type/bug Something isn't working P2 Medium — degraded but workaround exists area/sessions Session lifecycle, resume, persistence, history sweeper:risk-session-state Sweeper risk: may lose/corrupt/mis-associate session or context state labels Sep 24, 2026
@OutThisLife
OutThisLife merged commit d85ab85 into main Sep 24, 2026
41 checks passed
@OutThisLife
OutThisLife deleted the bb/71866-pinned-archived branch September 24, 2026 11:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/sessions Session lifecycle, resume, persistence, history P2 Medium — degraded but workaround exists sweeper:risk-session-state Sweeper risk: may lose/corrupt/mis-associate session or context state type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Desktop sidebar completely empty after update — both history and pinned sessions gone, state.db intact

2 participants