GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(bridge,adapters): a turn that did not finish is not completed by lidge-jun · Pull Request #1995 · lidge-jun/opencodex

fix(bridge,adapters): a turn that did not finish is not completed #1995

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Sign up for GitHub

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
lidge-jun merged 40 commits into dev from cursor-call
Aug 18, 2026

Uh oh!

There was an error while loading. Please reload this page.

Merged

fix(bridge,adapters): a turn that did not finish is not completed #1995

Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d637eea
fix(bridge): a buffered turn with no adapter terminal is not completed
lidge-jun Aug 17, 2026
d23661d
fix(bridge): never install compaction history from a terminal-less turn
lidge-jun Aug 17, 2026
1b475b9
fix(bridge,google): close two more routes that install truncated comp…
lidge-jun Aug 18, 2026
64321f7
fix(bridge): recognize truncation regardless of adapter stop-reason v…
lidge-jun Aug 18, 2026
7e86ac2
fix(bridge): keep compaction suppression and terminal status in agree…
lidge-jun Aug 18, 2026
932e204
fix(bridge,command-code): treat pause_turn as unfinished and error as…
lidge-jun Aug 18, 2026
26a8270
docs(devlog): record what shipped for 050 and the adapter-side follow…
lidge-jun Aug 18, 2026
214b4ad
fix(anthropic,command-code): an upstream error stop reason fails the …
lidge-jun Aug 18, 2026
1bc055c
fix(anthropic): the EOF terminal path must fail an error stop reason too
lidge-jun Aug 18, 2026
1dab771
docs(devlog): record the final state of 050 after eight review rounds
lidge-jun Aug 18, 2026
4a9a96e
docs(devlog): final campaign status across all five phases
lidge-jun Aug 18, 2026
5a3cd64
docs(devlog): plan the cursor-call integration onto the current dev head
lidge-jun Aug 18, 2026
7d8c2ea
docs(devlog): absorb audit r1 FAIL — six findings, all verified, all …
lidge-jun Aug 18, 2026
fe015d4
docs(devlog): correct the 020 capability claim — the encoder shipped,…
lidge-jun Aug 18, 2026
39e04a8
docs(devlog),refactor: absorb audit r2 NEAR-PASS — three corrections
lidge-jun Aug 18, 2026
2d68a3e
docs(devlog): absorb audit r3 FAIL — five workflow findings, and rest…
lidge-jun Aug 18, 2026
7116ed9
docs(devlog): absorb audit r4 FAIL — four execution-procedure findings
lidge-jun Aug 18, 2026
f246c53
docs(devlog): absorb audit r5 FAIL — build the stack forward instead …
lidge-jun Aug 18, 2026
7627534
docs(devlog): absorb audit r6 FAIL — the stack was mine to get wrong,…
lidge-jun Aug 18, 2026
1a84d1d
docs(devlog): absorb audit r7 NEAR-PASS — the stack holds, and the pu…
lidge-jun Aug 18, 2026
b4a02fc
docs(devlog): record r7 PASS and r8 NEAR-PASS, and close the last pro…
lidge-jun Aug 18, 2026
af00213
docs(devlog): number the r7/r8 audit record per LEXICO-SPLIT-01
lidge-jun Aug 18, 2026
417c81f
docs(devlog): absorb audit r8 — the verification handoff pushed the w…
lidge-jun Aug 18, 2026
8779470
docs(devlog): rename 00A to 009b so review-round accepts it as a plan…
lidge-jun Aug 18, 2026
6a53467
docs(devlog): use three-digit numbering for the r7/r8 audit records
lidge-jun Aug 18, 2026
0916523
docs(devlog): absorb audit r10 — bind the verified tree to the merged…
lidge-jun Aug 18, 2026
2700f0c
docs(devlog): name MERGED_DEV so WP6 gates what WP5 produced
lidge-jun Aug 18, 2026
df5784e
docs(devlog): absorb audit r13 — turn the SHA bindings into commands …
lidge-jun Aug 18, 2026
0110129
docs(devlog): absorb audit r12 — bind the gate evidence to the tree i…
lidge-jun Aug 18, 2026
006bff1
docs(devlog): renumber the r12 record to 017 (016 was taken by r13)
lidge-jun Aug 18, 2026
e03015f
docs(devlog): remove the duplicate MERGED_DEV block and finish the pr…
lidge-jun Aug 18, 2026
bae83f2
docs(devlog): absorb audit r14 — three defects found by running the p…
lidge-jun Aug 18, 2026
34805a2
docs(devlog): absorb audit r14 — run the plan instead of reading it
lidge-jun Aug 18, 2026
3d4211d
docs(devlog): fold the second r14 pass into one 018 record
lidge-jun Aug 18, 2026
b8c6c00
docs(devlog): make the integration plan a program instead of a promise
lidge-jun Aug 18, 2026
41bd738
fix(devlog): the state file must not accumulate duplicate keys
lidge-jun Aug 18, 2026
d642d9b
fix(devlog): resolve the repo root from git, not by counting ..
lidge-jun Aug 18, 2026
e0dcf4b
fix(devlog): ten defects in the driver, three of them fatal
lidge-jun Aug 18, 2026
9e679a2
fix(devlog): the validator that was meant to harden the driver had br…
lidge-jun Aug 18, 2026
ff4b0bb
fix(devlog): a durable key is a claim its proofs passed, so it is wri…
lidge-jun Aug 18, 2026
File filter
Filter by extension

Clear filters
Conversations
Failed to load comments.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Jump to
Jump to file
Failed to load files.
Loading

Uh oh!

There was an error while loading. Please reload this page.

Diff view
Diff view
Prev Previous commit
Next Next commit
docs(devlog): record what shipped for 050 and the adapter-side follow…
…-ups
  • Loading branch information

Uh oh!

There was an error while loading. Please reload this page.

@lidge-jun
lidge-jun committed Aug 18, 2026
commit 26a82705c191c19e8d9a2ec3467030bfd6ddda16

There are no files selected for viewing

36 changes: 36 additions & 0 deletions 36 devlog/_plan/260817_cursor_toolcall_decode/050_phase5-nonstreaming-terminal.md
Show comments
View file
Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,39 @@ signal.
All five pass, `bun run typecheck` clean, and the **full** suite on `ssh lidge`
matches the pre-change baseline. Tests 1 and 2 demonstrated red beforehand.


## Shipped, and what the audit chain changed

Five review rounds. The plan's core claim survived; nearly every detail did not.

| Commit | What it closed |
|--------|----------------|
| `aa800ae65` | The default itself: a buffered turn with no adapter terminal is `incomplete`/`adapter_eof`, and an open tool call is no longer emitted as a completed `function_call` with half-written JSON. |
| `44fde398b` | The #422 compaction guard could only see explicit failure events, so a terminal-less turn still installed replacement history. |
| `f73f09c9e` | Streaming emitted the compaction item *before* reading `stopReason`; Google's `parseResponse` dropped `finishReason` entirely. |
| `95f73db17` | `stopReason` is an open-ended string and adapters disagree (`length`, `refusal`); canonical-only matching left the guard bypassable. |
| `71730023a` | **My own regression:** suppressing the item without downgrading the turn produced `completed` with zero compaction items — the shape codex-rs fatals on. Suppression and status now come from one decision. |
| `ea5e61677` | Anthropic `pause_turn` is unfinished by definition; AI SDK `error` is a failure, so Command Code emits a real error terminal instead of a stop reason. |

The lesson worth keeping: each round fixed the previous round's fix. Round 4 found
that my round-3 change had made things *worse* in one direction — a suppressed
compaction item with a success status is more dangerous than the bug it replaced,
because codex-rs treats zero items as fatal. Widening a guard without widening
what it reports is not a partial fix; it is a new failure.

## Open follow-ups (adapter-side, deliberately not folded in)

Both erase truncation metadata **before** the bridge can defend anything, so they
cannot be fixed here:

- **Kiro** (`kiro.ts:1315`, `:1485`): in `completionMode: "disabled"` — which routed
compaction selects, because it removes tools — the normalized reason is observed
and then the final `done` omits `stopReason`. `MAX_TOKENS` and
`MODEL_CONTEXT_WINDOW_EXCEEDED` both vanish.
- **Google ordinary mode** (`google.ts:779`, `:947`): only `MAX_TOKENS` and five safety
values are forwarded. `MALFORMED_RESPONSE`, `UNEXPECTED_TOOL_CALL`, `IMAGE_SAFETY`,
and `LANGUAGE` become reasonless `done` events. The Vertex/CCA fail-closed guard
covers only part of this.

Each is its own unit with its own truncation subsystem. Recording them beats
half-fixing them inside a bridge phase.
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.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.