# NousResearch/hermes-agent · Fix queued prompt row during in-place compaction

## Open now

- Nothing open on GitHub.

These items address a bug where a queued prompt's row is lost or duplicated when an in-place compaction occurs mid-turn. The fixes ensure the queued row is correctly tracked and survives compaction without appearing twice.

## 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 #128282. Verify it addresses your case.
- **Recommended:** read PR #128282 (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-128282`. 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

- #123675: A prompt queued during a turn that compacts in place ends up active twice after the drain

## Prior & competing PRs

- **#128282: fix(tui_gateway): one turn's rows land in one session, and the queued row survives an in-place compaction**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/message_metadata.py`, `hermes_state_messages.py`, `tests/tui_gateway/test_queued_prompt_persistence.py`, `tests/tui_gateway/test_submit_row_session_target.py`, `tests/tui_gateway/test_tui_gateway_server.py`, `tui_gateway/methods_prompt.py`, `tui_gateway/methods_session.py`, `tui_gateway/prompt_turn.py`, `tui_gateway/server.py`, `tui_gateway/session_auto_continue.py`, `tui_gateway/session_workdir.py`
- **#123676: fix(tui_gateway): follow a queued prompt's row across an in-place compaction**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `0a6eaab83c`, `#128282`

## Fix status

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