Skip to content

sync: upstream through 9563012455 (268 commits) - #148

Merged
mfituri merged 272 commits into
mainfrom
t3/sync-upstream-nov-22-24
Nov 27, 2026
Merged

mfituri merged 272 commits into
mainfrom
t3/sync-upstream-nov-22-24

Conversation

@mfituri

@mfituri mfituri commented Nov 27, 2026 •

Copy link
Copy Markdown

Sensitive changes (44)

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 (2)

CI workflows and actions (2)

Agent instructions (these steer our agents) (25)

Show all
  • .agents/skills/launch-video/assets/kit.js
  • .agents/skills/launch-video/scripts/fake-claude.mjs
  • .agents/skills/launch-video/scripts/snapshot.mjs
  • .agents/skills/launch-video/scripts/stage-env.mjs
  • .agents/skills/launch-video/SKILL.md
  • .agents/skills/launch-video/stagings/linked-environments/serve.mjs
  • .agents/skills/test-t3-app/SKILL.md
  • .agents/skills/test-t3-mobile/SKILL.md
  • AGENTS.md
  • evals/mcp-tool-use/cases/agent-feedback.ndjson
  • evals/mcp-tool-use/run.ts
  • evals/package.json
  • evals/README.md
  • evals/test-signal/run.ts
  • evals/workflow-authoring/cases.ts
  • evals/workflow-authoring/fixtures/globals.d.ts
  • evals/workflow-authoring/fixtures/replay-keeps-in-a-module.ts
  • evals/workflow-authoring/fixtures/replay-keeps-what-it-read.ts
  • evals/workflow-authoring/fixtures/replay-reads-outside-a-step.ts
  • evals/workflow-authoring/fixtures/scheduled-agent-then-approval.ts
  • evals/workflow-authoring/fixtures/webhook-filter-and-dedupe.ts
  • evals/workflow-authoring/grade.ts
  • evals/workflow-authoring/README.md
  • evals/workflow-authoring/run.test.ts
  • evals/workflow-authoring/run.ts

Dockerfiles and dev containers (2)

Update and release URLs (1)

Telemetry endpoints (7)

Auth, policy and secrets code (5)


Upstream c00f1172ee..9563012455: 268 commits.

Target: 9563012455 is the newest upstream commit at least 3 days old (committed 2026-11-24 00:02 UTC) whose Check passed on the branch (run started 2026-11-24 00:02 UTC). Skipped newer commits: 859 committed less than 3 days ago.

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

Board task: COD-193

Conflicts resolved (16)

  1. fe9c98c98f feat: agents can report T3 Code problems when you turn feedback on (feat: agents can report T3 Code problems when you turn feedback on pingdotgg/t3code#35871) (ClaudeAdapterV2.ts, agentContextBudget.json, TimelineV2EventRow.tsx, evals/mcp-tool-use/run.ts, runtimeInstructions.test.ts, runtimeInstructions.ts)
    Kept upstream's agentFeedback plumbing, FeedbackRequestCard, AGENT_FEEDBACK_INSTRUCTIONS, and updated mcpToolListJsonBytes (60374), while keeping fork's unlockedQueryOptions, fork instruction budgets, MemoryProposalCard/BoardTaskCard, FORK_DESKTOP.productName + question-card/reply-marker/back-reference/live-app-checkout instructions, and eval board/memory parameters.

  2. fb23f12f1f feat(server): outside agents poll and stream milestones as MCP events (feat(server): outside agents poll and stream milestones as MCP events pingdotgg/t3code#40774) (McpHttpServer.ts, pnpm-lock.yaml)
    Kept upstream's layerMilestoneEvents alongside fork's MemoryToolkit, BoardToolkit, VoiceAgentToolkit, InboxAgentToolkit, and layerLockedAgentToolGate. Took upstream's pnpm-lock.yaml during merge and restored fork's @xyflow/react, elkjs, and koffi entries in a credential-free container (--lockfile-only --ignore-scripts --ignore-pnpmfile) in follow-up commit 790540c959.

  3. e414cfd4be feat(server): durable workflows (feat(server): durable workflows pingdotgg/t3code#38882) (ThreadManagementService.ts, agentContextBudget.json, server.ts, orchestrationV2.ts)
    Kept upstream's workflowRun/workflowStep provenance/lineage fields, WorkflowForge.layer, and updated mcpToolListJsonBytes (61724), while preserving fork's voiceAgent/voiceAgentOf fields, MemoryLayer.layerForOrchestration, and fork instruction byte budgets.

  4. 69c1d53826 feat: workflows on web and mobile (feat: workflows on web and mobile pingdotgg/t3code#38884) (apps/web/src/components/sidebar/mainAppLocation.ts)
    Kept both upstream's "/workflows" and fork's "/questions" in isSidebarUtilityPage.

  5. cbf4ea7ddc fix(web): shift-scroll and horizontal scrollers no longer navigate history (fix(web): shift-scroll and horizontal scrollers no longer navigate history pingdotgg/t3code#41264) (apps/web/src/components/HistorySwipeNavigation.tsx)
    Kept upstream's preview surface selectors in lockSwipeAxis while preserving fork's [data-pane-strip] selector.

  6. 58e309e75b fix(acp): deliver appContext on startTurn and steerTurn (fix(acp): deliver appContext on startTurn and steerTurn pingdotgg/t3code#41241) (packages/provider-acp/src/server/adapter.ts)
    Kept upstream's deliveredContext / appContextEntries computation while keeping fork's lockedPrompt ?? t3AcpPromptWithInstructions(...) prompt construction below it.

  7. f9f34aab78 fix(web): start without WebAssembly by initialising Words in a guard (fix(web): start without WebAssembly by initialising Words in a guard pingdotgg/t3code#41361) (apps/web/tsconfig.json)
    Kept both upstream's @pierre/words/core / @pierre/words/wasm paths and fork's @1001-private/lamp / @1001-private/wordmark paths.

  8. 92199680cc fix(web): hide Mark unread on threads with no completed run (fix(web): hide Mark unread on threads with no completed run pingdotgg/t3code#41365) (apps/web/src/hooks/useThreadActionMenu.ts)
    Kept fork's canOperate + withInboxResetMenuItem wrapper around buildThreadActionMenuItems and added upstream's hasCompletedRun field.

  9. 962bda2eb7 test(web): open history documents without reloading the app in iframes (test(web): open history documents without reloading the app in iframes pingdotgg/t3code#41489) (apps/web/src/browserHistoryStore.browser.test.ts)
    Took upstream's version: upstream replaced srcdoc iframes with fresh dynamic module imports so the fork's { timeout: 30_000 } workaround for slow CI iframe reloads is no longer needed (per fork/README.md).

  10. e166aa1db1 fix(desktop): swiping sideways over a confirmation dialog no longer goes back or forward (fix(desktop): swiping sideways over a confirmation dialog no longer goes back or forward pingdotgg/t3code#41579) (apps/web/src/components/HistorySwipeNavigation.tsx)
    Kept upstream's [role="alertdialog"] and preview surface selectors alongside fork's [data-pane-strip] selector in lockSwipeAxis.

  11. 4ab87289ac fix(server): recover dropped T3 MCP tool results in ACP and OpenCode Code Mode (fix(server): recover dropped T3 MCP tool results in ACP and OpenCode Code Mode pingdotgg/t3code#41552) (packages/shared/src/toolOutput.ts)
    Kept both fork's readToolResultData and upstream's compactT3McpToolOutput.

  12. 521262ecf9 test(scenarios): sign in with a session cookie instead of the pair page (test(scenarios): sign in with a session cookie instead of the pair page pingdotgg/t3code#38561) (scripts/scenarios/t3.ts)
    Kept upstream's Cookies and value HttpClientError imports from "effect/http" alongside fork's type imports (ChildProcessSpawner, RpcClientError, RpcGroup, Scope) for rpcClient's TS7056 return annotation.

  13. cdb0e238ed fix(web): keyboard-opened context menus start on their first action (fix(web): keyboard-opened context menus start on their first action pingdotgg/t3code#41674) (apps/web/src/hooks/useThreadActionMenu.ts)
    Kept fork's canOperate + withInboxResetMenuItem wrapper and passed upstream's source argument to api.contextMenu.show(items, position, source).

  14. 1c6d41a9ba feat(web,mobile): remove the changed-files card under assistant turns (feat(web,mobile): remove the changed-files card under assistant turns pingdotgg/t3code#41317) (apps/web/src/components/chat/TimelineAssistantRows.tsx)
    Took upstream's removal of AssistantChangedFilesSection and its VCS atom imports while keeping fork's ExchangeThread, MessageContextMenu, splitReLines/textAfterReLines, and {messageMenu.menu} render.

  15. 238881669a fix(settlement): agent/CLI sends reopen settled threads (fix(settlement): agent/CLI sends reopen settled threads pingdotgg/t3code#33995) (apps/server/src/orchestration-v2/ProjectionStore.ts)
    Kept both fork's AND NOT ${questionDismissalMessageSql(sql, "message")} filter and upstream's user-or-MCP-agent resuming-message condition.

  16. 844d491ff8 fix: local helper services start with credentials and report their own readiness (fix: local helper services start with credentials and report their own readiness pingdotgg/t3code#41752) (apps/desktop/src/backend/DesktopLocalEnvironmentAuth.ts)
    Took upstream's primary.waitForReady(Duration.infinity) readiness check around bootstrapRemoteBearerSession while keeping fork's label: "1001 Code Desktop".

Adaptations after merging (3)

  • 790540c959 chore: restore fork packages in pnpm-lock.yaml — regenerated in a credential-free node:22-slim container (pnpm@12.14.0 install --lockfile-only --ignore-scripts --ignore-pnpmfile) across all 44 workspace manifests so pnpm-lock.yaml lists @xyflow/react, elkjs, and apps/server's koffi again (+195/-0 lines) while keeping upstream's pnpmfileChecksum.
  • 8cdb85bbbf fix(web): restore ComboboxItem import in Sidebar for upstream Add project row — upstream #33057 added a <ComboboxItem> for ADD_PROJECT_SCOPE_ITEM_VALUE; restored the import in apps/web/src/components/Sidebar.tsx.
  • 4e409a08c4 fix(server): check settlement.latestResumingMessageAt in openQuestions test — upstream #33995 renamed ProjectionSettlementCandidate.latestUserAuthoredMessageAt to latestResumingMessageAt.

Verification

  • CI on 4e409a08c4 — all green: Check (required), Agent context budget (with agent-context-increase label for upstream #35871/#38882 MCP tools), Lint, Build and Typecheck, Test, Test Server 1–8, Test Web 1–2, Rust, Mobile Native Static Analysis, Release Smoke, and Changes all passed.
  • Read-only fork/README.md divergence checks (grep / git grep): confirmed AGENTS.md fork notice, .github/workflows/ci.yml runners (ubuntu-24.04 / macos-26 only), productNamePlugin & manifest.webmanifest, FORK_DESKTOP.productName in runtimeInstructions.ts, no "running in T3 Code" in replay fixtures, @1001-private/wordmark, ComposerStatusStrip / ThreadCost / readAccountRecords hooks, sendKeepsReaderPlace / scrollOnSend, ProjectScopeReorderList, withForkT3McpToolLabels, withBoardTaskChange / BoardTaskCard, withThreadAutoCompactOption, addForkRetainedAssistantReplyEntryIds / final_answer, [data-pane-strip] in HistorySwipeNavigation.tsx, and "1001 Code Desktop" in DesktopLocalEnvironmentAuth.ts.
  • Sensitive changes & workflows: audited all 44 sensitive changes against their upstream PRs; confirmed no new workflow files were added under .github/workflows/ and only CI, Agent Context Budget, Dependency Graph, and CodeQL are active on 1001-ai/1001-code.
  • Cleanly merged fork-touched files audited: reviewed upstream changes in UsageService.ts, MessagesTimeline.logic.ts, ChatView.tsx, ws.test.ts, Sidebar.tsx, ProjectScopeReorder.tsx, routeTree.gen.ts, and AntigravityUsage.ts / antigravityUsageReader.ts.

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

juliusmarminge and others added 30 commits November 22, 2026 15:46
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#41116)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…gg#41122)

Co-authored-by: Julius Marminge <julius0216@outlook.com>
… reject Desktop with 403 (pingdotgg#41092)

Co-authored-by: Amp <amp@ampcode.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ngdotgg#41157)

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>
…gg#39097)

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
…gg#39478)

Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
…eadKey (pingdotgg#41143)

Co-authored-by: Isaac-b-ux <264455269+Isaac-b-ux@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…g#25537)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…gdotgg#41168)

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

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

Co-authored-by: MarcoDotIO <20867620+MarcoDotIO@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…repository (pingdotgg#41177)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…real checkout (pingdotgg#41192)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
juliusmarminge and others added 23 commits November 23, 2026 15:18
)

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

Co-authored-by: only21mil <263261067+only21mil@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…tamp (pingdotgg#41743)

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

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

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

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

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…out (pingdotgg#41742)

Getting a link code through a linked environment now requires the scopes
of the access level requested, and creating a guest link requires
orchestration:read, in addition to access:write. The link dialog offers
linking through another environment only when the session holds them.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ans stay linear (pingdotgg#41747)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…n readiness (pingdotgg#41752)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ts directly (pingdotgg#41753)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…ader (pingdotgg#41756)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…gdotgg#41737)

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

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

Co-authored-by: maria-rcks <maria@kuuro.net>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Upstream: https://github.com/pingdotgg/t3code.git c00f117..9563012

Conflicts resolved (16):
- fe9c98c feat: agents can report T3 Code problems when you turn feedback on (pingdotgg#35871)
    apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.ts
    apps/server/src/provider/agentContextBudget.json
    apps/web/src/components/chat/TimelineV2EventRow.tsx
    evals/mcp-tool-use/run.ts
    packages/provider-core/src/server/runtimeInstructions.test.ts
    packages/provider-core/src/server/runtimeInstructions.ts
- fb23f12 feat(server): outside agents poll and stream milestones as MCP events (pingdotgg#40774)
    apps/server/src/mcp/McpHttpServer.ts
    pnpm-lock.yaml
- e414cfd feat(server): durable workflows (pingdotgg#38882)
    apps/server/src/orchestration-v2/ThreadManagementService.ts
    apps/server/src/provider/agentContextBudget.json
    apps/server/src/server.ts
    packages/contracts/src/orchestrationV2.ts
- 69c1d53 feat: workflows on web and mobile (pingdotgg#38884)
    apps/web/src/components/sidebar/mainAppLocation.ts
- cbf4ea7 fix(web): shift-scroll and horizontal scrollers no longer navigate history (pingdotgg#41264)
    apps/web/src/components/HistorySwipeNavigation.tsx
- 58e309e fix(acp): deliver appContext on startTurn and steerTurn (pingdotgg#41241)
    packages/provider-acp/src/server/adapter.ts
- f9f34aa fix(web): start without WebAssembly by initialising Words in a guard (pingdotgg#41361)
    apps/web/tsconfig.json
- 9219968 fix(web): hide Mark unread on threads with no completed run (pingdotgg#41365)
    apps/web/src/hooks/useThreadActionMenu.ts
- 962bda2 test(web): open history documents without reloading the app in iframes (pingdotgg#41489)
    apps/web/src/browserHistoryStore.browser.test.ts
- e166aa1 fix(desktop): swiping sideways over a confirmation dialog no longer goes back or forward (pingdotgg#41579)
    apps/web/src/components/HistorySwipeNavigation.tsx
- 4ab8728 fix(server): recover dropped T3 MCP tool results in ACP and OpenCode Code Mode (pingdotgg#41552)
    packages/shared/src/toolOutput.ts
- 521262e test(scenarios): sign in with a session cookie instead of the pair page (pingdotgg#38561)
    scripts/scenarios/t3.ts
- cdb0e23 fix(web): keyboard-opened context menus start on their first action (pingdotgg#41674)
    apps/web/src/hooks/useThreadActionMenu.ts
- 1c6d41a feat(web,mobile): remove the changed-files card under assistant turns (pingdotgg#41317)
    apps/web/src/components/chat/TimelineAssistantRows.tsx
- 2388816 fix(settlement): agent/CLI sends reopen settled threads (pingdotgg#33995)
    apps/server/src/orchestration-v2/ProjectionStore.ts
- 844d491 fix: local helper services start with credentials and report their own readiness (pingdotgg#41752)
    apps/desktop/src/backend/DesktopLocalEnvironmentAuth.ts

Upstream-Commit: 9563012
Regenerated in a credential-free node:22-slim container using
pnpm@12.14.0 --lockfile-only --ignore-scripts --ignore-pnpmfile across all
44 workspace manifests so the lockfile includes the fork's @xyflow/react,
elkjs, and apps/server koffi entries while keeping upstream's pnpmfileChecksum.
@cursor

cursor Bot commented Nov 27, 2026

Copy link
Copy Markdown

This PR is too large for Bugbot to review. It changes 49,994 lines and 3,790,129 characters. Split the change into smaller pull requests to get a review.

@mfituri mfituri added the agent-context-increase Raises the agent instruction budget label Nov 27, 2026
Comment thread packages/shared/src/markdownChunks.ts Dismissed
Comment thread packages/client-runtime/src/workflows.ts Dismissed
Comment thread packages/shared/src/mcpApp.ts Dismissed
@mfituri
mfituri merged commit a2f6b5f into main Nov 27, 2026
26 of 27 checks passed
@mfituri
mfituri deleted the t3/sync-upstream-nov-22-24 branch November 27, 2026 03:31
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.