Repository navigation
to-human 0.5.3: an API error stays in the report mid-turn and after a resume - #331
Merged
Merged
Conversation
… resume The view kept an API error in the report only when `turn.complete` said the turn ended on one, matched by its text in memory. So an error the turn went on after (a connection lost mid-response) folded into the working record, and so did every error after a resume or a module restart, which raise no `turn.complete` for the past. A row is now known for an API error by what it is: live, by its append, whose origin names `<synthetic>` as its model (`No response requested.`, the engine's other stand-in, excepted); from the transcript, by the `isApiErrorMessage` flag on its line, which the start-up and resume searches now list beside the rows' ids. An error row is a row the person reads, so the working record after a mid-turn error opens a run of its own. Checked live against a fake Messages API (400s, a stream dropped mid-response): both errors draw in the report as they happen, and the turn-ending one again after `--resume`. A mid-turn error's row branches off the conversation's chain, so the engine draws none on a resume. Sminos-Session: full-transcript-message-rendering#ecf2a808 (doperpowers on macbook)
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
9 of 12 tasks
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.
The report view kept an API error visible only when
turn.completesaid the turn ended on one. It matched the row by its text, kept in memory. Two kinds of error folded into[ working record ]instead:API Error: Connection lost mid-response, when the engine still ran the tool call it had received.turn.completedoesn't fire again for past turns, so the view forgot them.Change: the view now recognizes an error row by what the row is:
session.appendnames<synthetic>as its model, as observed on 2.1.306. The engine's other stand-in,No response requested., is excluded."isApiErrorMessage":trueflag on the row's line. The existing start-up and resume search now lists it beside the row ids. The flag follows its own row'suuidon all 786 error rows on this machine.An error row now counts as a row the person reads, so the working record after a mid-turn error gets its own
[ working record ]button. Theturn.completehook is gone.Live check: a session in tmux against a fake Messages API (400 errors and a stream dropped mid-response).
--resumethe turn-ending error folded too.--resume.Tests:
to-human/tests/mods/run.sh102 pass; five of the new tests fail on the old view.session-places.tsruns the search with both rg and grep.tests/mods/typecheck.sh --layis clean.Sminos-Session: full-transcript-message-rendering#ecf2a808 (doperpowers on macbook)