# NousResearch/hermes-agent · Fix lineage edit ordinals after session compression

## Open now

- Nothing open on GitHub.

A bug where editing messages fails in long sessions due to compression affecting message history indexing. The associated fixes address mapping edit ordinals correctly past the compression prefix.

## TL;DR

- 3 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #87563. Verify it addresses your case.
- **Recommended:** read PR #87563 (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-87563`. 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.67`: 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

- #82462: \[Bug\]: Desktop — Edit failed: target user message is no longer in session history (Grok / long sessions)

## Prior & competing PRs

- **#87563: fix(tui): map lineage edit ordinals past the compression prefix (salvages #82514)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `apps/desktop/src/app/session/hooks/use-prompt-actions/index.test.tsx`, `apps/desktop/src/app/session/hooks/use-prompt-actions/index.ts`, `apps/desktop/src/i18n/ar.ts`, `apps/desktop/src/i18n/en.ts`, `apps/desktop/src/i18n/ja.ts`, `apps/desktop/src/i18n/types.ts`, `apps/desktop/src/i18n/zh-hant.ts`, `apps/desktop/src/i18n/zh.ts`, `apps/desktop/src/lib/json-rpc-gateway-url-guard.test.ts`, `apps/shared/src/index.ts`, `apps/shared/src/json-rpc-gateway.ts`, `tests/test_tui_gateway_server.py`, `tui_gateway/methods_prompt.py`, `tui_gateway/server.py`
- **#82514: fix(tui): map lineage edit ordinals past compression prefix**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#87563`, `#82959`, `#82756`

## Fix status

- Merged to main in PR #87563 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-16`.
- Subsystem: `apps/desktop`
