Skip to content

Preserve stopped state on redundant pause - #74

Merged
janrysavy merged 3 commits into
masterfrom
codex/pause-idempotence
Oct 6, 2026
Merged

janrysavy merged 3 commits into
masterfrom
codex/pause-idempotence

Conversation

@janrysavy

Copy link
Copy Markdown
Owner

A redundant execution.pause overwrote an existing breakpoint stop and lost the one-instruction resume exemption, causing continue to hit the same breakpoint immediately. Pause now returns the current registers without modifying a stopped machine or its control state. Active pause behavior is retained.

Validation: 41 affected tests pass under CPython and PyPy, including complete configured-machine/control equality, retained operation results, subsequent breakpoint continuation, and active step/run_until cancellation. The old handler fails both new state-preservation controls; restored source passes. Stacked on keyboard epoch PR73; final rebase and public CI are required before integration.

@janrysavy
janrysavy force-pushed the codex/keyboard-epoch branch from 4f488d5 to e0855c4 Compare October 6, 2026 04:53
@janrysavy
janrysavy force-pushed the codex/pause-idempotence branch from 11f41c1 to 1aba9b5 Compare October 6, 2026 04:54
@janrysavy
janrysavy changed the base branch from codex/keyboard-epoch to master October 6, 2026 04:58
@janrysavy
janrysavy force-pushed the codex/pause-idempotence branch from 1aba9b5 to c84d332 Compare October 6, 2026 04:59
@janrysavy
janrysavy merged commit d8b3c0e into master Oct 6, 2026
5 checks passed
@janrysavy
janrysavy deleted the codex/pause-idempotence branch October 6, 2026 05:03
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