Repository navigation
Comparing changes
Open a pull request
base repository: pingdotgg/t3code
base: main
head repository: pingdotgg/t3code
compare: fix/issue-30926
- 16 commits
- 11 files changed
- 2 contributors
Commits on Nov 4, 2026
-
test: reproduce Pi resume confirm deadlock and unsolicited wake (#30926)
These tests reproduce #30926: - the outbox keeps a runtime-request.respond pending behind the same thread's running provider-turn.start, so the answer a Pi session_start(resume) dialog needs can never be delivered. - an agent_start that arrives while Pi's resume switch_session is pending is reported as unsolicited and terminates Pi instead of being held as a wake for the turn that is starting.
Configuration menu - View commit details
-
Copy full SHA for 7e7f8cc - Browse repository at this point
Copy the full SHA 7e7f8ccView commit details -
fix: deliver Pi resume confirms and hold the work they start (#30926)
Restoring a Pi session whose extension confirms during switch_session deadlocked: the outbox kept the runtime-request.respond behind the same thread's running provider-turn.start, which was itself waiting for that answer. Respond effects may now be claimed while a non-respond effect of their thread runs; they stay serialized among themselves and still wait behind earlier pending effects. Once answered, the extension's session_start hook can start native work before Pi answers the switch. That agent_start hit the unsolicited guard and terminated Pi. The Pi adapter now buffers work that starts while a thread is registering and turns it into a pending native wake once the thread binds, so the starting turn adopts it. If registration fails, the buffered work is stopped as unsolicited, as before. Fixes #30926
Configuration menu - View commit details
-
Copy full SHA for 8e3c999 - Browse repository at this point
Copy the full SHA 8e3c999View commit details -
fix: narrow Pi resume answer and wake handling to the resume path (#3…
…0926) A runtime request answer now passes only a running provider-turn.start of its thread, so Stop-then-Accept keeps its order. The effect daemon reserves one extra worker that claims only runtime request answers, so turn starts waiting on dialogs cannot occupy every worker and strand the answer. Pi buffers registration-time agent_start only while restoring a session via switch_session; first registration and new_session keep the unsolicited guard. The registration keeps cleanup ownership until registerThread exits, so held work is stopped if startup fails or is interrupted before the wake is offered.
Configuration menu - View commit details
-
Copy full SHA for ef83567 - Browse repository at this point
Copy the full SHA ef83567View commit details -
Configuration menu - View commit details
-
Copy full SHA for a4a6412 - Browse repository at this point
Copy the full SHA a4a6412View commit details
Commits on Nov 10, 2026
-
Merge remote-tracking branch 'origin/main' into fix/issue-30926
# Conflicts: # packages/provider-pi/src/server/adapter.test.ts # packages/provider-pi/src/server/adapter.ts
Configuration menu - View commit details
-
Copy full SHA for eff4e0c - Browse repository at this point
Copy the full SHA eff4e0cView commit details -
test: stub the runtime request lane in the outbox notification test
AI-assisted; verified with the tests and tools listed above.
Configuration menu - View commit details
-
Copy full SHA for 44083b6 - Browse repository at this point
Copy the full SHA 44083b6View commit details
Commits on Nov 11, 2026
-
Configuration menu - View commit details
-
Copy full SHA for 2146c6f - Browse repository at this point
Copy the full SHA 2146c6fView commit details -
fix(pi): drop buffering of native work started during a resume switch
Recording agent events after Pi has started executing is not admission control: the extension still runs model calls and tools before T3 owns a turn or applies the intended model. Keep the unsolicited-work guard as it is on main and limit this change to delivering the runtime request answer that the running turn start waits on. AI-assisted; verified with the tests and tools listed above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4eb2955 - Browse repository at this point
Copy the full SHA 4eb2955View commit details -
Configuration menu - View commit details
-
Copy full SHA for bee5e83 - Browse repository at this point
Copy the full SHA bee5e83View commit details -
fix(pi): abort work a session switch hook starts before T3 owns the t…
…hread An extension's session_start hook can start native work after its startup confirm is answered, while switch_session is still pending and no thread is bound. The unsolicited-work guard terminated Pi there, and the resume failed with the secondary terminate error. Abort that run instead so the switch completes and T3 applies its model before any owned turn. If the abort fails, the guard still stops Pi, and the switch now reports the unsolicited-work diagnostic instead of the transport error. AI-assisted; verified with the tests and tools listed above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4d7542d - Browse repository at this point
Copy the full SHA 4d7542dView commit details -
fix(pi): hold work a resumed session starts until a T3 turn admits it
Aborting after agent_start came too late: Pi can make the resumed model call before the abort lands, with the restored model, and the abort path raced the switch_session response. Instead, T3's injected Pi extension closes an admission gate when a session resumes and holds every run in before_agent_start, before any model call or agent_start. The adapter opens it with /t3-admit from the next non-continuation turn, after model selection is applied and the turn owns the thread. Work that still stops Pi during registration now reports the unsolicited-work diagnostic instead of the transport failure it causes. AI-assisted; verified with the tests and tools listed above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5d3e88c - Browse repository at this point
Copy the full SHA 5d3e88cView commit details -
test(pi): replay fixtures expect the resume admission command
Resumed Pi sessions now send /t3-admit from the first owned turn, so the recorded resume and rollback transcripts include that command and its handled response before the user prompt. AI-assisted; verified with the tests and tools listed above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5fc7286 - Browse repository at this point
Copy the full SHA 5fc7286View commit details -
fix(pi): a restore waiting on a startup dialog no longer times out
Pi holds switch_session until a session_start hook's dialog is answered, so the 60 s lifecycle deadline ran out while the user read it, and with two resume prompts or several queued restores the answer always arrived after Pi had been stopped. The deadline now counts only time with no T3 dialog open. After a lifecycle failure stops Pi, later lifecycle calls on that runtime report the original failure instead of a closed transport. AI-assisted; verified with the tests and tools listed above. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6718a37 - Browse repository at this point
Copy the full SHA 6718a37View commit details
Commits on Nov 22, 2026
-
Merge remote-tracking branch 'origin/main' into fix/issue-30926
The runtime request lane now passes its claim filter through main's runOnce and nextClaimableAt, which already take claim options, instead of adding parallel lane methods. Main resumes through a get_state probe and skips switch_session when Pi is already on the file, so the Pi resume tests queue another session file to reach a real switch. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c9293c1 - Browse repository at this point
Copy the full SHA c9293c1View commit details -
fix(pi): hold startup work of a session resumed at spawn until a turn…
… admits it Main now restores a Pi thread by spawning Pi with --session, so a restore hook sees session_start with reason "startup" rather than "resume" and the admission gate stayed open. T3 sets T3_PI_RESUMED_STARTUP on those launches; the extension closes its gate for that startup and the adapter admits it from the first owned turn, as it does after switch_session. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 62f0a8c - Browse repository at this point
Copy the full SHA 62f0a8cView commit details -
fix(pi): a session switch answered near its deadline keeps a full window
The lifecycle deadline only checked for an open dialog at each window boundary, so an answer given just before one timed the switch out right after it. Track dialog activity and time out only after a whole window with no dialog open, opened or answered. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2a0af3e - Browse repository at this point
Copy the full SHA 2a0af3eView commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff main...fix/issue-30926