Repository navigation
fix(server): skip incomplete Pi records during project discovery - #42636
Conversation
Co-authored-by: GPT 6.2 Sol <codex@openai.com>
Co-authored-by: GPT 6.2 Sol <codex@openai.com>
Co-authored-by: GPT 6.2 Sol <codex@openai.com>
Co-authored-by: GPT 6.2 Sol <codex@openai.com>
Co-authored-by: GPT 6.2 Sol <codex@openai.com>
Co-authored-by: GPT 6.2 Sol <codex@openai.com>
Co-authored-by: GPT 6.2 Sol <codex@openai.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
EvidenceEnabled Pi with two synthetic sessions: (A) an incomplete leading header followed by the complete intended header; (B) a non-header cwd followed by the intended session header with timestamp null. Opened Welcome → Import projects and their threads → Review all → Other folders. Same fresh state, Chromium, 1280×800, light theme on both commits. Proven: the scenario fails on base and passes on head. Base offers only the two incorrect workspaces; head offers both intended workspaces, each with one thread.
Scenario and synthetic fixture driver Not shown:
|
**v0.1.12-nightly.20261125.5230** · 41 changes from 11 contributors - **Richer workflow questions.** Workflow questions can include described choices, required reasons, links, and records of who answered and when. - **Thread actions in command palette.** Pin, snooze, settle, archive, and manage the current thread from the command palette. - **Withdraw workflow questions.** Workflows can withdraw waiting questions without cancelling the run. - **Antigravity swarm workers.** See Antigravity swarm workers as subagents, including who is working and what they found. - **Faster thread switching.** Thread timelines now appear in the first frame instead of after a noticeable delay. - **Browser select menus.** Native dropdown menus now open in streamed browser tabs so you can choose an option. - **Permanent thread deletion.** Deleting a thread now removes its conversation history instead of only hiding it. ### Plus 32 more bug fixes. <details> <summary>Full changelog</summary> ## What's Changed * fix(cli): exclude spans before the trace summary window by @jadelike-wine in pingdotgg/t3code#42571 * fix(grok): expose context usage by @gujunxiang in pingdotgg/t3code#42568 * fix(web): timeline minimap previews no longer cut an emoji in half by @only21mil in pingdotgg/t3code#42575 * fix(web): Option and Cmd arrows reach full-screen terminal apps by @Mnigos in pingdotgg/t3code#42574 * fix(web): element context preview no longer ends in a split surrogate by @only21mil in pingdotgg/t3code#42585 * fix(server): Antigravity sends undecodable text attachments as a path instead of failing the turn by @juliusmarminge in pingdotgg/t3code#42594 * fix(resource-monitor): Windows stops reading memory and command lines of untracked processes by @juliusmarminge in pingdotgg/t3code#42577 * fix(server): ODT attachments no longer start with text from number styles by @only21mil in pingdotgg/t3code#42592 * feat(server): workflow questions take described choices, required reasons, links, and keep who answered by @juliusmarminge in pingdotgg/t3code#42515 * fix(web): citation comment box stays open when its cited row scrolls out by @juliusmarminge in pingdotgg/t3code#42603 * fix(web,mobile): author avatars keep emoji initials whole by @only21mil in pingdotgg/t3code#42598 * fix(gitlab): incident links are read as issue links by @Michel-Liao in pingdotgg/t3code#42605 * fix(server): workflow schedules given as bigint nanoseconds no longer crash by @only21mil in pingdotgg/t3code#42607 * fix(pi): reject generated text from failed responses by @StiensWout in pingdotgg/t3code#42602 * fix(preview): streamed browser tabs show native select menus by @juliusmarminge in pingdotgg/t3code#31561 * fix(web): long Workflows links no longer end in a broken character by @only21mil in pingdotgg/t3code#42617 * fix(server): filter open device sessions by the selected host by @AppsAtMe in pingdotgg/t3code#42600 * fix(antigravity): link directly to Google account verification on failed turns by @t3dotgg in pingdotgg/t3code#41210 * fix(server): Needs you lists paused runs older than the newest 500 by @KyrosHendrix in pingdotgg/t3code#42618 * feat(server): CI runners don't need telemetry by @t3dotgg in pingdotgg/t3code#42630 * fix: screenshots after a caption render full size instead of as chips by @juliusmarminge in pingdotgg/t3code#42627 * fix(pi): rewind turns after an extension switches sessions by @StiensWout in pingdotgg/t3code#42616 * fix(mobile): Compose without a project opens the picker in one push by @juliusmarminge in pingdotgg/t3code#42593 * fix(web): project name field restores the saved name when cleared by @only21mil in pingdotgg/t3code#42622 * fix(mobile): a share sent while a new-task draft is open joins that draft by @juliusmarminge in pingdotgg/t3code#42597 * fix(telemetry): honor DO_NOT_TRACK by @t3dotgg in pingdotgg/t3code#42629 * fix(server): device host errors no longer cut an emoji in half by @only21mil in pingdotgg/t3code#42628 * fix(pi): let background subagents finish after coordinator errors by @StiensWout in pingdotgg/t3code#42624 * fix(server): deleting a thread actually removes its history by @t3dotgg in pingdotgg/t3code#42119 * fix(server): unreadable sessions no longer block older history by @StiensWout in pingdotgg/t3code#42613 * fix(server): skip incomplete Pi records during project discovery by @StiensWout in pingdotgg/t3code#42636 * fix(server): restore the default provider name when clearing a label by @StiensWout in pingdotgg/t3code#42632 * test(provider-testing): replay workspaces start no background git maintenance by @juliusmarminge in pingdotgg/t3code#42651 * fix(antigravity): /swarm workers show as subagents by @t3dotgg in pingdotgg/t3code#42649 * feat(web): settle, pin, snooze and more for the current thread from cmd+k by @t3dotgg in pingdotgg/t3code#40742 * feat(server): withdraw a waiting workflow question without cancelling its run by @juliusmarminge in pingdotgg/t3code#42506 * fix(web): fade project picker tooltips in place on scroll by @Yash-Singh1 in pingdotgg/t3code#42657 * fix(server): shells with a backslash in their name no longer get zsh flags on Linux and macOS by @only21mil in pingdotgg/t3code#42648 * perf(web): thread switches paint the timeline in their first frame by @juliusmarminge in pingdotgg/t3code#42582 * fix(server): t3_background_wait error says Workflow runs already keep the thread working by @juliusmarminge in pingdotgg/t3code#42661 * fix(server): preserve spaces and tabs in checkpoint LFS storage by @jadelike-wine in pingdotgg/t3code#42634 ## New Contributors * @gujunxiang made their first contribution in pingdotgg/t3code#42568 * @AppsAtMe made their first contribution in pingdotgg/t3code#42600 **Full Changelog**: pingdotgg/t3code@v0.1.12-nightly.20261125.5222...v0.1.12-nightly.20261125.5230 </details> Upstream release: https://github.com/pingdotgg/t3code/releases/tag/v0.1.12-nightly.20261125.5230


A damaged leading record can put a Pi session under the wrong workspace, and an invalid header timestamp can make Recent Threads skip a session that discovery lists. Discovery and import now read the workspace from the same complete Pi session header before validating the rest of the record.
Related: #23727, #42613, #23214, #34542, #25923
Reproduction on main
Commit 03fa7cfc10 (main). The picker counts the session under the other workspace and leaves it out of the correct workspace. Expected: The picker attributes the Pi session to the workspace in its valid header.
The cause is at
apps/server/src/project/AgentSessionScanner.ts:1290. Rancd apps/server && pnpm exec vp test run src/project/AgentSessionScanner.test.tswith the repro test added: it failed in 2 of 2 runs on a clean checkout, withexpected [ 'other-workspace' ] to deeply equal [ 'session-workspace' ]in the output.Evidence
Environment: Linux x64, the repository's own tests.
Proven: the repro fails at the test commit fd39a2f638 and passes on the head d646f1eafd, both on main 20a3bed880.
Outside view: not shown in the running app. The app gets there by itself fails: the picker attributes the session to the wrong project only when a Pi session file starts with an incomplete line whose cwd names a different existing workspace than the valid header after it. Using T3 Code does not write that line; the repro places the damaged file by hand, and a crash or normal Pi session leaves a finished header first.
Tests
pnpm exec vp run check:changed 20a3bed88020972cafe0b646daaa93d061e44384passed on head.Not in this change
Who did the work
Made in T3 Code by GPT 6.2 Sol, Claude Opus 5.5, Grok 4.7 and Gemini 4 Neon