Skip to content

Restore transaction state when committing fails - #19

Merged
Code0x58 merged 1 commit into
masterfrom
codex/rollback-failed-commits
Oct 18, 2026
Merged

Code0x58 merged 1 commit into
masterfrom
codex/rollback-failed-commits

Conversation

@Code0x58

@Code0x58 Code0x58 commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

When the outermost transaction cannot save, its previous in-memory state is restored and the original exception propagates. The transaction stack is cleared correctly so a subsequent transaction can commit.

Validation: 35 tests pass, including nested changes followed by replacement failure with both auto-commit modes, recovery on retry, and interrupted commits.

Stack position 6 of 9. Depends on #18; this PR targets codex/preserve-file-permissions so its diff contains only this fix. Addresses review finding 6.

Stack overview: #14. Next: #20.

@codecov

codecov Bot commented Oct 18, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.77%. Comparing base (81b0623) to head (e99a71f).
⚠️ Report is 3 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
+ Coverage   98.74%   98.77%   +0.03%     
==========================================
  Files           1        1              
  Lines         159      163       +4     
==========================================
+ Hits          157      161       +4     
  Misses          2        2              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@Code0x58
Code0x58 force-pushed the codex/rollback-failed-commits branch from e90570f to 29946db Compare October 18, 2026 15:13
@Code0x58
Code0x58 added this pull request to stack #23 October 18, 2026 15:39
@Code0x58
Code0x58 force-pushed the codex/rollback-failed-commits branch 4 times, most recently from d623c9f to bc3b9ae Compare October 18, 2026 15:46
Base automatically changed from codex/preserve-file-permissions to master October 18, 2026 15:47
@Code0x58
Code0x58 force-pushed the codex/rollback-failed-commits branch from bc3b9ae to e99a71f Compare October 18, 2026 15:47
@Code0x58
Code0x58 merged commit 07eb56e into master Oct 18, 2026
1 check passed
@Code0x58
Code0x58 deleted the codex/rollback-failed-commits branch October 18, 2026 18:48
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