Skip to content

fix(session): skip handoff record when abort discards a stub - #1250

Merged
TheGreatAxios merged 1 commit into
mainfrom
fix/tui-abort-phantom-compaction-handoff
Sep 30, 2026
Merged

TheGreatAxios merged 1 commit into
mainfrom
fix/tui-abort-phantom-compaction-handoff

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • Skip recording a compaction-handoff when TUI abort discards a completeness-gate certified stub
  • Keep the gate inside wrapPruning so a discarded stub still does not fire notice or onFolded
  • A landed stub fold still records the handoff and notices

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • bun run check passes (7867 tests, 0 fail)

The TUI wrapCompactor race can discard a completeness-gate
certified stub. Recording the new spine inside that race left
a compaction-handoff in the archive for a fold that never
landed.
@TheGreatAxios
TheGreatAxios merged commit c7d7932 into main Sep 30, 2026
13 checks passed
@TheGreatAxios
TheGreatAxios deleted the fix/tui-abort-phantom-compaction-handoff branch September 30, 2026 00:58
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.

1 participant