Skip to content

fix(opencode): use chronological message boundaries - #40991

Merged
thdxr merged 1 commit into
devfrom
message-boundaries
Aug 7, 2026
Merged

fix(opencode): use chronological message boundaries#40991
thdxr merged 1 commit into
devfrom
message-boundaries

Conversation

@opencode-agent

@opencode-agent opencode-agent Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • resolve fork targets by exact message position in the chronological transcript
  • compute revert diffs from the chronological suffix beginning at the target
  • remove the exact chronological suffix during revert cleanup
  • preserve existing part-level revert behavior

Testing

  • bun test test/session/session.test.ts (8 passed)
  • bun test test/session/revert-compact.test.ts (8 passed)
  • Prettier
  • git diff --check

Requested by: @thdxr (Dax Raad via Slack)

@thdxr
thdxr enabled auto-merge (squash) August 7, 2026 03:57
@thdxr
thdxr merged commit a54a693 into dev Aug 7, 2026
11 checks passed
@thdxr
thdxr deleted the message-boundaries branch August 7, 2026 04:08
HQ123-BOOP pushed a commit to HQ123-BOOP/LibreCode that referenced this pull request Aug 7, 2026
charlesverge pushed a commit to charlesverge/opencode that referenced this pull request Aug 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant