GeezerVison is showing github.com — fix(server): preserve approval answers through provider acknowledgements by maria-rcks · Pull Request #25033 · pingdotgg/t3code
Conversation
maria-rcks
commented
Oct 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Pi, OpenCode and Muse acknowledgements can overwrite an approval decision or question answer that T3 already recorded. Muse also marks declined approvals completed and can reopen answered approvals during stage updates.
Change
Keep the orchestrator's response authoritative and use acknowledgements for adapter cleanup. Preserve Muse decline status, retain automatic/native decision handling, and give a genuinely new Muse requirement its own request after acknowledgement. Publish cards before requests so immediate answers settle the card too.
Reuse @saphid's implementation and replay coverage in main's split suites. Preserve current main's hidden automatic child approvals, including stale-decision failures.
Verification
- Rebased onto main
0aae722. Main already publishes OpenCode cards before requests, so that hunk folded into main's version.
blacksmith-check: vp run check:changed passed format, lint, knip, GraphQL validation, 11 package typechecks and 243 tests across the Muse, OpenCode and Pi adapter and replay suites.
- Replay covers approvals, declines, questions, acknowledgement ordering, turn cleanup, Muse stages and automatic child failures through the real adapters, orchestrator, effect worker and persisted projections.
- Unverified: live Pi/OpenCode/Muse accounts, reconnect, desktop, mobile and remote/tunnel flows.
Takeover
Replaces #16064, with thanks to @saphid for the original implementation.
Built with GPT-6.1-Sol in the Codex harness on T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Note
Reviews paused
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
Use the following commands to manage reviews:
@coderabbitai resume to resume automatic reviews.
@coderabbitai review to trigger a single review.
Use the checkboxes below for quick actions:
- Resume reviews
- Trigger review
No actionable comments were generated in the recent review.
Walkthrough
-
The provider adapters now retain submitted responses during native settlement and update request and projection state based on response ownership and outcome. Adapter tests and replay fixtures verify settlement behavior, approval stages, and associated node and turn-item states.
Changes: Provider response settlement
| Layer / File(s) |
Summary |
Muse response ownership and approval lifecycle packages/provider-muse/src/server/adapter.ts, packages/provider-muse/src/server/adapter.test.ts |
Muse records response ownership and resolution time, tracks approval round trips, and updates request projections during resolution. Tests cover delayed acknowledgements, staged approvals, stale requirements, and session state. |
OpenCode and Pi settlement updates packages/provider-opencode/src/server/adapter.ts, packages/provider-pi/src/server/adapter.ts, packages/provider-pi/src/server/adapter.test.ts |
OpenCode stores submitted responses, recalculates waiting status, and merges stored responses during settlement. Pi emits node and turn-item updates before runtime requests and no longer emits local resolved-state updates after responses. Tests check response retention and event order. |
Replay outcomes and projection assertions apps/server/src/orchestration-v2/testkit/OpenCodeReplayFixtures.integration.test.ts, apps/server/src/orchestration-v2/testkit/fixtures/* |
The OpenCode replay test checks child-approval decline. Fixture assertions check request decisions and answers, plus associated node and turn-item statuses. |
Estimated code review effort: 3 (Moderate) | ~25 minutes
Change: Bug fix
Suggested reviewers: juliusmarminge
Merge Risk: Minimal · up to a39a4
-
The change keeps provider acknowledgements from overwriting approval decisions and question answers already recorded by T3. Declined approvals stay cancelled, and cards are published before requests. No concrete merge-blocking defect was found, and live Muse behavior remains unverified.
Pre-merge checks: 4
-
| Check name |
Status |
Explanation |
| Title check |
 |
The title "fix(server): preserve approval answers through provider acknowledgements" matches the main change. The PR keeps T3's recorded approval decisions and question answers from being overwritten … |
| Description check |
 |
The description covers the problem, the change, scope context, and verification. It explains that Pi, OpenCode, and Muse acknowledgements can overwrite recorded decisions and answers, and it describes… |
| Linked Issues check |
 |
Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check |
 |
Check skipped because no linked issues were found for this pull request. |
Full details: Title check
-
Explanation
The title "fix(server): preserve approval answers through provider acknowledgements" matches the main change. The PR keeps T3's recorded approval decisions and question answers from being overwritten when Pi, OpenCode, and Muse send acknowledgements. The title is conventional, specific, and describes the primary fix. It does not cover every detail, such as the Muse decline status or card publication order, which is acceptable.
Full details: Description check
-
Explanation
The description covers the problem, the change, scope context, and verification. It explains that Pi, OpenCode, and Muse acknowledgements can overwrite recorded decisions and answers, and it describes the fix at the level of the orchestrator response and adapter cleanup. It names the reused implementation from #16064, which satisfies the scope guidance for a takeover. The Verification section lists focused tests and their results and states what was not checked. The template's Scope section asks for a linked bug issue, and the description links no issue. It also gives a reason why the fix should not need one only partially: it references #16064 instead. This is a minor gap, not a critical one. The template's agent-model line is present (GPT-6.1-Sol in the Codex harness). The description is mostly complete.
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 033dc6e and a39a4e6.
Files selected for processing: 5
-
packages/provider-muse/src/server/adapter.test.ts
packages/provider-muse/src/server/adapter.ts
packages/provider-opencode/src/server/adapter.ts
packages/provider-pi/src/server/adapter.test.ts
packages/provider-pi/src/server/adapter.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at a39a4e6
Macroscope's review found this PR approvable — The adapters retain recorded approval decisions and question answers through provider acknowledgements, keeping request cards and node states consistent. The change preserves existing approval policy and product defaults without introducing an obvious material risk.
You can add or adjust custom eligibility rules. Learn more.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Codex |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
21.5 KiB |
21.5 KiB |
0 B (0.0%) |
24.4 KiB |
✅ |
| Codex |
Live turn messages |
1 |
1 |
0 (0.0%) |
8 |
✅ |
| Claude |
Total thread wire |
5.0 KiB |
5.0 KiB |
0 B (0.0%) |
6.8 KiB |
✅ |
| Claude |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
0 B (0.0%) |
2.0 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
21.9 KiB |
21.9 KiB |
0 B (0.0%) |
24.4 KiB |
✅ |
| Claude |
Live turn messages |
1 |
1 |
0 (0.0%) |
8 |
✅ |
Other scenarios
All 64 scenario measurements match main.
All 64 scenario measurements
| Provider |
Scenario |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
short turn resume |
WebSocket decoded |
10.5 KiB |
10.5 KiB |
0 B (0.0%) |
12.7 KiB |
✅ |
| Codex |
short turn resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Codex |
long turn running, cold open |
HTTP decoded |
281.7 KiB |
281.7 KiB |
0 B (0.0%) |
302.7 KiB |
✅ |
| Codex |
long turn running, cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Codex |
long turn running, history page |
HTTP decoded |
92.4 KiB |
92.4 KiB |
0 B (0.0%) |
107.4 KiB |
✅ |
| Codex |
long turn running, history page |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Codex |
long turn finished, cold open |
HTTP decoded |
381.5 KiB |
381.5 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Codex |
long turn finished, cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Codex |
long turn finished, socket cold open |
WebSocket decoded |
381.6 KiB |
381.6 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Codex |
long turn finished, socket cold open |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Codex |
long turn finished, socket cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Codex |
long turn finished, work page |
HTTP decoded |
186.2 KiB |
186.2 KiB |
0 B (0.0%) |
200.2 KiB |
✅ |
| Codex |
long turn finished, work page |
rows |
150 |
150 |
0 (0.0%) |
150 |
✅ |
| Codex |
idle thread resume |
WebSocket decoded |
65 B |
65 B |
0 B (0.0%) |
200 B |
✅ |
| Codex |
idle thread resume |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Codex |
fleet shell snapshot |
HTTP decoded |
42.4 KiB |
42.4 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Codex |
fleet shell snapshot |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Codex |
fleet shell subscribe |
WebSocket decoded |
65 B |
65 B |
0 B (0.0%) |
200 B |
✅ |
| Codex |
fleet shell subscribe |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Codex |
fleet shell resume check |
HTTP decoded |
18 B |
18 B |
0 B (0.0%) |
100 B |
✅ |
| Codex |
fleet shell resume check |
rows |
0 |
0 |
0 |
0 |
✅ |
| Codex |
stale shell reload |
HTTP decoded |
42.4 KiB |
42.4 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Codex |
stale shell reload |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Codex |
stale shell resume |
WebSocket decoded |
140 B |
140 B |
0 B (0.0%) |
400 B |
✅ |
| Codex |
stale shell resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Codex |
stale todo list cold open |
HTTP decoded |
72.4 KiB |
72.4 KiB |
0 B (0.0%) |
83.0 KiB |
✅ |
| Codex |
stale todo list cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Codex |
stale todo list cold open |
nodes |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Codex |
stale todo list cold open |
subagents |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Codex |
stale todo list cold open |
plans |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Codex |
stale todo list cold open |
providerTurns |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Codex |
stale todo list cold open |
checkpoints |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Claude |
short turn resume |
WebSocket decoded |
10.6 KiB |
10.6 KiB |
0 B (0.0%) |
12.7 KiB |
✅ |
| Claude |
short turn resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Claude |
long turn running, cold open |
HTTP decoded |
283.3 KiB |
283.3 KiB |
0 B (0.0%) |
302.7 KiB |
✅ |
| Claude |
long turn running, cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Claude |
long turn running, history page |
HTTP decoded |
93.4 KiB |
93.4 KiB |
0 B (0.0%) |
107.4 KiB |
✅ |
| Claude |
long turn running, history page |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Claude |
long turn finished, cold open |
HTTP decoded |
384.2 KiB |
384.2 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Claude |
long turn finished, cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Claude |
long turn finished, socket cold open |
WebSocket decoded |
384.3 KiB |
384.3 KiB |
0 B (0.0%) |
410.2 KiB |
✅ |
| Claude |
long turn finished, socket cold open |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Claude |
long turn finished, socket cold open |
rows |
151 |
151 |
0 (0.0%) |
151 |
✅ |
| Claude |
long turn finished, work page |
HTTP decoded |
188.1 KiB |
188.1 KiB |
0 B (0.0%) |
200.2 KiB |
✅ |
| Claude |
long turn finished, work page |
rows |
150 |
150 |
0 (0.0%) |
150 |
✅ |
| Claude |
idle thread resume |
WebSocket decoded |
66 B |
66 B |
0 B (0.0%) |
200 B |
✅ |
| Claude |
idle thread resume |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Claude |
fleet shell snapshot |
HTTP decoded |
43.0 KiB |
43.0 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Claude |
fleet shell snapshot |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Claude |
fleet shell subscribe |
WebSocket decoded |
66 B |
66 B |
0 B (0.0%) |
200 B |
✅ |
| Claude |
fleet shell subscribe |
WebSocket messages |
1 |
1 |
0 (0.0%) |
1 |
✅ |
| Claude |
fleet shell resume check |
HTTP decoded |
18 B |
18 B |
0 B (0.0%) |
100 B |
✅ |
| Claude |
fleet shell resume check |
rows |
0 |
0 |
0 |
0 |
✅ |
| Claude |
stale shell reload |
HTTP decoded |
43.0 KiB |
43.0 KiB |
0 B (0.0%) |
53.7 KiB |
✅ |
| Claude |
stale shell reload |
rows |
27 |
27 |
0 (0.0%) |
27 |
✅ |
| Claude |
stale shell resume |
WebSocket decoded |
140 B |
140 B |
0 B (0.0%) |
400 B |
✅ |
| Claude |
stale shell resume |
WebSocket messages |
2 |
2 |
0 (0.0%) |
2 |
✅ |
| Claude |
stale todo list cold open |
HTTP decoded |
73.4 KiB |
73.4 KiB |
0 B (0.0%) |
83.0 KiB |
✅ |
| Claude |
stale todo list cold open |
rows |
75 |
75 |
0 (0.0%) |
75 |
✅ |
| Claude |
stale todo list cold open |
nodes |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Claude |
stale todo list cold open |
subagents |
2 |
2 |
0 (0.0%) |
4 |
✅ |
| Claude |
stale todo list cold open |
plans |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Claude |
stale todo list cold open |
providerTurns |
1 |
1 |
0 (0.0%) |
2 |
✅ |
| Claude |
stale todo list cold open |
checkpoints |
1 |
1 |
0 (0.0%) |
2 |
✅ |
Baseline: cee16bd · PR result: a39a4e6 · Source CI: success
Scenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
maria-rcks
commented
Oct 28, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
verified the live pi and opencode paths on exact head e44aa96ece6d53fb950350dc70398706ca6be497, without source changes.
linux boat vm, repo playwright 1.60.0 and /usr/bin/google-chrome. installed dependencies with vp i; ran main and pr dev servers sequentially in the background with isolated data. created the project and threads through the web app against a real git repository. all live turns used gpt-6.1-sol through the local proxy, with real pi 1.4.0, opencode 1.19.5, and codex 0.164.0. no mocks, replay provider, fixtures, or demo data for the live checks.
- reproduced on
github/main (48a292364ab37574c67fb377b5227e5d281d9203): in supervised pi, request printf approval-verification, then click decline. after acknowledgement, the saved decision was missing and the node/card were completed.
- repeated the same prompt and decline on the pr: decision remained
decline; node/card remained cancelled. the agent acknowledged the decline without running the command.
- approved the next pi command: decision remained
accept, node/card completed, and the client displayed approval-verification.
- answered a real opencode question with
Keep tests focused: the provider received it, and both the saved request and question card retained the answer. an opencode command decline also retained decline with cancelled node/card.
- reloaded the clients and checked the saved projections read-only. answers and decisions survived. a separate codex turn completed and displayed
codex-neighbor-verification.
runtime transcript with exact queries and results
blacksmith: 171 tests passed across the pi/muse adapter suites and pi/muse/opencode replay suites. these recorded replay checks are separate from the live proof above. the pr reports 31 successful checks, zero pending/failing.
main, after the declined command:

pr, matching prompt and decline. the transcript establishes the persisted-state difference:



Not verified
live muse, including its staged requirements: the muse binary is unavailable. pi extension question dialogs, session-wide approval reuse, opencode child approvals, adverse acknowledgement ordering/delivery failures, desktop, native ios/android, macos/windows, and remote/tunnel modes were not exercised live. replay coverage does not establish those live paths.
the initial pi openai-responses configuration returned an incomplete empty response before approval. configuring its existing proxy endpoint as openai-completions enabled the real main and pr turns. no application fix was needed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
independent verification on exact head e44aa96ece6d53fb950350dc70398706ca6be497. no source changes, commits, or pushes were needed.
ran vp i in a separate github/main worktree (0160c448f61bf24244411781ccc47829a1a51a17) and the pr checkout. ran their dev servers sequentially with fresh isolated state. used repo playwright 1.60.0 and /usr/bin/google-chrome; created the project and threads through the web app against a real git repo. real pi 1.4.0, opencode 1.19.5, and codex 0.164.0 turns used gpt-6.1-sol through the local proxy. no mocks, fixtures, replay provider, or demo data in these live checks.
- main: declined
printf approval-verification in supervised pi. the provider acknowledged the decline, but the persisted decision was empty and the node/card were completed.
- pr: repeated the same prompt and decline. the saved decision remained
decline, with cancelled node/card after acknowledgement.
- approved the next pi command: output appeared,
accept remained saved, and node/card completed.
- answered a real opencode question with
Keep tests focused. the provider repeated the answer; both the saved request and question card retained it after reload.
- declined an opencode command:
decline and cancelled node/card remained saved after reload. the turn ended without retry or a final assistant message.
- a separate codex command turn displayed
codex-neighbor-verification, also retained after reload.
command transcript and read-only projection results
blacksmith: all 171 focused tests passed across five pi/muse adapter and pi/muse/opencode replay files. these checks supplement the live proof. the pr reports 31 successful checks, zero failing or pending.
main after decline:

pr after the same prompt and decline. the transcript establishes the persisted-state difference:

short recording of the decline interaction, cut to the final acknowledgement with the intervening provider wait removed:


Not verified
live muse, including staged requirements: its binary is unavailable. pi extension text questions and session-wide approval reuse, opencode child approvals, adverse acknowledgement ordering/delivery failures, desktop, native ios/android, macos/windows, and remote/relay/tunnel modes were not exercised live. deterministic replay coverage does not establish those live paths.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The Muse and Pi replay tests asserted the same preserved answers that
the adapter unit tests and the extended muse_permission fixture already
catch on main.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The automated pipeline stopped on this pull request and will not merge it:
the fix is written and reviewed, but proving it needs something no worker has:
- Permanent blocker: Muse is unavailable on every VM. Verifying question replacement, declined approval settlement, and separate requests for later requirements needs the real Muse provider.
- Pi approval persistence and visible cancellation after acknowledgement, cleanup, and reload were not exercised; execution stopped under the permanent-blocker instruction.
- OpenCode 1.x response persistence and waiting/running status were not exercised; execution stopped under the permanent-blocker instruction.
It stays open for a person to finish or close.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:L
100-499 changed lines (additions + deletions).
takeover:blocked
Takeover blocked; reason in the PR body
vouch:trusted
Author is trusted by repo permissions or the VOUCHED list.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|