GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(mobile): opening a new thread before it is created no longer marks it unavailable by whoisaldo · Pull Request #25632 · pingdotgg/t3code Conversation
Contributor
ProblemOn mobile, if you tap a new thread's row in the thread list while its first message is still queued (the sidebar in split view, or the Home list), the thread stays on "Starting…" and never shows the run. Reopening it within 5 minutes shows "Thread unavailable: This thread was deleted or is no longer available." The server created the thread and ran it, and other clients show it normally. Fixes #25586. #24344 reports the same symptom; #25477 fixed it for ChangeTapping a thread row calls The preload now applies This is mobile only. Web and desktop have no outbox: the first send waits for the server, and detail reads wait until the thread is listed ( Scope and approvalThis is a small, focused fix for an obvious bug: one 11-line guard in one function, plus a test. It applies an existing rule from VerificationFocused test.
Live, in iOS simulators.
Without tapping the row, Edge cases on this branch:
All four GIFs play at 1.5× speed. The after clips cut out the automated scroll that finds the row before reopening it. Not checked:
Model: Claude Opus 5.5 via Claude Code, in T3 Code; reviewed by GPT-6.1-Sol (Codex) and Claude Opus 5.5.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…s it unavailable Tapping a thread whose creation was still queued in the outbox preloaded its detail by id. The server answered not found, and that was cached as a deleted thread. The preload now uses the same creation check as the thread screen and waits until the creation is delivered.
2 tasks done
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
|
There was an error while loading. Please reload this page.
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Check creation readiness before mounting thread state apps/mobile/src/state/threads.ts, apps/mobile/src/state/threads.test.ts |
startOpeningEnvironmentThread skips mounting when the selected creation detail reference is null. Tests cover queued creation becoming delivered, failed creation, and threads without creation data. |
Priority:
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related PRs
startOpeningEnvironmentThread.startOpeningEnvironmentThread, which this PR updates to skip mounting when creation details are unavailable.Suggested labels: bugfix, size:S
Suggested reviewers: t3dotgg, macroscopeapp
08afaQueued threads can open after creation without a premature unavailable state. No actionable merge-blocking risk remains after normal checks.
| Check name | Status | Explanation |
|---|---|---|
| Title check | The title uses a clear conventional-commit format and accurately describes the primary mobile fix: preventing a newly queued thread from being marked unavailable during opening. | |
| Description check | The description fully covers the required Problem, Change, Scope and approval, and Verification sections. It includes reproduction context, linked issues, implementation details, focused and broader t… | |
| Linked Issues check | Directly linked issue #25586 requires that opening a thread-list row while its creation is queued lets the thread open after the server creates it. At head, startOpeningEnvironmentThread in apps/mobil… |
|
| Out of Scope Changes check | The whole-PR diff against merge base 210b2e7 touches two files. apps/mobile/src/state/threads.ts gains an 11-line guard with imports for scopedThreadKey, selectThreadCreationDetail, pendingThreadCr… |
Explanation
The description fully covers the required Problem, Change, Scope and approval, and Verification sections. It includes reproduction context, linked issues, implementation details, focused and broader test results, simulator evidence, limitations, and agent attribution.
Explanation
Directly linked issue #25586 requires that opening a thread-list row while its creation is queued lets the thread open after the server creates it. At head, startOpeningEnvironmentThread in apps/mobile/src/state/threads.ts calls selectThreadCreationDetail before mounting environmentThreads.stateAtom. When the detailRef is null (creation queued or failed), the function returns without mounting. This stops the early snapshot request that the server answers with 404 and that client-runtime caches as deleted. Threads with no queued creation, or with a delivered creation, still mount and preload as before. The new apps/mobile/src/state/threads.test.ts covers three cases: queued creation does not load until delivered, failed creation does not load, and threads without a pending creation load. The tests use the real outbox and outcome atoms. The author reports 2 of 3 failing on main and 3 of 3 passing with this change, and reports simulator runs with no 404s. Residual uncertainty: I did not re-inspect useThreadSelection in this review. The post-delivery load relies on that existing guarded reader, as the issue and PR description state. The author's simulator evidence supports this, but this review did not verify it in code. Android, physical devices, and cold-start restoration are not covered, and the PR description states this. Related #24344 is covered only by the same root cause and is not a separate requirement here.
Explanation
The whole-PR diff against merge base 210b2e7 touches two files. apps/mobile/src/state/threads.ts gains an 11-line guard with imports for scopedThreadKey, selectThreadCreationDetail, pendingThreadCreationOutcomesAtom, and threadOutboxManager. apps/mobile/src/state/threads.test.ts is a new test file for the same function. The guard reuses the existing selectThreadCreationDetail rule and its comment, which the issue references. The test exercises that guard directly. No unrelated code, configuration, or dependency change appears in the reviewed diff. The PR description's screenshots and GIFs are evidence material and do not change code. No change in the reviewed diff lacks a connection to #25586.
Comment @coderabbitai help to get the list of available commands.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
These are real bugs I experienced live from my device. Then I deep dived alongside agents for this fix. Using the new iPhone DUO as well. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
## What's Changed * fix(web): clicking the device screen no longer draws a focus ring by @t3dotgg in pingdotgg/t3code#25882 * fix(mobile): picking a project on two machines starts on the connected one by @t3dotgg in pingdotgg/t3code#25839 * fix(mobile): opening a new thread before it is created no longer marks it unavailable by @whoisaldo in pingdotgg/t3code#25632 * fix(desktop): packaged server ships zod for @cursor/sdk 1.0.38 by @jason5545 in pingdotgg/t3code#25841 ## New Contributors * @jason5545 made their first contribution in pingdotgg/t3code#25841 **Full Changelog**: pingdotgg/t3code@v0.1.4-nightly.20261027.3766...v0.1.4-nightly.20261027.3770 Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.4-nightly.20261027.3770
…s it unavailable (pingdotgg#25632) Co-authored-by: Theo Browne <[email protected]> (cherry picked from commit a452c2d) Upstream-PR: 25632 Early-Import: fixes the mobile regression the batch's thread opening preload adds, where tapping a new thread before its creation is delivered marks it unavailable
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
[Bug]: Mobile: opening a new thread from the list while its creation is queued makes it "Thread unavailable"
There was an error while loading. Please reload this page.