GeezerVison is showing github.com — fix(core): improve provider updates and fork reliability by unlockdigital · Pull Request #6 · unlockdigital/t3code
Conversation
Problem
The fork is missing selected upstream fixes for event persistence, provider transport closure, Claude rollback recovery, delegated completion races, attachment delivery, and desktop ergonomics. Claude's native updater also loses the connection's configured home and compares its installed version against a release source that can disagree with its configured channel.
Change
- Add bounded SQLite write retries and bounded failure of pending Codex requests when stdout closes.
- Preserve terminal run status and checkpoints during delegated completion updates, and restore Claude context after interrupted rollback.
- Bind RPC WebSocket tickets to their audience and proof key. Keep older-client support and add a 404-only legacy media-ticket fallback with a fresh proof for the fallback URL.
- Refresh branch status locally when the server advertises support, retain attachment paths in provider prompts, and allow repeated Quit after a stalled desktop shutdown.
- Use each Claude connection's resolved home for both channel detection and native updates. Scope release caches by home, preserve shared-install locking, and avoid forwarding instance API keys to maintenance commands.
- Run the advisory native-fingerprint job on GitHub-hosted Ubuntu in forks, following the existing CI runner-selection pattern. This fork has no Blacksmith runner, which left the job queued indefinitely.
- Recognize Git's alternate invalid-worktree-pointer diagnostic during cleanup, retaining the checkout with the expected repository-changed report. Permission failures retain their error handling and preserve files.
Adapted upstream fixes: pingdotgg#24571, pingdotgg#24600, pingdotgg#25695, pingdotgg#25672, pingdotgg#25666, pingdotgg#24554, pingdotgg#23873, pingdotgg#22807, and pingdotgg#21356.
Scope and approval
The fork maintainer explicitly approved these reviewed backports as one bundle and authorized this PR and merging after checks pass. Existing local working changes were preserved and validated alongside the bundle. T3 Connect changes were excluded after finding no active use.
Verification
vp run check:changed 65660a33a6afbf849018587d74ba912b92625632: formatting, lint, knip, generated operations, 30 affected package typechecks, and 653 tests passed on the isolated bundle.
- Combined validation with a private copy of existing local work: 32 affected package typechecks and all static checks passed; 1,462 tests plus two Sidebar browser tests passed. The browser tests passed after installing their missing pinned Chromium fixture in a private validation directory.
- Desktop, web, and server builds passed for the isolated bundle, combined source, and integrated local checkout. Bundled server CLI help smoke passed.
- Baseline probes reproduced the WebSocket proof/replay defect, legacy media compatibility failure, and six Claude channel/cache failures. The corresponding regressions pass with the fixes.
- Native Claude update through the API connection's configured home succeeded from 2.1.308 to 2.1.311. Subscription
stable and API latest channel settings were preserved.
- Independent Luna review found no remaining actionable integration findings, including interactions with the fork's local changes. Interactive visual client testing was not performed; behavior is covered by the lifecycle, VCS, authentication, and existing Sidebar tests above.
- Initial CI passed its required
Check, all eight server shards, package and web tests, builds, typechecks, lint, and release smoke. The transfer-impact report stayed within every ceiling. A subsequent workflow-only fix resolves the advisory job's unavailable runner; its affected checks passed locally and CI will verify the final head before merge.
- The repaired native-fingerprint job passed. A later Server 4 run exposed a pre-existing cleanup diagnostic mismatch. A deterministic regression reproduced that failure; all 121 cleanup tests pass after the narrow classifier fix, including preservation of files and unknown-error reporting.
Model: GPT-6.1-sol with GPT-6-luna implementation and review subagents. Harness: Codex in T3 Code.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Respect each Claude connection home and native release channel when checking and applying updates. Add bounded event-write retries and Codex closure handling, preserve delegated completion state, restore interrupted Claude context, and improve attachments, branch freshness, and desktop shutdown.
Backport upstream pingdotgg#24571, pingdotgg#24600, pingdotgg#25695, pingdotgg#25672, pingdotgg#25666, pingdotgg#24554, pingdotgg#23873, pingdotgg#22807, and pingdotgg#21356 with fork-specific compatibility guards and regression coverage.
Validated 653 affected tests, affected typechecks, lint, formatting, knip, generated contracts, and desktop/web/server builds.
Model: GPT-6.1-sol with Luna subagents. Harness: Codex in T3 Code.
Thread transfer impact
✅ Thread transfer remains within every enforced ceiling.
| Provider |
Metric |
Main baseline |
This PR |
Impact |
PR ceiling |
|
| Codex |
Total thread wire |
5.0 KiB |
5.0 KiB |
+7 B (+0.1%) |
6.8 KiB |
✅ |
| Codex |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Codex |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
+7 B (+0.6%) |
2.0 KiB |
✅ |
| Codex |
Live turn WebSocket decoded |
20.9 KiB |
20.9 KiB |
0 B (0.0%) |
29.3 KiB |
✅ |
| Codex |
Live turn messages |
2 |
2 |
0 (0.0%) |
8 |
✅ |
| Claude |
Total thread wire |
5.0 KiB |
5.0 KiB |
−7 B (−0.1%) |
6.8 KiB |
✅ |
| Claude |
Thread snapshot wire |
3.8 KiB |
3.8 KiB |
0 B (0.0%) |
4.9 KiB |
✅ |
| Claude |
Live turn WebSocket wire |
1.2 KiB |
1.2 KiB |
−7 B (−0.6%) |
2.0 KiB |
✅ |
| Claude |
Live turn WebSocket decoded |
21.2 KiB |
21.2 KiB |
0 B (0.0%) |
29.3 KiB |
✅ |
| Claude |
Live turn messages |
2 |
2 |
0 (0.0%) |
8 |
✅ |
Baseline: 65660a3 · PR result: 900e04c · Source CI: success
Scenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
- Codex decoded thread snapshot: 108.5 KiB
- Claude decoded thread snapshot: 108.8 KiB
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The fork has no Blacksmith runner, so its advisory native fingerprint job stays queued. Select GitHub-hosted Ubuntu for forks using the runner pattern already used by the main CI workflow.
Validated workflow formatting, affected checks, and all32package typechecks.
Model: GPT-6.1-sol. Harness: Codex in T3 Code.
Git can report a broken linked-worktree pointer with an alternate diagnostic. Recognize that diagnostic as a changed repository and retain the checkout, while preserving failure reports for unknown Git errors.
Reproduced the CI failure with a deterministic regression. All 121 cleanup tests, affected checks, and independent review pass.
Model: GPT-6.1-sol with GPT-6-luna review. Harness: Codex in T3 Code.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|