Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: Pi ProviderAdapterEventStreamError: Failed while streaming pi provider session provider-session:provider-instance #21208

ClosedYlandolsi(GitHub profile, opens in a new tab) opened this issue 6 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

It happens on 2 scenarios

First Scenario :

  • Having an active Pi chat from t3code and agent completed turn and no pending messages in queue
  • then update t3code
  • try to send a new message in the preivous pi chat
  • error show with ProviderAdapterEventStreamError and need to start a new session

Second Scenario

  • same as above but isntead of updating t3code - let a discussion inactive for a long period then try to send a new message
  • same error apeared

Expected behavior

  • able to continue on the same covnersation with no error

Actual behavior

  • error : ProviderAdapterEventStreamError

Impact

Major degradation or frequent failure

Version or commit

main

Environment

0.1.1-nightly.20261018.3302 desktop app

Logs or stack traces

ProviderAdapterEventStreamError: Failed while streaming pi provider session provider-session:provider-instance:pi:thread:f1773143-747f-4615-8a0d-f0c9fafd7000:c7e21edc-f676-4486-bede-ee467d59a950 events. at file:///C:/Users/USER/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/binCli-CevItE3z.mjs:263998:28 at next (<anonymous>) at orchestrationV2.providerTurnStart.start (file:///C:/Users/USER/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/binCli-CevItE3z.mjs:288413:62) at orchestrationV2.providerTurnStart.start (definition) (file:///C:/Users/USER/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/binCli-CevItE3z.mjs:287758:16) at ServerRuntimeStartup.startEffectWorkerWithRelay (file:///C:/Users/USER/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/binCli-CevItE3z.mjs:299421:79) at ServerRuntimeStartup.startEffectWorkerWithRelay (definition) (file:///C:/Users/USER/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/binCli-CevItE3z.mjs:299342:36) at server.startup.orchestration-v2.effect-worker.start (file:///C:/Users/USER/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/binCli-CevItE3z.mjs:299341:56) at server.startup (file:///C:/Users/USER/AppData/Local/Programs/t3code/resources/server.asar/apps/server/dist/binCli-CevItE3z.mjs:299492:10) { [cause]: Error: Cause([Fail(PiRpcError: Pi RPC read failed: pi process exited with code 1.)]) }

Screenshots, recordings, or supporting files

No response

Workaround

Image
  1. Ylandolsi(GitHub profile, opens in a new tab) added labelsneeds-triage

  2. Note

    Grok responding on behalf of Julius.

    This needs more detail before we can call it a T3 bug. In both scenarios T3 is not reusing a dead process: after an update or once an idle session is released, the next message starts a fresh pi process and asks it to switch back to the thread's saved session file. The error says that new pi process exited with code 1 during that resume, and a new session works, so the failure looks tied to Pi loading that specific session file rather than to T3 failing to restart Pi.

    Could you share:

    1. Your pi --version, and whether Pi was updated around the time this started.
    2. Whether resuming that same session directly with pi in a terminal works or exits with an error, and the full output if it fails.
    3. Any other Pi extensions or custom launch args you have configured.
  3. juliusmarminge added labelsneeds more info

  4. juliusmarminge added labelsvia-triage

  5. juliusmarminge removed labelsneeds-triage

  6. juliusmarminge removed labelsbug

    1. PI version : PS C:\dev\obsidian-vault> pi --version 1.3.0
    2. it diditn work after resuiming the same session with pi
    3. i have pi extensions but it's not related to this issue - this diditn happen to me when was working with pi from TUI , i switched to t3code recently and the error explained above appeared > 3 times after updating t3code each time
  7. here we go : it happened once again

    Image
  8. i came with an interesting note :

    the pi-session id mentioned in that error/warning alert is not the same what pi saved .

    tried to open pi from TUI and /resume and find the right session but id was different than the t3code shows and was able to resume it from there

  9. Note

    🤖 Claude Opus 5.5 responding on behalf of Theo

    Thanks for the report. This fault is outside T3 Code, so we cannot fix it here. Please report it to the project that owns that tool. If you find a fault in T3 Code itself, please open a new issue with steps to reproduce it.

  10. Additional reproduction and environment details from another machine:

    • T3 Code: Desktop Beta 0.1.5 (local server 0.1.5)
    • OS: macOS 24.6.0, arm64
    • Pi: 1.4.0
    • Node: the T3 triage context reports v26.12.1; the interactive shell reports v26.8.1

    This is not limited to resuming an older saved conversation. I created a new thread through T3's CLI with t3 thread start --provider pi --model default --wait and sent a short test prompt. It failed before Pi returned a response with Pi RPC read failed: pi process exited with code 1. The local trace shows the failure during ProviderTurnStartService.loadFromProvider / ProviderAdapterEnsureThreadError for that fresh thread.

    A direct Pi RPC smoke test from the shell succeeded for get_state, get_available_models, and get_commands, so Pi starts and answers those requests outside the T3 thread-launch path. The failure is reproducible through T3's CLI as well as the desktop UI.

    One additional diagnostic limitation: T3 0.1.5's bundled Pi RPC transport drains stderr but logs only its length (stderrLength), not the text, so the underlying Pi exit reason is not visible in the T3 trace. This leaves the root cause unresolved, but the fresh-thread reproduction suggests the failure is broader than only loading an older saved session.

Sign in to join this conversation.