Skip to content

fix(chat): clear accepted Codex Send now messages - #61

Merged
christso merged 3 commits into
christso/mainfrom
agents/tsoyang/ovis-codex-send-now-receipt
Nov 22, 2026
Merged

christso merged 3 commits into
christso/mainfrom
agents/tsoyang/ovis-codex-send-now-receipt

Conversation

@christso

Copy link
Copy Markdown
Owner

Change

Send now sometimes delivered a follow-up while leaving an identical “Not confirmed” row in the Ovis composer. Clear the pending row when Codex shows one newly accepted message above its working status and the composer is empty. When Codex shows the steering panel, recognize the current background-task status line while still requiring the matching panel entry and the existing checks before sending Escape.

Validation

  • Seventy-four focused tests passed, including duplicate confirmation and Escape handling.
  • Before and after MP4s and reproduction steps from isolated Chromium and Codex sessions.
  • Full integration and native Windows checks run in GitHub CI.

@christso
christso merged commit 3e3ecf4 into christso/main Nov 22, 2026
19 checks passed
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]>
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