# NousResearch/hermes-agent · Desktop chat thread reordering bug after compression

## Open now

- Nothing open on GitHub.

These items concern a renderer-side bug where recent user messages are incorrectly re-stacked at the bottom of long threads following context compression, caused by broken ordinal matching during optimistic row preservation. The group covers the problem report and two related fixes scoping optimistic tail behavior.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 2 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #69682. Verify it addresses your case.
- **Recommended:** read PR #69682 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `resolved` · deciding PR(s): `pr-69682`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.50`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Closed / duplicate issues

- #68979: Desktop: long-thread reconciliation re-stacks recent user messages at thread bottom after context compression (ordinal matching breaks; renderer-only, DB is correct)

## Prior & competing PRs

- **#69649: fix(desktop): avoid duplicate inflight user rows on resume**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/e2e/fixtures.ts`, `apps/desktop/e2e/large-session-resume.spec.ts`, `apps/desktop/e2e/mock-server.ts`, `apps/desktop/e2e/scripts/seed_large_session.py`, `apps/desktop/src/app/session/hooks/use-session-actions/index.ts`, `apps/desktop/src/app/session/hooks/use-session-actions/utils.test.ts`, `apps/desktop/src/app/session/hooks/use-session-actions/utils.ts`
- **#69682: fix(desktop): prevent stale optimistic tails after compression**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/src/app/session/hooks/use-session-actions/utils.test.ts`, `apps/desktop/src/app/session/hooks/use-session-actions/utils.ts`
- **#68985: fix(desktop): bound optimistic user-row preservation to the in-flight tail (#68979)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#69682`, `#68985`, `#69649`

## Fix status

- Merged to main in PR #69682 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-07-22`.
