Skip to content

[Bug]: Provider adapter process error (after updating T3 Code 0.0.38) #9208

Description

@scriptease

Before submitting

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

Area

apps/desktop

Steps to reproduce

  1. Start a session via Opencode in T3 Code 0.0.38 (c0995d2)
  2. The first session works
  3. Start a second session
  4. ProviderAdapterProcessError: Provider adapter process error (opencode) for thread d286de2f-c3ff-4b3a-bfa9-3a1234f22d95: OpenCode server exited before startup completed (code: 1).
  5. Continue doesn't work its hard stuck until restart and then works for one session again

Expected behavior

Sessions can be opened like before the update

Actual behavior

Unrecoverable error until restart

Impact

Major degradation or frequent failure

Version or commit

T3 Code 0.0.38 (c0995d2)

Environment

Mac OS 26.5.2 (25F84)

Logs or stack traces

`ProviderAdapterProcessError: Provider adapter process error (opencode) for thread d286de2f-c3ff-4b3a-bfa9-3a1234f22d95: OpenCode server exited before startup completed (code: 1).

stderr:
�[91m�[1mError: �[0mUnexpected error

database is locked
    at toProcessError (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:172088:45)
    at Array.<anonymous> (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:173343:20)
    at next (<anonymous>)
    at startSession (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:103276:35)
    at startSession (definition) (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:173250:24)
    at startSession (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:183163:59)
    at startSession (definition) (Alpha)
    at ensureSessionForThread (Alpha)
    at ensureSessionForThread (definition) (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:183086:33)
    at processTurnStartRequested (Alpha)
    at processTurnStartRequested (definition) (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:183438:36)
    at processDomainEvent (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:183682:46)
    at processDomainEvent (definition) (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:183635:29) {
  [cause]: OpenCodeRuntimeError: 
      at Array.<anonymous> (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:109333:33)
      at next (<anonymous>) {
    [cause]: Error: {"exitCode":1,"stdout":"","stderr":"\u001b[91m\u001b[1mError: \u001b[0mUnexpected error\n\ndatabase is locked\n"}
  }
}`

Screenshots, recordings, or supporting files

No response

Workaround

Restarting fixes it for one session

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken or behaving incorrectly.needs-triageIssue needs maintainer review and initial categorization.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions