Skip to content

fix(#4058): [Bug]: Codex memory plugin replays historical turns after resume or transcript compaction - #4113

Open
7487 wants to merge 1 commit into
volcengine:mainfrom
7487:fix/issue-4058-bug-codex-memory-plugin-replays-historic
Open

fix(#4058): [Bug]: Codex memory plugin replays historical turns after resume or transcript compaction#4113
7487 wants to merge 1 commit into
volcengine:mainfrom
7487:fix/issue-4058-bug-codex-memory-plugin-replays-historic

Conversation

@7487

@7487 7487 commented Aug 19, 2026

Copy link
Copy Markdown

Summary

  • preserve the Codex transcript cursor after successful SessionStart commits
  • exclude committed cursor-only states from active-window and idle-TTL sweeps
  • resume a shrunken transcript at the latest human user turn instead of replaying compacted history
  • add hook-level regression coverage and update the lifecycle documentation

Type of Change

  • Bug fix
  • New feature
  • Documentation only
  • Refactoring

Testing

  • TDD RED reproduced cursor deletion, cursor re-sweeping, and six replayed turns instead of four
  • Focused hook tests: 7 passed
  • Full memory-plugin PR suite on Node 24.13.0: 305 passed, 1 skipped, 0 failed
  • node --check for changed scripts and tests
  • PR workflow installer bash -n checks
  • Marketplace staging build and required-file validation

The affected plugin is plain JavaScript; it has no separate TypeScript typecheck or UI build.

Related Issues

Fixes #4058

Checklist

  • Code follows project style guidelines
  • Tests added for the fixed behavior
  • Documentation updated
  • No dependencies added

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

Labels

None yet

Projects

Status: Backlog

Development

Successfully merging this pull request may close these issues.

[Bug]: Codex memory plugin replays historical turns after resume or transcript compaction

1 participant