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(acp): retry missing session history from another project by StiensWout · Pull Request #44926 · pingdotgg/t3code

Conversation

@StiensWout

@StiensWout StiensWout commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Retrying an ACP import from the session’s original folder could report that the session was already imported after its original T3 project changed folders, leaving the transcript missing. The retry now uses the native session binding to find the existing thread and reads its missing history from the requesting project’s folder. The regression test verifies both the destination thread and the folder used for the retry.

Related: #39575, #34043, #36358, #39576

Reproduction on main

Commit 40b0a98a20 (main). T3 says the ACP session is already imported and hides the retry until the list refreshes. The transcript stays missing. Expected: The retry restores the transcript in the existing T3 thread.

The cause is at apps/server/src/provider/AcpRegistrySessions.ts:180. Ran cd apps/server && pnpm exec vp test run src/ws.test.ts with the repro test added: it failed in 2 of 2 runs on a clean checkout, with expected false to equal true in the output.

Evidence

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

Proven: the repro fails at the test commit ba951ecf41 and passes on the head 700f0a8baa, both on main a9b301f927.

Before After
Commit ba951ecf41 700f0a8baa
Result failed with "expected false to equal true" passed

Outside view: not shown in the running app. The app gets there by itself fails: Import skips the missing transcript only when the existing thread belongs to a different project than the one whose folder still lists the session, and a person cannot put the app in that state. No screen or project command changes a project's folder, and adding that folder again reuses the project that already owns it; the retry path is reached only by pointing the original project somewhere else through the project update API.

Tests

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

Not in this change

  • Cross-project repairs require a verified native session binding because a derived thread ID alone cannot establish which native session the importer would read.
  • Completed imports and threads that have already run keep their existing behavior.
  • This change covers retries after a folder change through the project API. It adds no project folder editing UI.

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 Grok 4.7, in Grok
  • 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 and Grok 4.7

Sorry, something went wrong.

Uh oh!

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

All reactions
StiensWout and others added 3 commits November 28, 2026 12:54
@StiensWout @codex
test(acp): cover import retries after a project folder changes
ba951ec
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
fix(acp): retry missing session history from another project
6b49a32
Co-authored-by: GPT 6.2 Sol <[email protected]>
@StiensWout @codex
test(acp): verify the folder used to retry session history
700f0a8
Co-authored-by: GPT 6.2 Sol <[email protected]>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Run configuration

  • Source mode: Auto
  • Repository: pingdotgg/t3code
  • Branch: main
  • File: .coderabbit.config.ts
  • Commit: d0717f7
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6d0abcab-5a54-4894-b7f2-93357361d581
Commits

Reviewing files that changed from the base of the PR and between 700f0a8 and eb09931.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Cross-project ACP session imports now continue to history-pending checks when a native-session owner exists. Tests verify listing and importing these sessions with the original workspace root, including after the owner project’s root changes.

Changes: ACP history repair

Layer / File(s) Summary
Cross-project session history repair
apps/server/src/provider/AcpRegistrySessions.ts, apps/server/src/ws.test.ts
Cross-project imports with an existing native-session owner can proceed to history repair. The test checks that repair uses the session’s original workspace root after the owner project’s root changes.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related issues

  • pingdotgg/t3code#39575 — The changes cover restoring missing ACP history on a cross-project import, but do not change the behavior where a failed history read is marked complete.

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · previous review 700f0

This change lets a retry restore missing ACP session history in an existing thread after the project's folder has changed. It reads that history from the requesting project's folder. The change is small and covered by a regression test, and no concrete problem remains that should block merging.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(acp): retry missing session history from another project" matches the main change: the retry path for a missing ACP session transcript now uses the native session binding and reads hist…
Description check Passed The description follows the template. It has Problem, Change, Scope (links related issues and explains the bug-fix scope), Verification (names the failing and passing commits, the exact test command, …
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 "fix(acp): retry missing session history from another project" matches the main change: the retry path for a missing ACP session transcript now uses the native session binding and reads history from the requesting project's folder. It is specific, follows conventional commit form, and is under 72 characters.

Full details: Description check

Explanation

The description follows the template. It has Problem, Change, Scope (links related issues and explains the bug-fix scope), Verification (names the failing and passing commits, the exact test command, and the observed results), and a Who did the work section. It also covers what is out of scope. The Problem section gives expected behavior and reproduction steps. The Scope section does not explicitly name the issue that shows the bug, but it lists related issues. The description is mostly complete.

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: 5fc4388
  • Layers: Repository TS config
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: deaaa527-8f34-4673-af38-9887092f5817
Commits

Reviewing files that changed from the base of the PR and between 5fc4388 and 700f0a8.

Files selected for processing: 2

  • apps/server/src/provider/AcpRegistrySessions.ts
  • apps/server/src/ws.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 28, 2026
@juliusmarminge
Merge remote-tracking branch 'origin/main' into wf/find-a24a7ff41e021…
eb09931
…5ae4ff96971
@juliusmarminge

juliusmarminge commented Nov 28, 2026

Copy link
Copy Markdown
Member

Evidence

Real web app, Chromium 1280×800, light theme, fresh database per commit, real OpenCode ACP 2.4.2. Created a native conversation; imported into Project A while provider startup was deliberately unavailable; moved A from folder X to Y through the project API; created Project B at X; retried Import from B, clicked Refresh, then opened the original A thread. Captures are cropped to exclude private environment labels.

Before After
d0717f7e20 eb09931696
Before: history remains missing After: history restored in original thread
Import → Refresh recording: Import returns Import → Refresh recording: Imported persists

API seed driver · Real-provider launcher · Runtime observations

Base provider logs contain only the original failed initialize. Head additionally initializes successfully and completes session/load; historyOrigin changes from unset to v1_import.

Not shown:

  • The guard against a cross-project derived-ID collision without a verified native binding was not exercised; this proof covers the reported retry of a verified binding.
All reactions

Sorry, something went wrong.

Uh oh!

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

@juliusmarminge juliusmarminge added takeover:ready Takeover done; auto-lands when gates pass and removed takeover:in-progress A takeover lead is working on this PR labels Nov 28, 2026
@juliusmarminge
juliusmarminge merged commit 2bebf9e into pingdotgg:main Nov 28, 2026
60 checks passed

Uh oh!

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

@juliusmarminge juliusmarminge removed the takeover:ready Takeover done; auto-lands when gates pass label Nov 28, 2026
imetn added a commit to imetn/t4code that referenced this pull request Nov 28, 2026
@imetn
chore(upstream): port 42 high-value post-v0.1.13 PRs (mobile, web, se…
6008d4d
…rver)

Mobile (7 PRs):
- pingdotgg#44387 ProMotion 120Hz scroll stutter fix ([email protected] patch)
- pingdotgg#44161 iOS release status bar icons follow app theme
- pingdotgg#44939 Scroll to end no longer loses next tap
- pingdotgg#44937 image previews opened from composer chip stay closed
- pingdotgg#44660 center working glyph in Dynamic Island
- pingdotgg#44315 tapping image in html_render opens image viewer
- pingdotgg#30661 share a turn's final response from system share sheet (approved orthogonal graft in ThreadFeed.tsx)

Web & Desktop (17 PRs):
- pingdotgg#43101, pingdotgg#30027, pingdotgg#44935, pingdotgg#44900 Markdown code block & file tree preview, large preview Select-All Range copy, rendered table copy
- pingdotgg#44055, pingdotgg#44952, pingdotgg#44992 copy chat table as aligned text for chat apps (CJK & symbol width alignment)
- pingdotgg#33801 Mod+Alt+E maximizes right panel even when closed (T4 Tooltip preserved)
- pingdotgg#39122 snooze a thread indefinitely
- pingdotgg#44023 inline CLI update button in provider status section
- pingdotgg#33827 save files from preview panel to machine
- pingdotgg#44930, pingdotgg#44945, pingdotgg#44916, pingdotgg#44831, pingdotgg#44975, pingdotgg#45021 folder-add/draft/queue/HTML-reload/clear UX fixes

Server & Providers (18 PRs):
- pingdotgg#41726 Usage limits refresh skips full provider health checks (preserving T4 human-only manual Antigravity CLI probe and avoiding ACP health checks on limitsOnly)
- pingdotgg#32114, pingdotgg#43651 checkpoint capture baseline read & parallel source control discovery
- pingdotgg#44979 hung gh auth token no longer stalls MCP connect
- pingdotgg#44860, pingdotgg#44872 Claude main checkout settings/plugins & scratch folder cleanup
- pingdotgg#44902 send image attachments with actual byte magic MIME type (approved orthogonal graft in adapter.ts)
- pingdotgg#44994, pingdotgg#44399, pingdotgg#44406, pingdotgg#44418, pingdotgg#44448, pingdotgg#45014, pingdotgg#44827, pingdotgg#44913, pingdotgg#40454, pingdotgg#44863, pingdotgg#44926 terminal/git/Codex/ACP/CLI/desktop stability fixes

Verified:
- check:t4-locks main..HEAD: only the 2 user-approved orthogonal grafts (ThreadFeed.tsx, adapter.ts)
- Zero telemetry: 0 bytes changed in telemetry modules
- i18n:check pass across all 10 locales (0 untranslated zh.json keys)
- vp fmt --check pass across all 166 changed files
- Typecheck 0 new errors across all 13 touched packages
- Targeted unit tests + all 8 Web Chromium browser test suites (196/196) + independent GPT pre-merge review & fixes verified
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:XS 0-9 changed lines (additions + deletions). 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.