Skip to content

chore: sync with upstream/main (d63b9c4c7) - #97

Merged
Fryuni merged 325 commits into
mainfrom
fryuni/merge-upstream-main-11
Nov 23, 2026
Merged

Fryuni merged 325 commits into
mainfrom
fryuni/merge-upstream-main-11

Conversation

@Fryuni

@Fryuni Fryuni commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Problem

The fork is 324 commits behind upstream/main. This sync keeps the features recorded in docs/adr, using upstream's implementation wherever it can.

Change

Merges pingdotgg/t3code main at d63b9c4c7. 19 files had conflicts. git show --remerge-diff 2b3cfb237b shows the whole resolution.

Workflows (ADR 0011). Upstream edited ci.yml and release.yml and added .github/scripts/test-delta.cjs. release.yml and test-delta.cjs stay deleted. ci.yml keeps the fork's layout: upstream's only change adds a CLI single-executable build to its build job, and the fork has no build job.

Implemented upstream

  • ADR 0029 (command approvals only). Upstream fix(server): Full access Codex no longer asks before dangerous commands pingdotgg/t3code#40773 now accepts Codex command approvals in Full access on its own. The fork keeps upstream's version. Unlike the fork's old branch, it still asks before network access that Codex's managed network settings don't allow. The fork still answers file-change, permissions, and legacy approvals. Its check now also steps aside for an explicit sandbox policy, the same rule upstream uses.

Conflicts with new upstream behavior

ADRs. Every ADR now compares against d63b9c4c7. Notes were added to ADRs 0002, 0008, 0009, 0011, 0016, 0026 and 0029.

Verification

  • vp run check:changed upstream/main: lint, knip, GraphQL, typecheck (43 packages) and the React compiler pass. The one format issue it found (useHandleNewThread.ts) is fixed in the commit. Tests: every failure comes from this host:
    • GitManager.test.ts (3) and GitVcsDriver.test.ts (1) pass with GIT_CONFIG_GLOBAL=/dev/null. They fail because of this host's url.*.insteadOf rules, as in earlier syncs.
    • ProjectSetupScriptRunner.test.ts and ServerBrowser.test.ts fail because this NixOS host has no /bin/bash and Chromium can't load libglib.
    • The executed install script case in DesktopWslEnvironment.test.ts also fails here. Its file is the same as upstream's.
  • Focused runs pass: ThreadLaunchService, CodexAdapterV2, ThreadSettlementService, OrchestratorMcpService, storageCleanup, cli/config, AgentContextBudget, useHandleNewThread, BranchToolbar.logic, scheduledTasksSettings.logic.
  • vp run i18n:check passes.

Not run locally: browser tests (Chromium can't start on this host), a manual pass in a real client, the mcp-tool-use eval, and the fork release workflow end to end.

Model: Claude Opus 5.5; harness: Claude Code in T3 Code.

🤖 Generated with Claude Code

juliusmarminge and others added 30 commits November 21, 2026 14:35
…tgg#40576)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#40585)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ks (pingdotgg#40592)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#40587)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#40595)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#40594)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… is gone (pingdotgg#40627)

Co-authored-by: Kevin Flores <101906409+kevincommits@users.noreply.github.com>
… drag (pingdotgg#33221)

Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
…itle limit (pingdotgg#29830)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
…ests (pingdotgg#40634)

Co-authored-by: Mostafa El Ayoubi <20224923+MostafaElAyoubi@users.noreply.github.com>
pingdotgg#40633)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#40622)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…heckout (pingdotgg#38271)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#38542)

Co-authored-by: Geezy <igor.licko@gloryck.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…e per turn (pingdotgg#40671)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… drops its prompt (pingdotgg#40670)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ared tooltip; remark leaves the web app (pingdotgg#27866)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Yash Singh <saiansh2525@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Gemini 4 Neon <noreply@google.com>
Co-authored-by: Noah Sigel <noah.sigel@gmail.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…-foreground-muted (pingdotgg#40676)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
juliusmarminge and others added 22 commits November 23, 2026 00:00
…ingdotgg#33869)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ting on (pingdotgg#31449)

Co-authored-by: Kazuya Hibara <267899283+Kazuya-Hibara@users.noreply.github.com>
Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#41318)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gg#32768)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…, not per subscriber (pingdotgg#41309)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…41325)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
)

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…e agent as text (pingdotgg#41340)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…#36286)

Co-authored-by: Shantanu Ojha <shantanuojha@Shantanus-MacBook-Pro.local>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Copilot AI balanced review requested due to automatic review settings November 23, 2026 10:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T10:44:07.940755Z 2b3cfb2 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@fryuni-proval

fryuni-proval Bot commented Nov 23, 2026

Copy link
Copy Markdown

@Fryuni, this is a big PR that touches desktop, mobile and tooling. The riskier pieces (header rewriting, shell signal handling, native hit targets) come with good tests.

Overview

Summary
Most of the PR is product changes:

  • Desktop: strips the synthetic t3code://app Origin from main-window requests to remote environments, adds shadow-DOM-aware element picking and IPv6-aware loopback port probing, hardens the AppImage CLI shim's signal handling, and adds a registry check before reporting WSL as available.
  • Mobile: adds an unlisted workflows tab, chunked Markdown and full-file previews, a larger checkbox tap target in the review diff, and fixes for the composer's pending-attachment counter.
  • Tooling: updates the agent skills, devcontainer, pnpm hooks and doc paths.

I didn't find anything that blocks merging.

Good points

  • 🟢 stripDesktopOriginHeaders (apps/desktop/src/window/RemoteRequestHeaders.ts) only rewrites headers for top-level main-webContents requests whose Origin exactly matches the desktop origin, and it fails closed when the frame lookup throws. RemoteRequestHeaders.test.ts covers the negative cases.
  • 🟢 The closed handler in apps/desktop/src/window/DesktopWindow.ts (~line 1064) only detaches the onBeforeSendHeaders listener if this window owns it. A stale window can't remove the listener a newer window installed, which matters because Electron allows only one such listener per session.
  • 🟢 apps/mobile/src/features/files/useFullFileText.ts refuses a download when content-length is missing or too large. This stops an unbounded body from being buffered into phone memory.
  • 🟢 apps/desktop/src/app/DesktopCliShim.test.ts covers group TERM, HUP, systemd's KillMode variants, exit-status passthrough and a closed stdin, which pins down shell behaviour that breaks easily.

Main Issues

None.

Additional Notes

  • apps/mobile/src/features/files/ThreadFilesRouteScreen.tsx, line 257: the JSDoc on selectable describes chunked Markdown rendering. The prop actually turns on iOS whole-file selectable text in source mode, so the comment should be reworded to say that.
  • apps/desktop/src/app/DesktopApp.ts, line 176: the // Spawns the local backend… comment now sits above restartOnFeatureFlagChange instead of startLocalBackend. Moving it back down would fix that.
  • apps/desktop/src/wsl/DesktopWslEnvironment.ts, line 1137: reg.exe is called by bare name and spawn failures are turned into false, while the existence check at line 1170 uses an absolute System32 path. Using path.join(windir, "System32", "reg.exe"), or logging spawn failures, would make a missing WSL easier to diagnose. That said, other wsl.exe calls in this file (e.g. line 188) also rely on PATH.

@Fryuni

Fryuni commented Nov 23, 2026

Copy link
Copy Markdown
Owner Author

Thanks. The three additional notes are about upstream code this sync brings in unchanged: the selectable JSDoc in ThreadFilesRouteScreen.tsx, the moved comment in DesktopApp.ts, and the bare reg.exe call in DesktopWslEnvironment.ts. The fork has no diff in those files against upstream/main, so they're out of scope for a sync PR. Fixing them belongs upstream.

@chatgpt-codex-connector chatgpt-codex-connector 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2b3cfb237b

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@Fryuni
Fryuni merged commit d742c5d into main Nov 23, 2026
9 checks passed
@Fryuni
Fryuni deleted the fryuni/merge-upstream-main-11 branch November 23, 2026 10:53
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.