Skip to content

chore: sync upstream t3code main and preserve KBCode fork features - #3

Merged
KB01111 merged 2 commits into
mainfrom
sync/upstream-main
Nov 23, 2026
Merged

KB01111 merged 2 commits into
mainfrom
sync/upstream-main

Conversation

@KB01111

@KB01111 KB01111 commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

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

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

KBCode Fork Fixes

  • Desktop renderer CORS & auth (httpCors.ts): DESKTOP_RENDERER_ORIGINS derived from BRAND_DESKTOP_PROTOCOLS so kbcode://app / kbcode-dev://app work alongside legacy t3code:// origins.
  • Desktop relaunch (ElectronProtocol.ts, DesktopLifecycle.ts): strips both kbcode: and legacy t3code: deep-link args.
  • Cloud Sandboxes (SandboxBootstrap.ts, SandboxOrchestratorService.ts, SandboxWatchdogService.ts, http.ts): dropped the nonexistent --url flag from $CLI pair, wait for environment readiness, rewrite private pairing URL origins to the sandbox public URL, and count waiting runs as active so sandboxes awaiting approval/input are not reaped.
  • Prime Agent ACP cli-flag resume (provider-acp, provider-prime-agent): startup timeout around session/new, and resumeMethod: "cli-flag" wired through restart/resume paths.
  • Mobile: kbcode://thread/<id> deep links resolve their environment, kbcode://pair QR payloads unwrap, and iOS keychain access group follows the custom bundle id.
  • Web Prime Agent composer: cloud sandbox detection uses server environment metadata; composer menu props/state and resting-controls measurement wired.
  • Linux packaging: linux.executableName is now kbcode and the metainfo launchable is kbcode.desktop, matching <binary>kbcode</binary> (test added).
  • Settings search: new "Cloud Sandboxes" entry, shown only when a connected environment advertises the sandboxes capability (test added).

Verification

  • vp i passes with strictPeerDependencies: true.
  • Typecheck passes for all fork-affected packages/apps; vp lint / vp fmt --check clean on edited files.
  • knip --include files,dependencies and knip --exports (with --max-old-space-size=8192) report no findings.
  • Focused unit tests pass for server, mobile, web, desktop, and the provider/sandbox packages; new tests cover the Linux executable name and sandbox settings search.

Follow-ups (not blocking)

  • Subagent approval/input notifications in WebhookNotificationService (parity with AgentAwarenessRelay).
  • Remaining "T3 Code" strings (nightly/macOS plist/artifact names), a kbcode CLI shim, primeAgent in mobile primary providers.
  • Linux CI run of DesktopLinuxUrlHandler.test.ts / build-desktop-artifact.test.ts, and a UI smoke pass on web and mobile.

Done with Gemini 4 Neon (High) in Antigravity; follow-up commit by Claude Sonnet 5.5 in Claude Code.

🤖 Generated with Claude Code

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.
@codeant-ai

codeant-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Skipping CodeAnt AI review — this PR changes more than 100 files, which usually means a migration, codemod, or vendored drop. Line-level review on diffs this large produces duplicate findings on the same rewrite pattern and drowns out anything that actually matters.

If you still want a review, comment @codeant-ai : review. For better signal, consider splitting the PR into smaller chunks.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry @KB01111, this pull request is too large to review

It changes 912 files. Sourcery can review pull requests with up to 300 changed files.

@codemetrics-ai

Copy link
Copy Markdown

Note

Review skipped

Codemetrics is installed on this repository, but it hasn't been added to your team yet.

To enable AI code reviews for this repo, go to your dashboard and add t3code to your team's repositories.

…Sandboxes settings search

Linux builds now name the executable kbcode so it matches the AppStream
binary and launchable ids. Settings search gains a Cloud Sandboxes entry
that only shows when a connected environment supports sandboxes.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@KB01111

KB01111 commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

@CodeAnt-AI : review

@codeant-ai

codeant-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown

CodeAnt  CodeAnt Review Status

🔄  Review in progress

Status Commit Started (UTC) Finished (UTC)
🔄  #af3ac Reviewing your PR… 53b769e Nov 23, 2026 · 19:50 —

@codeant-ai

codeant-ai Bot commented Nov 23, 2026

Copy link
Copy Markdown

Thanks for using CodeAnt! 🎉

We're free for open-source projects. if you're enjoying it, help us grow by sharing.

Share on X ·
Reddit ·
LinkedIn

@KB01111
KB01111 merged commit 7031858 into main Nov 23, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant