Skip to content

sync: upstream through c00f1172ee (136 commits) - #144

Merged
mfituri merged 139 commits into
mainfrom
sync/upstream-20261122
Nov 22, 2026
Merged

mfituri merged 139 commits into
mainfrom
sync/upstream-20261122

Conversation

@mfituri

@mfituri mfituri commented Nov 22, 2026 •

Copy link
Copy Markdown

Sensitive changes (16)

Upstream changes that run on install or in CI, steer our agents, or decide where data goes or who gets in. Read each one before merging.

package.json scripts, bin and lifecycle hooks (1)

Review: Checked — #30879 (aa0a8513aa) removes apps/server/package.json's standalone typecheck script as server typecheck moves to incremental tsgo -b project references. Matches upstream PR; no lifecycle hooks.

  • apps/server/package.json: script typecheck removed

Packages added to pnpm-lock.yaml (1)

Review: Checked — #27866 (0fb6ac6e65) adds Pierre's @pierre/words tarball (apps/web/deps/pierre-words-0.2.2-t3.4-7c04b7f1.tgz, built from pingdotgg/pierre fork/t3-words) to replace remark in apps/web. Fork's @xyflow/react and elkjs dependencies remain intact.

  • @pierre/words@file:apps/web/deps/pierre-words-0.2.2-t3.4-7c04b7f1.tgz

Agent instructions (these steer our agents) (5)

Review: Checked — evals/pr-content/* adds Conventional Commits PR title test cases (#40571), and evals/thread-titles/run.ts wires FeatureFlags.layer (#40594). No production agent instructions changed. Matches upstream PRs.

  • evals/pr-content/grade.ts
  • evals/pr-content/README.md
  • evals/pr-content/run.test.ts
  • evals/pr-content/run.ts
  • evals/thread-titles/run.ts

Install and setup scripts, and git hooks (1)

Review: Checked — #27866 (0fb6ac6e65) extends .pnpmfile.cjs's existing fork-tarball patch guard from ["apps/mobile"] to ["apps/mobile", "apps/web"]. Matches upstream PR; no network calls or unexpected behavior.

  • .pnpmfile.cjs

Telemetry endpoints (1)

Review: Checked — #40594 (10586f9e31) replaces T3CODE_GITHUB_APP_CLIENT_ID with T3CODE_FEATURE_FLAGS in ShellEnvironmentPatch. No telemetry endpoints added or changed.

  • packages/contracts/src/resourceTelemetry.ts

Auth, policy and secrets code (7)

Review: Checked — #41005 (28706aceb6) adds RFC 7009 MCP token revocation (/oauth/mcp/revoke and EnvironmentAuth.revokeMcpClientToken) so unlinking an environment revokes its session on the peer; #40594 (10586f9e31) switches SecretRequestCard, SecretSourceInput, and _chat.settings.secrets from build-time isSecretsFeatureEnabled to hasFeatureFlag(config, "secretProviders"). Matches upstream PRs.

  • apps/server/src/auth/EnvironmentAuth.ts
  • apps/server/src/auth/McpOAuth.ts
  • apps/server/src/auth/mcpOAuthHttp.ts
  • apps/web/src/components/chat/SecretRequestCard.tsx
  • apps/web/src/components/settings/SecretSourceInput.tsx
  • apps/web/src/routes/_chat.settings.secrets.tsx
  • packages/contracts/src/auth.ts

Upstream ffb42a0b77..c00f1172ee: 136 commits.

Target: c00f117 was named with --to, so quarantine was not applied.

Land this with Create a merge commit. A squash merge would drop upstream's history from main.

Conflicts resolved (8)

4157f383f6 fix(web): send queued dictation to original thread after switching th… (pingdotgg#40553)

  • apps/web/src/components/chat/useComposerSend.ts

Kept upstream's promptAtSend (for detached dictation sends after switching threads) inside the fork's appendReplyAnnotations(composerDraftTarget, ...) wrapper and sentAnnotationCount read.

Resolution
diff --git a/apps/web/src/components/chat/useComposerSend.ts b/apps/web/src/components/chat/useComposerSend.ts
remerge CONFLICT (content): Merge conflict in apps/web/src/components/chat/useComposerSend.ts
index 163cb6ba84..abbef434ab 100644
--- a/apps/web/src/components/chat/useComposerSend.ts
+++ b/apps/web/src/components/chat/useComposerSend.ts
@@ -795,23 +795,15 @@ export function useComposerSend(input: ComposerSendInput) {
       });
     // A direct "send annotation" writes the draft and sends in the same tick; the reference
     // must be in the text now, not after the next render.
-<<<<<<< 9921a17d99 (Merge upstream through b70b9e3653 (2 commits))
     const sentAnnotationCount = readReplyAnnotations(composerDraftTarget).length;
     const draftPrompt = appendReplyAnnotations(
       composerDraftTarget,
       directAnnotation
-        ? ensureInlineContextReferences(promptRef.current, [
+        ? ensureInlineContextReferences(promptAtSend, [
             previewAnnotationContextReference(directAnnotation.annotation),
           ])
-        : promptRef.current,
+        : promptAtSend,
     );
-=======
-    const draftPrompt = directAnnotation
-      ? ensureInlineContextReferences(promptAtSend, [
-          previewAnnotationContextReference(directAnnotation.annotation),
-        ])
-      : promptAtSend;
->>>>>>> 4157f383f6 (fix(web): send queued dictation to original thread after switching th… (#40553))
     const replyTo =
       useComposerDraftStore.getState().getComposerDraft(composerDraftTarget)?.replyTo ?? null;
     const promptForSend = withReplyReference(draftPrompt, replyTo);

0fb6ac6e65 perf(web): Markdown renders with Words as static islands under one shared tooltip; remark leaves the web app (pingdotgg#27866)

  • apps/web/src/components/chat/MessagesTimeline.logic.ts

Kept the fork's LampTranscriptRow import alongside upstream's moved renderCodexDirectivesForCopy import from ~/markdown/markdownText.

Resolution
diff --git a/apps/web/src/components/chat/MessagesTimeline.logic.ts b/apps/web/src/components/chat/MessagesTimeline.logic.ts
remerge CONFLICT (content): Merge conflict in apps/web/src/components/chat/MessagesTimeline.logic.ts
index d85651c881..ad0844503f 100644
--- a/apps/web/src/components/chat/MessagesTimeline.logic.ts
+++ b/apps/web/src/components/chat/MessagesTimeline.logic.ts
@@ -14,12 +14,8 @@ import {
   IDLE_COMPACTION_TITLES,
 } from "@t3tools/client-runtime/user-message";
 import type { HandoffTimelineRun } from "@t3tools/client-runtime/handoff";
-<<<<<<< e8f4baa28c (Merge upstream through c5fa33b27e (31 commits))
 import type { LampTranscriptRow } from "../lamp/lampTranscript.logic";
-import { renderCodexDirectivesForCopy } from "@t3tools/shared/codexMarkdownDirectives";
-=======
 import { renderCodexDirectivesForCopy } from "~/markdown/markdownText";
->>>>>>> 0fb6ac6e65 (perf(web): Markdown renders with Words as static islands under one shared tooltip; remark leaves the web app (#27866))
 import {
   commandDisplayText,
   commandProgramName,

cd3a57ac72 feat(web): sidebar thread rows show the environment instead of the branch (pingdotgg#40736)

  • apps/web/src/components/sidebar/SidebarThreadRow.tsx

Took upstream's props.environmentLabel meta-line replacement for branch/scratch-machine display and kept the fork's startedByScheduledTaskId check and <StartedByAutomationLabel> branch ahead of it.

Resolution
diff --git a/apps/web/src/components/sidebar/SidebarThreadRow.tsx b/apps/web/src/components/sidebar/SidebarThreadRow.tsx
remerge CONFLICT (content): Merge conflict in apps/web/src/components/sidebar/SidebarThreadRow.tsx
index ecef5ec726..ec3beab85d 100644
--- a/apps/web/src/components/sidebar/SidebarThreadRow.tsx
+++ b/apps/web/src/components/sidebar/SidebarThreadRow.tsx
@@ -1263,36 +1263,20 @@ const SidebarThreadRow = memo(function SidebarThreadRow(props: SidebarThreadRowP
   const diff = latestRunDiff(thread);
   // Only the trailing icons would remain, so the row moves them to the title line instead.
   const metaLineEmpty =
-<<<<<<< b45cdfdff9 (Merge upstream through 426b5a6888 (14 commits))
     thread.startedByScheduledTaskId === undefined &&
-    !checkoutThread.branch &&
-    !showsScratchMachine &&
-=======
     props.environmentLabel === null &&
->>>>>>> cd3a57ac72 (feat(web): sidebar thread rows show the environment instead of the branch (#40736))
     prBadge === null &&
     issueBadge === null &&
     diff === null &&
     runningTerminalIds.length === 0;
   const metaLine = metaLineEmpty ? null : (
     <div className="mt-0.5 flex min-w-0 items-center gap-1.5 text-secondary-label text-xs">
-<<<<<<< b45cdfdff9 (Merge upstream through 426b5a6888 (14 commits))
       {thread.startedByScheduledTaskId !== undefined ? (
         <StartedByAutomationLabel
           environmentId={thread.environmentId}
           scheduledTaskId={thread.startedByScheduledTaskId}
         />
-      ) : checkoutThread.branch ? (
-        <>
-          <ThreadWorktreeIndicator thread={checkoutThread} />
-          <span className="flex min-w-0 flex-1">
-            <MiddleTruncate value={checkoutThread.branch} showTitle={false} />
-          </span>
-        </>
-      ) : showsScratchMachine ? (
-=======
-      {props.environmentLabel !== null ? (
->>>>>>> cd3a57ac72 (feat(web): sidebar thread rows show the environment instead of the branch (#40736))
+      ) : props.environmentLabel !== null ? (
         <>
           <EnvironmentMachineIcon
             aria-hidden

e3f9db2447 fix(server): TanStack Source pull requests open from every client, and private ones work end to end (pingdotgg#40741)

  • apps/server/src/provider/agentContextBudget.json

Took upstream's mcpToolListJsonBytes update (59052 -> 59192) while preserving the fork's claudeSystemAppendBytes (10577) and codexAdditionalContextBytes (11965).

Resolution
diff --git a/apps/server/src/provider/agentContextBudget.json b/apps/server/src/provider/agentContextBudget.json
remerge CONFLICT (content): Merge conflict in apps/server/src/provider/agentContextBudget.json
index 9e9a313be2..0c9898fc4e 100644
--- a/apps/server/src/provider/agentContextBudget.json
+++ b/apps/server/src/provider/agentContextBudget.json
@@ -1,11 +1,5 @@
 {
-<<<<<<< bdc114ce13 (Merge upstream through 15a3daa32a (2 commits))
   "claudeSystemAppendBytes": 10577,
   "codexAdditionalContextBytes": 11965,
-  "mcpToolListJsonBytes": 59052
-=======
-  "claudeSystemAppendBytes": 6245,
-  "codexAdditionalContextBytes": 7639,
   "mcpToolListJsonBytes": 59192
->>>>>>> e3f9db2447 (fix(server): TanStack Source pull requests open from every client, and private ones work end to end (#40741))
 }

a35b3ca9f0 fix(contracts): delegate_task options example says ids differ by provider (pingdotgg#40806)

  • apps/server/src/provider/agentContextBudget.json

Took upstream's mcpToolListJsonBytes update (59192 -> 59170) while preserving the fork's claudeSystemAppendBytes and codexAdditionalContextBytes.

Resolution
diff --git a/apps/server/src/provider/agentContextBudget.json b/apps/server/src/provider/agentContextBudget.json
remerge CONFLICT (content): Merge conflict in apps/server/src/provider/agentContextBudget.json
index 347114b697..1828296160 100644
--- a/apps/server/src/provider/agentContextBudget.json
+++ b/apps/server/src/provider/agentContextBudget.json
@@ -1,11 +1,5 @@
 {
-<<<<<<< 6e7d220663 (Merge upstream through aa0a8513aa (25 commits))
   "claudeSystemAppendBytes": 10577,
   "codexAdditionalContextBytes": 11965,
-  "mcpToolListJsonBytes": 59192
-=======
-  "claudeSystemAppendBytes": 6245,
-  "codexAdditionalContextBytes": 7639,
   "mcpToolListJsonBytes": 59170
->>>>>>> a35b3ca9f0 (fix(contracts): delegate_task options example says ids differ by provider (#40806))
 }

f2d0217058 fix(server): preserve cancellations during checkpoint capture (pingdotgg#31349)

  • apps/server/src/orchestration-v2/CheckpointCaptureService.ts

Kept both upstream's ThreadCommandExecutor import and the fork's isInboxThread import.

Resolution
diff --git a/apps/server/src/orchestration-v2/CheckpointCaptureService.ts b/apps/server/src/orchestration-v2/CheckpointCaptureService.ts
remerge CONFLICT (content): Merge conflict in apps/server/src/orchestration-v2/CheckpointCaptureService.ts
index e146eb7c20..9cccd0a5b5 100644
--- a/apps/server/src/orchestration-v2/CheckpointCaptureService.ts
+++ b/apps/server/src/orchestration-v2/CheckpointCaptureService.ts
@@ -21,11 +21,8 @@ import * as CheckpointService from "./CheckpointService.ts";
 import * as EventSink from "./EventSink.ts";
 import * as IdAllocator from "@t3tools/provider-core/server/IdAllocator";
 import * as ProjectionStore from "./ProjectionStore.ts";
-<<<<<<< 55d7586c3f (Merge upstream through 9f19a6ddf5 (3 commits))
-import { isInboxThread } from "../inboxAgent/inboxAgentThreads.ts";
-=======
 import * as ThreadCommandExecutor from "./ThreadCommandExecutor.ts";
->>>>>>> f2d0217058 (fix(server): preserve cancellations during checkpoint capture (#31349))
+import { isInboxThread } from "../inboxAgent/inboxAgentThreads.ts";
 
 // Git processes are already capped server-wide; this keeps one thread from taking every slot.
 const REPOSITORY_CAPTURE_CONCURRENCY = 6;

1e78f37618 fix(web): keep script-only drafts reachable in the sidebar (pingdotgg#25272)

  • apps/web/src/components/Sidebar.tsx

Kept upstream's expanded SidebarDraftBlock imports (draftTerminalLabel, useDraftTerminalLabels) alongside the fork's inboxAgent imports.

Resolution
diff --git a/apps/web/src/components/Sidebar.tsx b/apps/web/src/components/Sidebar.tsx
remerge CONFLICT (content): Merge conflict in apps/web/src/components/Sidebar.tsx
index fd93a8ea5b..820b8af167 100644
--- a/apps/web/src/components/Sidebar.tsx
+++ b/apps/web/src/components/Sidebar.tsx
@@ -269,8 +269,12 @@ import {
   type SidebarProviderEntry,
   type SidebarSweepAction,
 } from "./sidebar/SidebarThreadRow";
-<<<<<<< ce18cd365e (Merge upstream through 501e39d54a (15 commits))
-import { SidebarDraftBlock, useSidebarDrafts } from "./sidebar/SidebarDraftBlock";
+import {
+  draftTerminalLabel,
+  SidebarDraftBlock,
+  useDraftTerminalLabels,
+  useSidebarDrafts,
+} from "./sidebar/SidebarDraftBlock";
 import { SidebarFolderInboxRow } from "./inboxAgent/InboxSidebarRow";
 import { SidebarProjectsSection } from "./inboxAgent/SidebarProjectsSection";
 import { messageFromInbox, messageFromInboxPlan } from "./inboxAgent/messageFromInbox";
@@ -279,14 +283,6 @@ import {
   withMessageFromInboxItem,
 } from "./inboxAgent/messageFromInbox.logic";
 import { withoutInboxThreads } from "../state/inboxAgent.logic";
-=======
-import {
-  draftTerminalLabel,
-  SidebarDraftBlock,
-  useDraftTerminalLabels,
-  useSidebarDrafts,
-} from "./sidebar/SidebarDraftBlock";
->>>>>>> 1e78f37618 (fix(web): keep script-only drafts reachable in the sidebar (#25272))
 import {
   SidebarProjectFolderHeader,
   sidebarFolderRowId,

28706aceb6 fix(server): unlinking an environment ends its session on the other machine (pingdotgg#41005)

  • apps/server/src/provider/agentContextBudget.json

Took upstream's mcpToolListJsonBytes update (59170 -> 59168) while preserving the fork's claudeSystemAppendBytes and codexAdditionalContextBytes.

Resolution
diff --git a/apps/server/src/provider/agentContextBudget.json b/apps/server/src/provider/agentContextBudget.json
remerge CONFLICT (content): Merge conflict in apps/server/src/provider/agentContextBudget.json
index c0b3200360..2fb34759d8 100644
--- a/apps/server/src/provider/agentContextBudget.json
+++ b/apps/server/src/provider/agentContextBudget.json
@@ -1,11 +1,5 @@
 {
-<<<<<<< 7791be6cf9 (Merge upstream through 87554a7b86 (27 commits))
   "claudeSystemAppendBytes": 10577,
   "codexAdditionalContextBytes": 11965,
-  "mcpToolListJsonBytes": 59170
-=======
-  "claudeSystemAppendBytes": 6245,
-  "codexAdditionalContextBytes": 7639,
   "mcpToolListJsonBytes": 59168
->>>>>>> 28706aceb6 (fix(server): unlinking an environment ends its session on the other machine (#41005))
 }

Adaptations after merging (2)

  • 8eeeb80a02 — Adapted fork markdown extensions (QuestionRefLink, BackReferenceLink, boardIssueLinks) and question-card blockquotes (MarkdownQuestionQuote in ChatMarkdown.tsx) from removed remark/mdast/unified/extraRemarkPlugins to upstream #27866's @pierre/words HAST pipeline (MarkdownExtensions.hastTransforms and attachQuestionQuoteSources / dataQuestionSource island check in wordsHast.ts and ChatMarkdown.tsx). Updated corresponding unit tests and fork/README.md.
  • d9e4c39870 — Formatted boardIssueRefs.logic.ts and questionBlock.logic.ts to match vp check.

Upstream changes to files the fork has changed (50)

Verification

  • CI (d9e4c39870): All required and workflow checks passed — Check (required), Lint (including vp check, i18n:check, and GraphQL codegen checks), Build and Typecheck, Test, Test Server 1–8, Test Web 1–2 (including questionBlock.logic.test.ts, backReferences.logic.test.ts, boardIssueRefs.logic.test.ts, and MessagesTimeline.browser.test.tsx), Rust, Mobile Native Static Analysis, Release Smoke, Agent context budget (with agent-context-increase label for upstream's mcpToolListJsonBytes: 59052 -> 59168), and Cursor Bugbot. (Per .agents/skills/sync-upstream/SKILL.md, upstream code was not executed locally on a machine with credentials; verification ran on GitHub's CI runners.) Non-required CodeQL only reports pre-existing upstream regex/test findings, none in fork/adaptation files.
  • Read-only divergence checks: Verified AGENTS.md fork notice, ci.yml runner labels (ubuntu-24.04 / macos-26), productNamePlugin, manifest.webmanifest, FORK_DESKTOP.productName in runtimeInstructions.ts, T3Wordmark.tsx re-export, linear exit-code regex in toolOutput.ts, @xyflow/react & elkjs in apps/web/package.json, zero stale "running in T3 Code" replay fixtures, zero remaining mdast/unified/extraRemarkPlugins references in apps/web/src, no new workflow files added under .github/workflows/, and gh workflow list (only CI and Agent Context Budget plus GitHub built-ins active).
  • Non-conflicting upstream changes audited: Verified 7966f202ef (AntigravityAcpSupport.ts pre-approves T3_MCP_TOOL_NAMES, which includes fork MCP tools, while locked-agent permission gating in AntigravityAdapterV2.ts still runs first), 344de5fe8e & 5799b8af59 (AntigravityAdapterV2.ts / provider-acp orthogonal to locked-agent hooks), 10586f9e31 (T3CODE_FEATURE_FLAGS service wiring compatible with server.ts, ws.ts, DesktopApp.ts), and 0fb6ac6e65 (Words HAST migration adapted in 8eeeb80a02).

Synced with Gemini 4 Neon in 1001 Code (Antigravity harness).

StiensWout and others added 30 commits November 21, 2026 13:52
…gdotgg#40556)

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

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…e number, date, header and footer (pingdotgg#40568)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
…board guide (pingdotgg#37758)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…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>
juliusmarminge and others added 25 commits November 22, 2026 08:33
…as "1024.0 MiB" (pingdotgg#40952)

Co-authored-by: MarcoDotIO <20867620+MarcoDotIO@users.noreply.github.com>
…0951)

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

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

Co-authored-by: Grok 4.7 <noreply@x.ai>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#40945)

Co-authored-by: gemini-4-neon <me+ai@stefanmirea.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…41025)

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

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

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
Upstream: https://github.com/pingdotgg/t3code.git ffb42a0..c00f117

Conflicts resolved (8):
- 4157f38 fix(web): send queued dictation to original thread after switching th… (pingdotgg#40553)
    apps/web/src/components/chat/useComposerSend.ts
- 0fb6ac6 perf(web): Markdown renders with Words as static islands under one shared tooltip; remark leaves the web app (pingdotgg#27866)
    apps/web/src/components/chat/MessagesTimeline.logic.ts
- cd3a57a feat(web): sidebar thread rows show the environment instead of the branch (pingdotgg#40736)
    apps/web/src/components/sidebar/SidebarThreadRow.tsx
- e3f9db2 fix(server): TanStack Source pull requests open from every client, and private ones work end to end (pingdotgg#40741)
    apps/server/src/provider/agentContextBudget.json
- a35b3ca fix(contracts): delegate_task options example says ids differ by provider (pingdotgg#40806)
    apps/server/src/provider/agentContextBudget.json
- f2d0217 fix(server): preserve cancellations during checkpoint capture (pingdotgg#31349)
    apps/server/src/orchestration-v2/CheckpointCaptureService.ts
- 1e78f37 fix(web): keep script-only drafts reachable in the sidebar (pingdotgg#25272)
    apps/web/src/components/Sidebar.tsx
- 28706ac fix(server): unlinking an environment ends its session on the other machine (pingdotgg#41005)
    apps/server/src/provider/agentContextBudget.json

Upstream-Commit: c00f117
@cursor

cursor Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Touches desktop backend lifecycle, Linux CLI signal/shutdown behavior, WSL detection, and broad mobile threading/media flows; feature-flag wiring affects server behavior but is mostly UX and env forwarding.

Overview
This sync lands 136 upstream commits, spanning infrastructure guards, desktop bootstrap, and a large mobile polish pass.

Desktop & tooling extends .pnpmfile.cjs fork-patch blocking to apps/web as well as mobile. T3CODE_FEATURE_FLAGS replaces scattered env vars (including WSL forwarding): the desktop app restarts the local backend when shell discovery reports changed flags, since the server reads them only at start. The AppImage CLI shim is reworked for systemd/process-group signals, FUSE unmount on exit, and stdin forwarding. WSL availability now requires a registered WSLService / LxssManager registry key, not just System32\wsl.exe.

Mobile adds private PR affordances, tappable issue activity cross-links, and linked-thread “Load earlier” error UI. Thread feed scrolling uses maintainScrollAtEndThreshold: 0 so pulling history does not snap back to the end (with tests against the patched LegendList). Android image preview aborts in-flight share/save when swiping pages; incoming shares persist resized images to durable files. Composers refresh git branches on focus, clean up attachment files on sheet unmount, and avoid display: none on iOS editors during dictation. Secrets/cloud voice gating moves from build-time flags to hasFeatureFlag(..., "secretProviders").

Smaller edits include removing withPathDirectoryListings from remote editor probing, queue-row plain text via composerFileLinksToPlainText, legacy model search without “Show legacy”, assistantInsights line-break preservation helper, and a bumped mcpToolListJsonBytes budget snapshot.

Reviewed by Cursor Bugbot for commit d9e4c39. Bugbot is set up for automated code reviews on this repo. Configure here.

@mfituri mfituri added the agent-context-increase Raises the agent instruction budget label Nov 22, 2026
@mfituri
mfituri merged commit abebf7b into main Nov 22, 2026
42 of 45 checks passed
@mfituri
mfituri deleted the sync/upstream-20261122 branch November 22, 2026 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-context-increase Raises the agent instruction budget

Projects

None yet

Development

Successfully merging this pull request may close these issues.