Skip to content

Investigate preservation of interrupted steers - #3

Draft
diegomrsantos wants to merge 1 commit into
mainfrom
fix/persist-accepted-steering
Draft

diegomrsantos wants to merge 1 commit into
mainfrom
fix/persist-accepted-steering

Conversation

@diegomrsantos

@diegomrsantos diegomrsantos commented Sep 16, 2026 •

Copy link
Copy Markdown
Owner

Accepted steering input can disappear if an active turn is interrupted before the input reaches history. This draft attempts to preserve it by draining the pending queue during abort, but review has demonstrated that the implementation is incomplete and introduces regressions. It is not ready to merge.

Related issue: openai/codex#45967.

Review of commit db71ffe20aaaa4e07854ae6eea2608b252818e74 established:

  • Remaining loss window: when a steer has already entered a prompt hook, abort finds an empty pending queue. A gated integration test still finds zero saved user response items after interruption. The same failure occurs before this patch.
  • New interruption delay: abort starts prompt hooks and waits for them before reporting completion. A test holds the hook open and fails its responsiveness assertion with this patch; it passes before the patch. Prompt hooks default to 600 seconds.
  • TUI regression: the new user message completion events remove pending steers before the interruption handler can submit them. The existing Esc test passes, while a test delivering the new server event sequence fails because no replacement submission is emitted.

The five previously reported focused tests passed, but they did not cover these cases. The two added persistence tests search rollout text and do not prove exact replayable history or absence of duplicates. No corrected implementation has been validated, and these tests do not establish the cause of the original desktop incident.

A replacement needs to preserve unprocessed input without treating it as model history approved by hooks, and reconcile client retries with the recovered input. The recorder used during abort does not provide that contract.

@diegomrsantos
diegomrsantos marked this pull request as draft September 16, 2026 17:34
@diegomrsantos diegomrsantos changed the title [macOS Desktop] Persist accepted steers on abort Investigate preservation of interrupted steers Sep 16, 2026
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