t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: After upgrade 0.0.20 → 0.0.21 failed to launch app

Open codelonesomest opened this issue 7 months ago • 12 comments

Before submitting

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

Area

apps/desktop

Steps to reproduce

  1. Have version 0.0.20 of the app installed and working.
  2. Upgrade to version 0.0.21.
  3. Attempt to launch the app.
  4. Observe that the app does not launch and no error popup appears.
  5. Downgrade back to 0.0.20 – the app launches successfully again.

Expected behavior

After upgrading to 0.0.21, the app should launch normally without crashing or failing to start.

Actual behavior

After upgrading to 0.0.21, the app fails to launch. There is no error message, popup, or log dialog shown – the process simply does not start or exits silently.

Impact

Blocks work completely

Version or commit

0.0.21

Environment

macOS 26.4, 0.0.21, 1.3.13

Logs or stack traces

No error logs or stack traces are produced – the app fails silently on launch.

Screenshots, recordings, or supporting files

No response

Workaround

Downgrade to version 0.0.20, which launches and runs without issues.

codelonesomest avatar Apr 24 '26 03:04 codelonesomest

I just installed the update on windows by clicking Update and Restart inside of the app. Worked perfectly fine. The update got installed and the app reopened after the update was done. Might just be a mac issue. I think I had the problem there a well.

TimSchulzRC avatar Apr 24 '26 06:04 TimSchulzRC

Same issue here, I can see it launched in the Dock, but no UI is is displaying. I also had this issue when switching from Stable to Nightly from 0.0.20 to 0.0.21. I am trying to debug to find insightful logs

nleborgne avatar Apr 24 '26 06:04 nleborgne

Also happened to me on Mac. Tried rolling back and also does not launch the UI. Not sure if it could be a codex cli update that blocks it somehow. Haven't searched for logs yet

rookmate avatar Apr 24 '26 08:04 rookmate

Same bug here — macOS 15.7.4 arm64. v0.0.21 launches but never shows a window. Dock icon appears, process is running, renderer processes are there, but no window. Fresh state didn't help. --disable-gpu and --no-sandbox didn't either. v0.0.20 works fine.

MaxAnderson95 avatar Apr 24 '26 16:04 MaxAnderson95

Check ~/.t3/userdata/logs/server-child.log for errors

juliusmarminge avatar Apr 24 '26 22:04 juliusmarminge

This is what my clanker 🤖 running DeepSeek V4 Pro thinks:

Downloaded and tested nightly builds to narrow the regression:

  • 20260420.75 (66c326b8) — window appears, works fine
  • 20260420.77 (f6978db6) — no window, broken

The five commits between those two are 3b98fe35, 306ec4bb, 6d1505c9, de05b0c9, and f6978db6. The last three are web-only / turbo.json so the break is almost certainly in one of the first two.

The server child process starts, runs through migrations, but never reaches the HTTP listener. Clean logs from a fresh v0.0.21 launch on macOS 15.7.4 arm64:

server-child.log:

[23:26:25.583] INFO: Running all migrations... [23:26:25.584] INFO: Migrations ran successfully

...nothing after this... desktop-main.log (60 seconds later): [23:27:25.323] bootstrap backend readiness warning message=Timed out waiting for backend readiness at http://127.0.0.1:3774.

The desktop main.cjs and preload.cjs are byte-identical between the good and bad nightlies — the stall is server-side. The server process sits alive but never produces a "Listening on" line and its HTTP endpoint never becomes reachable.

MaxAnderson95 avatar Apr 24 '26 23:04 MaxAnderson95

Check ~/.t3/userdata/logs/server-child.log for errors

---- APP SESSION START run=x pid=x port=x cwd=/Users/x ----
(node:x) ExperimentalWarning: SQLite is an experimental feature and might change at any time
(Use `T3 Code (Alpha) --trace-warnings ...` to show where the warning was created)
INFO (#34): Running all migrations...
INFO (#34): Migrations ran successfully
  migrations: []

nggurbanov avatar Apr 25 '26 03:04 nggurbanov

Check ~/.t3/userdata/logs/server-child.log for errors

---- APP SESSION START run=x pid=x port=x cwd=/Users/x ----
(node:x) ExperimentalWarning: SQLite is an experimental feature and might change at any time
(Use `T3 Code (Alpha) --trace-warnings ...` to show where the warning was created)
INFO (#34): Running all migrations...
INFO (#34): Migrations ran successfully
  migrations: []

I'm having the same logs on my end, nothing relevant of the error

nleborgne avatar Apr 25 '26 08:04 nleborgne

@juliusmarminge

[2026-04-24T15:18:22.629Z] ---- APP SESSION START run=267bc2b256b9 pid=2230 port=3773 cwd=/Users/rookmate ----
(node:2230) ExperimentalWarning: SQLite is an experimental feature and might change at any time
(Use `T3 Code (Alpha) --trace-warnings ...` to show where the warning was created)
[17:18:23.248] INFO (#24): Running all migrations...
[17:18:23.250] INFO (#24): Migrations ran successfully
  migrations: []
[17:18:23.259] WARN (#92): failed to parse provider status cache, ignoring
  {
    path: '/Users/rookmate/.t3/caches/claudeAgent.json',
    issues: 'SchemaError: Missing key\n' +
      '  at ["models"][0]["capabilities"]["reasoningEffortLevels"]'
  }
[17:18:23.260] WARN (#91): failed to parse provider status cache, ignoring
  {
    path: '/Users/rookmate/.t3/caches/codex.json',
    issues: 'SchemaError: Missing key\n' +
      '  at ["models"][0]["capabilities"]["reasoningEffortLevels"]'
  }
[17:18:24.259] ERROR (#24): PersistenceDecodeError: Decode error in ProjectionSnapshotQuery.getSnapshot:listThreads:decodeRows: Expected object, got [{"id":"reasoningEffort","value":"high"}]
  at [44]["modelSelection"]["options"]
    at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:9642:20
    at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:29084:91
    at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/internal/effect.js:1309:96
    at ~effect/Utils/internal (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/Utils.js:69:12) {
  [cause]: SchemaError: Expected object, got [{"id":"reasoningEffort","value":"high"}]
    at [44]["modelSelection"]["options"]
}
[2026-04-24T15:18:24.274Z] ---- APP SESSION END run=267bc2b256b9 pid=2230 code=1 signal=null ----

rookmate avatar Apr 25 '26 08:04 rookmate

@juliusmarminge

[2026-04-24T15:18:22.629Z] ---- APP SESSION START run=267bc2b256b9 pid=2230 port=3773 cwd=/Users/rookmate ----
(node:2230) ExperimentalWarning: SQLite is an experimental feature and might change at any time
(Use `T3 Code (Alpha) --trace-warnings ...` to show where the warning was created)
[17:18:23.248] INFO (#24): Running all migrations...
[17:18:23.250] INFO (#24): Migrations ran successfully
  migrations: []
[17:18:23.259] WARN (#92): failed to parse provider status cache, ignoring
  {
    path: '/Users/rookmate/.t3/caches/claudeAgent.json',
    issues: 'SchemaError: Missing key\n' +
      '  at ["models"][0]["capabilities"]["reasoningEffortLevels"]'
  }
[17:18:23.260] WARN (#91): failed to parse provider status cache, ignoring
  {
    path: '/Users/rookmate/.t3/caches/codex.json',
    issues: 'SchemaError: Missing key\n' +
      '  at ["models"][0]["capabilities"]["reasoningEffortLevels"]'
  }
[17:18:24.259] ERROR (#24): PersistenceDecodeError: Decode error in ProjectionSnapshotQuery.getSnapshot:listThreads:decodeRows: Expected object, got [{"id":"reasoningEffort","value":"high"}]
  at [44]["modelSelection"]["options"]
    at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:9642:20
    at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/apps/server/dist/bin.mjs:29084:91
    at file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/internal/effect.js:1309:96
    at ~effect/Utils/internal (file:///Applications/T3%20Code%20(Alpha).app/Contents/Resources/app.asar/node_modules/effect/dist/Utils.js:69:12) {
  [cause]: SchemaError: Expected object, got [{"id":"reasoningEffort","value":"high"}]
    at [44]["modelSelection"]["options"]
}
[2026-04-24T15:18:24.274Z] ---- APP SESSION END run=267bc2b256b9 pid=2230 code=1 signal=null ----

Interesting that no migration ran and you still have old data in there. If you check the migrations table in the SQLite file, what migrations have run?

juliusmarminge avatar Apr 25 '26 13:04 juliusmarminge

@juliusmarminge i am encountering the same issue with 0.22 nightly, I was able to retrieve these logs from desktop-main.log

[2026-04-28T08:25:27.299Z] [desktop run=aeb443754318] runtime log capture enabled logDir=/Users/nleborgne/.t3/userdata/logs
[2026-04-28T08:25:28.229Z] [desktop run=aeb443754318] app ready
[2026-04-28T08:25:28.538Z] [stdout run=aeb443754318] [desktop-updater] Using update channel 'nightly' (allowPrerelease=true, allowDowngrade=true).
[2026-04-28T08:25:28.542Z] [stdout run=aeb443754318] [desktop-updater] Apple Silicon host detected while running Intel build; updates will switch to arm64 packages.
[2026-04-28T08:25:28.551Z] [desktop run=aeb443754318] bootstrap start
[2026-04-28T08:25:29.408Z] [desktop run=aeb443754318] selected backend port via sequential scan startPort=3773 port=3788
[2026-04-28T08:25:29.439Z] [desktop run=aeb443754318] bootstrap resolved backend endpoint baseUrl=http://127.0.0.1:3788
[2026-04-28T08:25:29.444Z] [desktop run=aeb443754318] bootstrap ipc handlers registered
[2026-04-28T08:25:29.629Z] [desktop run=aeb443754318] bootstrap backend start requested
[2026-04-28T08:25:43.550Z] [stdout run=aeb443754318] [desktop-updater] Checking for updates (startup)...
[2026-04-28T08:25:43.557Z] [stdout run=aeb443754318] Checking for update
[2026-04-28T08:25:43.557Z] [stdout run=aeb443754318] [desktop-updater] Looking for updates...
[2026-04-28T08:25:43.662Z] [stdout run=aeb443754318] Generated new staging user ID: 50247bab-3af9-503c-b7e8-8d08987aeb24
[2026-04-28T08:25:43.708Z] [stderr run=aeb443754318] (node:37549) [DEP0169] DeprecationWarning: `url.parse()` behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for `url.parse()` vulnerabilities.
(Use `T3 Code (Nightly) --trace-deprecation ...` to show where the warning was created)
[2026-04-28T08:25:45.938Z] [stdout run=aeb443754318] Update for version 0.0.22-nightly.20260427.140 is not available (latest version: 0.0.22-nightly.20260427.140, downgrade is allowed).
[2026-04-28T08:25:45.962Z] [stdout run=aeb443754318] [desktop-updater] No updates available.
[2026-04-28T08:26:30.000Z] [desktop run=aeb443754318] bootstrap backend readiness warning message=Timed out waiting for backend readiness at http://127.0.0.1:3788.
[2026-04-28T08:26:30.119Z] [stderr run=aeb443754318] [desktop] backend readiness check timed out during packaged bootstrap Error: Timed out waiting for backend readiness at http://127.0.0.1:3788.
    at waitForHttpReady (/Applications/T3 Code (Nightly).app/Contents/Resources/app.asar/apps/desktop/dist-electron/main.cjs:4029:37)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async waitForBackendHttpReady (/Applications/T3 Code (Nightly).app/Contents/Resources/app.asar/apps/desktop/dist-electron/main.cjs:4971:3)
[2026-04-28T08:26:59.742Z] [stdout run=aeb443754318] [desktop-updater] Checking for updates (menu)...
[2026-04-28T08:26:59.746Z] [stdout run=aeb443754318] Checking for update
[2026-04-28T08:26:59.749Z] [stdout run=aeb443754318] [desktop-updater] Looking for updates...
[2026-04-28T08:27:01.259Z] [stdout run=aeb443754318] Update for version 0.0.22-nightly.20260427.140 is not available (latest version: 0.0.22-nightly.20260427.140, downgrade is allowed).
[2026-04-28T08:27:01.265Z] [stdout run=aeb443754318] [desktop-updater] No updates available.
[2026-04-28T08:27:56.256Z] [desktop run=aeb443754318] bootstrap backend readiness warning message=Timed out waiting for backend readiness at http://127.0.0.1:3788.
[2026-04-28T08:27:56.279Z] [stderr run=aeb443754318] [desktop] backend readiness check timed out during packaged bootstrap Error: Timed out waiting for backend readiness at http://127.0.0.1:3788.
    at waitForHttpReady (/Applications/T3 Code (Nightly).app/Contents/Resources/app.asar/apps/desktop/dist-electron/main.cjs:4029:37)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async waitForBackendHttpReady (/Applications/T3 Code (Nightly).app/Contents/Resources/app.asar/apps/desktop/dist-electron/main.cjs:4971:3)

nleborgne avatar Apr 28 '26 08:04 nleborgne

Current model options use the array shape expected by the decoder, and migration 026 handles the object-to-array settings incompatibility shown in these upgrade logs. The reported 0.0.20-to-0.0.21 launch failure path is covered.

This was closed as part of a large repo-wide maintenance sweep. If you think it's still relevant, please reopen.

juliusmarminge avatar Jun 20 '26 01:06 juliusmarminge