# NousResearch/hermes-agent · Preserve message timestamps through fork/compress/branch

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #32522: fix(db): preserve message timestamps across fork/compress/branch (#28841)

These issues and pull requests address a bug where message timestamps were being overwritten with the database write time instead of being preserved when messages are copied during fork, compress, or branch operations.

## TL;DR

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

- #28841: messages.timestamp is always DB write-time, lost during fork/compress/branch

## Prior & competing PRs

- **#69301: fix(sessions): preserve original message timestamps through fork, branch, and compression copies**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `contributors/emails/tangyi@DESKTOP-2U4MD8Q`, `gateway/slash_commands.py`, `hermes_cli/cli_commands_mixin.py`, `tests/test_hermes_state.py`, `tests/tui_gateway/test_protocol.py`, `tui_gateway/server.py`
- **#28977: fix: preserve message timestamps across fork/compress/branch**. closed without merge
  - maintainer direction: category `duplicate_of`; implication `duplicate`; refs `#28840`
- **#32522: fix(db): preserve message timestamps across fork/compress/branch (#28841)**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`
  - files: `cli.py`, `gateway/mirror.py`, `gateway/run.py`, `gateway/session.py`, `hermes_state.py`, `run_agent.py`, `tests/test_hermes_state.py`, `tui_gateway/server.py`

## Fix status

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