Repository navigation
fix(chat): clear Codex copies after transcript confirmation - #62
Merged
Merged
Conversation
Codex records accepted follow-ups as completed UserMessage items. Consume a matching item from the bound rollout to clear the uncertain queued row after the terminal check times out.
This was referenced Nov 22, 2026
devswha
added a commit
to devswha/ovis
that referenced
this pull request
Nov 26, 2026
## Change After Codex accepts a follow-up sent with **Send now**, Ovis can show the message in Chat and leave the queued copy marked **Not confirmed**. Clear the copy when Codex shows the newly accepted message above its working status. If the terminal check times out, look for a completed user item in the bound Codex transcript. Ovis clears the copy when one new item matches one tracked send and the same Codex process still owns the pane. If the evidence is missing or ambiguous, Ovis keeps the copy. Confirming delivery sends no additional terminal input. This adapts the fix from the MIT-licensed Ovis fork. [Terminal check](christso#61) · [Receipt tracking](christso#18) · [Completed user events](christso#62) Fixes #4465 ## Validation - Reproduced the duplicate with real Codex 0.171.0 on upstream `main` at `e16802a2`. Codex recorded one user message, and Ovis kept one **Not confirmed** copy. [Reproduction and recordings](#4465) - The contract regression checks that a late completed user item clears the copy without sending any more input. Unit tests cover matching text from another send, a process replacement during reconciliation, and a send refused before input. - `bun run typecheck` passed. - All 130 tests in `server/pending-input.contract.test.ts` passed in an isolated Herdr session. - 145 tests passed across `server/codex-delivery.test.ts`, `server/codex-steering.test.ts`, `server/core/codex-reconciliation.test.ts` and `server/pending-input.test.ts`. - 98 tests passed across `server/core/pending.test.ts`, `server/core/pending-agy-send-now.test.ts` and `scripts/changelog-fold.test.ts`. - 285 tests passed across `server/codex-live-rendered.test.ts` and `server/codex-processes.test.ts`. All 25 tests in `server/conventions.test.ts` also passed. - Full integration, browser and native platform suites were skipped locally. --------- Co-authored-by: devswha <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change
A delivered Codex follow-up could appear in Chat while its queued copy still said “Not confirmed.” Ovis now clears the copy when it finds a unique completed user item with matching text in the pane’s bound Codex session.
The terminal echo check can time out after Codex accepts a follow-up. Codex 0.170 and 0.171 record acceptance as
item_completedwith aUserMessage. The receipt matcher checks that event’s thread ID before clearing the queue entry. Previous fixValidation
server/codex-steering.test.ts,server/codex-delivery.test.ts,server/core/codex-reconciliation.test.tsandserver/pending-input.contract.test.ts. The watcher test verifies that the queued copy clears without additional input.bun run check fastpassed type checking and the build, then reported failures in device notices, the device journal and Zsh setup. Both device suites also failed locally on the base revision. The Zsh suite passed when rerun in isolation on both revisions. The check also noted that the commit was made during the run.