Skip to content

fix(coding-agent): preserve custom message timestamps - #77

Open
rynfar wants to merge 1 commit into
pylonfrom
fix/custom-message-timestamps
Open

rynfar wants to merge 1 commit into
pylonfrom
fix/custom-message-timestamps

Conversation

@rynfar

@rynfar rynfar commented Sep 15, 2026

Copy link
Copy Markdown

Custom messages received a new timestamp when saved, so rebuilding the same session changed its transcript identity. Preserve the original message timestamp at all eight AgentSession persistence sites and reject invalid explicit timestamps before mutating history.

Fixes #76. This is required by Pylon PrimeIntellect-ai#552 and the managed delivery tracked in pylon-code/pylon#557. Existing histories whose timestamps already differ remain unproved; this change does not rewrite them or weaken continuity checks. No daemon protocol or artifact recipe changes.

Validation: 165 focused regression/session tests passed; npm run check and the required commit hook passed. Regression coverage advances the persistence clock and compares live, rebuilt, compacted, and reopened history, plus rollback and invalid timestamps.

Maintainer authorization: the developer requested review, fixes, and merging this batch (“finish these please”). Merge after green hosted checks.

Implemented and reviewed with GPT-6 Astra in Pylon/Codex.


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Preserve custom message timestamps across persistence and compaction

1 participant