GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): find Claude session directories after large images by StiensWout · Pull Request #42640 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Recent Claude sessions could be missing from import when a large inline image pushed the working directory beyond the first 1 MiB of the transcript. The scanner gives every candidate its initial scan, then resumes deferred Claude transcripts in bounded rounds from where it left off. This preserves older sessions found in the initial scan and gives smaller deferred sessions a chance to finish alongside oversized files.

Related: #40549, #23727, #40192, #21598, #27656, #42613, #25923, #34542, #23214

Reproduction on main

Commit 03fa7cfc10 (main). The session is absent from the imported history. Expected: The session imports with the rest of the workspace’s recent Claude history.

The cause is at apps/server/src/project/AgentSessionScanner.ts:1309. Ran cd apps/server && pnpm exec vp test run src/project/AgentSessionScanner.test.ts with the repro test added: it failed in 2 of 2 runs on a clean checkout, with expected [] to deeply equal [ 'large-image-session' ] in the output.

Evidence

Environment: Linux x64, the repository's own tests.

Proven: the repro fails at the test commit 593e9c4c3b and passes on the head 5474f721f5, both on main c925b9ab19.

Before After
Commit 593e9c4c3b 5474f721f5
Result failed with "expected [] to deeply equal [ 'large-image-session' ]" passed

Outside view: not shown in the running app. It fails “The app gets there by itself.” The session is dropped only when its working directory sits past the first 1 MiB of the session file. The repro builds that by writing the directory after the screenshot. Claude writes the directory before the message, and a first screenshot larger than 1 MiB in that layout is still imported, so sending one never puts the file in the missing state.

Tests

  • 593e9c4c3b adds the failing test, alone, before the fix.
  • pnpm exec vp run check:changed c925b9ab198099f67de862ed01701bd1d8809f2b passed on head.

Not in this change

  • Claude metadata reads still share a fixed per-source budget. A transcript can be skipped if the budget runs out before its working directory is found.
  • The scanner uses the working directory recorded in each transcript because a sibling transcript’s directory does not establish where the session ran.
  • The field-order cases use transcript fixtures. Whether current Claude Code writes the working directory after an inline image remains unverified.

Who did the work

  • Repro written by GPT 6.2 Sol, in Codex
  • Outside view by Grok 4.7, in Grok
  • Duplicate check judged by Claude Opus 5.5, in Claude Code
  • Written by GPT 6.2 Sol, in Codex
  • Trimmed by Claude Opus 5.5, in Claude Code
  • Reviewed by Claude Opus 5.5, in Claude Code, and by GPT 6.2 Sol, in Codex, and by Gemini 4 Neon, in Antigravity
  • Reproduction, checks and proof run by a program on base and head, not by an agent

Made in T3 Code by GPT 6.2 Sol, Claude Opus 5.5, Grok 4.7 and Gemini 4 Neon

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

killlilwinters reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
StiensWout and others added 6 commits November 25, 2026 06:29
@StiensWout @codex
test(server): cover Claude cwd placement around large images
593e9c4
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(server): find Claude session directories after large images
2ecd589
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(server): preserve older Claude sessions during metadata scans
4350a89
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
test(server): use typed provider IDs in Claude scanner fixture
264fdec
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(server): share Claude metadata reads across large transcripts
916633e
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @claude
refactor(server): resume deferred Claude scans in place each round
5474f72
Drops the separate pending index list; each round walks the scan results
and resumes the ones still deferred.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Nov 25, 2026
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The scanner now reads transcript cwd data in resumable slices. It applies metadata budgets, checks transcript identity when resuming, and processes deferred scans in rounds. Tests cover large Claude images and shared metadata-budget cases.

Changes: Claude transcript scanning

Layer / File(s) Summary
Resumable cwd scanning and coverage
apps/server/src/project/AgentSessionScanner.ts, apps/server/src/project/AgentSessionScanner.test.ts
readCwd resumes Claude scans across slices and marks other sources truncated when they reach the byte limit. Cwd grouping resumes deferred scans in rounds and reuses imported cwd only when the non-Codex provider and transcript identity match. Tests cover 1,100 KiB images, cwd placement, and shared metadata budgets.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to f0211

This change lets recent Claude sessions be found when their working directory appears after a large image in the transcript. No actionable merge-blocking risk was identified in the supplied context.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the fix and its trigger: Claude session directories not found after large images. The changeset adds incremental, round-based resumption of deferred Claude transcripts in AgentSessionS…
Description check Passed The description follows the template sections. It states the problem, the change, the reproduction and evidence, and the verification steps. It also lists limits and open items. The Scope section give…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the fix and its trigger: Claude session directories not found after large images. The changeset adds incremental, round-based resumption of deferred Claude transcripts in AgentSessionScanner, which addresses this. The title follows the conventional commit format and fits the change.

Full details: Description check

Explanation

The description follows the template sections. It states the problem, the change, the reproduction and evidence, and the verification steps. It also lists limits and open items. The Scope section gives no linked issue that shows the bug. It lists several related issue numbers, but none is marked as the bug report, and it does not say why a small fix needs no issue. The Problem section describes the symptom and the cause, but it does not give a clear expected-versus-actual summary for end users. The description also contains a long attribution block that the template does not require. These gaps are minor, so the check passes.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: 282a1fa
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1a309091-8fa8-464f-8fa6-ee933dc0acf3
Commits

Reviewing files that changed from the base of the PR and between 5474f72 and f0211e2.

Files selected for processing: 1

  • apps/server/src/project/AgentSessionScanner.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 25, 2026
juliusmarminge and others added 2 commits November 25, 2026 05:48
@juliusmarminge @claude
Merge remote-tracking branch 'origin/main' into wf/find-0127c20e9d674…
d1531f8
…d422ccc62b8

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge @claude
test(server): fold Claude metadata budget cases into the scanner suite
f0211e2
Moves the budget cases into AgentSessionScanner.test.ts on its existing helpers and drops the eight-transcript case, which a sequential reader also passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@juliusmarminge

juliusmarminge commented Nov 25, 2026

Copy link
Copy Markdown
Member

The automated pipeline stopped on this pull request and will not merge it:

the fix is written and reviewed, but proving it needs something no worker has:

  • Permanent blocker: the reproduction requires authenticated real Claude Code to create the text-only, one-image, and six-image transcripts. First-party Claude OAuth is explicitly unavailable on these workers, and the isolated CLI confirmed it was not logged in. Discovery and import on both base and head remain unverified.

It stays open for a person to finish or close.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 25, 2026
@killlilwinters killlilwinters mentioned this pull request Nov 25, 2026
[Bug]: Claude Code session import skips sessions whose first message is a large image (over 1 MiB) #41436
Closed
2 tasks done

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:L 100-499 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@StiensWout @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.