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 — chore: sync upstream t3code main and preserve KBCode fork features by KB01111 · Pull Request #41532 · pingdotgg/t3code

Conversation

@KB01111

@KB01111 KB01111 commented Nov 23, 2026

Copy link
Copy Markdown

Problem

PR #2 (pingdotgg/t3code:main at 79979166731a3ed40dc467ced2dcb782233c22f2 → KB01111/t3code:main) had merge conflicts across capability contracts, server environment, install docs, pnpm-lock.yaml, and all 20 web/mobile i18n catalogs, plus several semantic regressions and compatibility bugs affecting our KBCode fork features (KBCode branding/protocols, Prime Agent ACP --resume, multi-cloud sandboxes, and $0 iOS sideloading). Because PR #2's head branch is pingdotgg/t3code:main, conflicts cannot be pushed directly to PR #2.

This PR supersedes #2 by merging 79979166731a3ed40dc467ced2dcb782233c22f2 cleanly into a branch off main and fixing all critical/high compatibility issues so custom fork features remain intact. Merging this PR into main will also mark #2 as merged.

Change

Merge Conflict & Dependency Resolution

  • apps/server/src/environment/ServerEnvironment.ts & packages/contracts/src/environment.ts: Kept both our sandboxes capability and upstream's agentFeedback / issueTrackerAccounts capabilities.
  • docs/user/install.md: Kept both Prime Agent and upstream's ACP Registry agents.
  • apps/{web,mobile}/src/i18n/translations/*.json: Performed a lossless 3-way JSON merge across all 10 locales in web and mobile (0 missing, 0 stale, 0 locale parity issues).
  • pnpm-workspace.yaml & pnpm-lock.yaml: Added targeted peerDependencyRules.allowedVersions for transitive @opentelemetry/*@1.30.1 > @opentelemetry/api: 1.10.0 (needed under upstream's new strictPeerDependencies: true) and regenerated pnpm-lock.yaml via vp i.

KBCode Fork Fixes

  • Desktop renderer CORS & auth (apps/server/src/httpCors.ts): Derived DESKTOP_RENDERER_ORIGINS from BRAND_DESKTOP_PROTOCOLS so kbcode://app and kbcode-dev://app are accepted alongside legacy t3code://app / t3code-dev://app.
  • Desktop relaunch deep-link stripping (apps/desktop/src/electron/ElectronProtocol.ts, DesktopLifecycle.ts): Stripped both kbcode: and legacy t3code: deep-link arguments on relaunch.
  • Cloud Sandbox pairing & watchdog (apps/server/src/sandboxes/SandboxBootstrap.ts, SandboxOrchestratorService.ts, SandboxWatchdogService.ts, http.ts):
    • Removed the nonexistent --url flag from $CLI pair, added a readiness wait on 127.0.0.1:<port>/.well-known/t3/environment, and rewrote container-local/private pairing URL origins to the sandbox's public URL on both spawn and resume.
    • Included 'waiting' run status in active-run SQL queries so sandboxes waiting on approvals/input aren't auto-stopped as idle.
  • Prime Agent ACP cli-flag resume (packages/provider-acp/src/server/AcpSessionRuntime.ts, adapter.ts, packages/provider-prime-agent/src/server/adapter.ts):
    • Wrapped the cli-flag resume session/new call in withStartupTimeout(...).
    • Wired resumeMethod: "cli-flag" through canResumeAfterRestart, activateSession, restartRuntimeAfterTeardownIfRequired, and stale-session fallback so hard-interrupt restarts and resumeThread cleanly respawn with --resume <sessionId>.
  • Mobile deep links, QR pairing & $0 iOS Personal Team signing (apps/mobile/src/features/threads/ThreadRouteScreen.tsx, pairing.ts, app.config.ts):
    • Resolved environmentId via useResolvedThreadEnvironmentId(...) inside ThreadRouteContent so kbcode://thread/<threadId> deep links no longer hang on <OpeningThreadLoadingScreen />.
    • Switched extractPairingUrlFromQrPayload to readPairingAppLink so kbcode://pair?pairingUrl=... QR codes unwrap properly.
    • Updated ios.entitlements["keychain-access-groups"] to use iosBundleIdentifier (matching custom T3CODE_IOS_PERSONAL_TEAM_BUNDLE_ID builds).
  • Web Prime Agent composer integration (apps/web/src/components/chat/ChatComposer.tsx, PrimeAgentComposerControls.tsx, ComposerControlsBar.tsx, restingComposerControlsMeasurement.ts):
    • Switched cloud sandbox detection from cosmetic useEnvironmentMachines() (environmentIcon) to isCloudSandboxEnvironment(activeEnvironment?.serverConfig?.environment).
    • Wired useComposerMenuProps(), useComposerMenuState(props.hidden), and resting-controls width measurement for PrimeAgentComposerControls.

Verification

  • vp i: Passed cleanly with strictPeerDependencies: true.
  • typecheck: 10/10 fork-affected packages/apps pass (@t3tools/contracts, @t3tools/shared, @t3tools/provider-acp, @t3tools/provider-prime-agent, @t3tools/sandbox-providers, @t3tools/client-runtime, t3, @t3tools/web, @t3tools/desktop, @t3tools/mobile).
  • vp lint & vp fmt --check: 0 errors on all edited files.
  • i18n catalog verification (gt generate --skip-version-check + locale key parity): 0 missing, 0 stale, 0 mismatches across web, mobile, and desktop.
  • Focused unit tests:
    • Server (SandboxOrchestratorService, PrimeAgentAdapterV2, SandboxWatchdogService, WebhookNotificationService, ws): 5/5 files, 45/45 tests passing.
    • Mobile (app.config, pairing, cloudSandboxes.logic, appLinking): 4/4 files, 55/55 tests passing.
    • Web (PrimeAgentComposerControls.logic, CloudSandboxes.logic): 2/2 files, 12/12 tests passing.
    • Desktop (DesktopAppIdentity, DesktopClerk, DesktopPreReadyPlatform): 3/3 files, 27/27 tests passing.
    • Packages (provider-prime-agent, sandbox-providers): 2/2 files, 9/9 tests passing.

Remaining Follow-Up Steps (for later)

  1. Run vp run knip:check on a CI runner or with NODE_OPTIONS=--max-old-space-size=8192 (hit Windows V8 zone OOM locally when running both knip checks concurrently; verify primeAgentModelsFromList export in packages/provider-prime-agent/src/server/status.ts is accepted or made internal).
  2. WebhookNotificationService parity with upstream AgentAwarenessRelay: Optionally subscribe to subagent.updated / turn-item.updated and forward pendingSubagentRequest into projectThreadAwarenessV2(...) so subagent approval/input prompts also trigger ntfy/Telegram webhooks.
  3. Desktop packaging & branding polish (Linux .deb / CLI shim / dialogs):
    • Align scripts/build-desktop-artifact.ts (linux.executableName: "t3code" vs com.kbcode.app.metainfo.xml's <binary>kbcode</binary>, plus nightly/artifact/macOS plist "T3 Code" strings) and update scripts/build-desktop-artifact.test.ts accordingly.
    • Decide whether DesktopCliCommand.ts / DesktopCliShim.ts should also install a kbcode shim alongside t3.
    • Optionally index cloud-sandboxes in apps/web/src/components/settings/settingsSearch.ts (and run vp run i18n:generate + translate the new key), and decide whether primeAgent should be added to mobile PRIMARY_PROVIDER_DRIVERS (ThreadSettingsSheet.tsx).
  4. End-to-end / platform checks on macOS & Linux:
    • Run DesktopLinuxUrlHandler.test.ts and scripts/build-desktop-artifact.test.ts on Linux/CI (NTFS case-insensitivity and Windows vp shim lookup affect those suites locally on Windows).
    • Smoke-test web/desktop/mobile UI (test-t3-app / test-t3-mobile) for Prime Agent popover, Cloud Sandboxes settings, and kbcode://thread/<id> deep links.

Done with Gemini 4 Neon (High) in Antigravity.

Sorry, something went wrong.

Uh oh!

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

All reactions
KB01111 and others added 5 commits November 22, 2026 15:22
@KB01111
feat: rebrand to KBCode, add Prime Agent provider, and orchestrate fr…
bdca37e
…ee-tier cloud sandboxes
@KB01111 @claude
fix: address CodeAnt review findings on KBCode PR
b32aa50
- mobile: ambiguous thread ids across environments no longer resolve to the first match
- desktop: keep legacy t3code URL schemes registered in the macOS bundle
- web: accept the current page origin as the hosted return origin for Codex sign-in
- sandboxes: make repository update atomic; reject malformed snapshot bodies with 400
- prime-agent: provider API keys still authenticate when the CLI reports no Prime login

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@KB01111 @claude
refactor(sandboxes): split CloudSandboxesSection into row components
f631809
Extract SandboxRow/SandboxDetails/action components and a shared failure
reporter in web and mobile to cut the per-function complexity and
duplicated handler/button code flagged by qlty. No behavior change.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@KB01111
Merge pull request #1 from KB01111/feat/kbcode-rebrand-prime-agent-sa…
1081645
…ndboxes

feat: rebrand to KBCode, add Prime Agent provider, and orchestrate free-tier cloud sandboxes
@KB01111
chore: sync upstream t3code main and preserve KBCode fork features
cb1a21a
Merges pingdotgg/t3code@7997916 (superseding conflicting PR #2) and fixes compatibility regressions across KBCode branding, Prime Agent ACP resume, cloud sandboxes, and mobile/web/desktop integrations.
@github-actions github-actions Bot added the vouch:unvouched Author is not yet trusted in the VOUCHED list. label Nov 23, 2026
@KB01111 KB01111 closed this Nov 23, 2026
@github-actions github-actions Bot added the size:XXL 1,000+ changed lines (additions + deletions). label Nov 23, 2026
@github-actions

github-actions Bot commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

This PR changes the test suite by +458 test cases (browser +27, unit +193, server +238).

New browser test files: apps/web/src/components/workflows/WorkflowRunsView.browser.test.tsx, apps/web/src/lib/pageTranslationGuard.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

All reactions

Sorry, something went wrong.

Uh oh!

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

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:XXL 1,000+ changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in 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.

1 participant

@KB01111
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.