Skip to content

chore: sync upstream main 680152e (取代 #30) - #31

Merged
Hylouis233 merged 222 commits into
mainfrom
chore/upstream-sync-20261021
Oct 21, 2026
Merged

Hylouis233 merged 222 commits into
mainfrom
chore/upstream-sync-20261021

Conversation

@Hylouis233

Copy link
Copy Markdown
Owner

上游同步:pingdotgg/t3code main 680152e27b

取代 #30
关联 #30

冲突文件与解决方式

总原则:上游在 pingdotgg#22557(delete 11k low-signal tests)里删掉的测试按上游删除;fork 自己加的测试(不在 merge base 8866e8f 里的)保留,并按新代码调整。

工作流 / 配置

  • .github/workflows/ci.yml:保留 fork 的 voidzero-dev/setup-vp@v1 安装方式、lint provenance 和 PR Gate 结构,不引入上游的 setup-ci-deps / Electron cache / build 拆分;加入上游新增的 “Check generated Expo GraphQL operations” 步骤,release checks 步骤加上 vercel-deployment-output.test.cjs;test_web 注释合并。
  • .github/workflows/release.yml:在 fork 的 github.repository == 'pingdotgg/t3code' guard 上叠加上游改动(test_server 改用 4vcpu runner 并分 8 个 shard、release 的 needs 里加 test_web)。上游新增的 test_web job 也加了同样的 guard。所有 workflow 都检查过,没有重复的 if: 键。
  • .github/workflows/cursor-hygiene-webhook.yml:上游已删除,按上游删除(fork 只给它加过 repository guard)。
  • knip.jsonc:合并双方 entry:fork 的 opent3code-preview.mjs,加上游的 sign-macos.ts、verify-windows-desktop-artifact.ts 和 ignoreDependencies: ["esbuild"]。
  • apps/server/src/provider/model-manifest.json:自动合并成功,fork 的协议标签保持不变:opencode >=0.0.42 <0.0.46 = 1(OpenCode V1),opencode >=0.0.46 = 2,pi >=0.0.46 = 2。

测试(保留 fork 测试,其余按上游删除)

  • apps/server/src/provider/providerCompatibility.test.ts:保留 mcode/dsh 独立性、V2 source runtime、test: guard fork-only orchestrationProtocolVersion tags in bundled model manifest #28 manifest 协议标签 guard(keeps fork-only protocol tags…)、untagged 回退这几个测试;恢复它们用到的 V2_RELEASE 常量。上游删掉的 Homebrew / bundled-policy / supports-every-driver 测试按上游删除。
  • apps/server/src/provider/ModelManifest.test.ts:上游删除的 compatibility 缓存测试按上游删除。
  • apps/server/src/orchestration-v2/ProviderSessionManager.test.ts:保留 fork 的 “retries exhausted roster conflicts without removing new tasks”,其余冲突块按上游删除。
  • apps/server/src/orchestration-v2/legacy/LegacyV1ThreadImporter.test.ts:保留 fork 的 mcode/dsh provider selection 导入测试和它用到的 Schema import,按上游删除不再使用的 Tracer import。
  • apps/server/src/orchestration-v2/RuntimeRequestService.test.ts:上游保留的测试仍需要 fork 的 ProviderEventIngestor lifetime mock,所以补回 unusedLifetimeMethods helper。
  • apps/server/src/orchestration-v2/ProviderEventIngestor.test.ts:按上游删除冲突块,补回仍在使用的 ProviderSessionId import。
  • RunExecutionService.test.ts、ThreadManagementService.test.ts、ProviderRuntimeRecoveryService.test.ts、apps/mobile/.../shikiReviewHighlighter.test.ts:冲突块都是上游已删的测试(fork 只做过小改动),按上游删除。
  • packages/contracts/src/orchestrationV2.test.ts:保留 fork 的 mcode/dsh native resume round-trip 测试。
  • packages/client-runtime/src/connection/resolver.test.ts:保留 fork 的两个 prepareForUpdate 测试(identity check / authorization 失败),补回 RelayConnectionTarget import。
  • apps/web/src/components/settings/ProviderSettingsForm.test.ts:保留 fork 的 mcode/dsh instance-only 测试。
  • apps/web/src/components/ServerUpdateAction.browser.test.tsx:采用上游版本,并把 fork 的 OutdatedServerUpdateAction 测试组改用上游的 setup() / await using screen = await renderUpdate(...) / click(screen, …)。
  • apps/web/src/components/settings/ProjectFaviconPickerDialog.browser.test.tsx:上游删除了整个文件,但这里有 fork test(web): fix flaky ProjectFaviconPickerDialog preview test races #29 的 favicon picker 稳定性修复,所以保留,并改用 apps/web/test/render.tsx 的 render / act / stubGlobal 和 using(满足上游新增的 require-disposable-render、no-wall-clock-in-tests 规则)。test(web): fix flaky ProjectFaviconPickerDialog preview test races #29 的修复本身(Atom.keepAlive、合并的 loaded-state poll)保留不变,预览 URL 的过期时间改为固定 epoch。
  • apps/web/src/components/desktopUpdate.toast.test.tsx、apps/web/src/components/sidebar/SidebarUpdateReleaseNotes.test.tsx、apps/server/src/orchestration-v2/testkit/ProviderTurnStartMemory.fixture.mjs:上游已删除(fork 只做过 release 仓库或 lifetime 的适配),按上游删除。这个 fixture 唯一的使用者 ProviderTurnStartService.memory.test.ts 也已经被上游删除。

额外提交

无。所有改动都在 merge commit 4eeef386d4 里。

本地验证(Node v24.22.0,repo 自带的 node_modules/.bin/vp v5.0.5)

依赖:vp install --frozen-lockfile(lockfile 校验通过)

命令(目录) 结果
vp test run src/provider/providerCompatibility.test.ts -t "keeps fork-only protocol tags"(apps/server) ✅ 1 passed / 12 skipped(#28 guard)
vp test run src/provider/providerCompatibility.test.ts src/provider/ModelManifest.test.ts(apps/server) ✅ 2 files,19 passed
vp test run src/provider/providerMaintenanceRunner(apps/server) ✅ 1 file,18 passed
vp test run src/orchestration-v2(apps/server,非 browser) ✅ 108 files,1602 passed
vp test run --config ../../vite.config.ts --dir . src/orchestrationV2.test.ts(packages/contracts) ✅ 13 passed
vp test run src/connection/resolver.test.ts(packages/client-runtime) ✅ 8 passed
vp test run --config ../vite.config.ts --dir .(scripts) ⚠️ 20 个文件中 19 个通过;159 个测试中 156 个通过,3 个失败(见下)
node --test .github/scripts/check-nightly-release.test.cjs .github/scripts/vercel-deployment-output.test.cjs .github/scripts/opent3code-source-integrity.test.cjs ✅ 37 passed
node .github/scripts/opent3code-source-integrity.cjs --placeholder-only origin/main HEAD ✅ passed
vp lint(所有冲突解决的 ts/tsx 文件) ✅ 无告警

scripts 失败说明:build-desktop-artifact.test.ts 的 3 个 sidecar probe 测试报 “/node_modules is visible from the probe directory”。原因是本地 box 根目录有一个 root 拥有的 /node_modules,这是环境问题,不是本次同步引入的。scripts/build-desktop-artifact*.ts 与上游 680152e 完全一致,origin/main a4de20b 也有同样的检查,CI runner 上没有 /node_modules。

未验证(交 PR Gate)

  • typecheck(含 server typecheck):未验证(交 PR Gate)
  • browser 测试(*.browser.test.tsx,包括 ServerUpdateAction 和 ProjectFaviconPickerDialog 的改写):未验证(交 PR Gate)
  • 其他未列出的包测试、knip、全量 vp check:未验证(交 PR Gate)

tonyjosephsebastians and others added 30 commits October 19, 2026 23:08
…#19201)

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>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: SAPHID <saphid@users.noreply.github.com>
Co-authored-by: GPT-6.1 Sol <noreply@openai.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ws (pingdotgg#20415)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ecks off (pingdotgg#19581)

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…macOS app (pingdotgg#22170)

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
…dow resize (pingdotgg#22176)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ow to fix it (pingdotgg#22171)

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…g thread (pingdotgg#19292)

Co-authored-by: PR Batch Tester <agent@local.test>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…files included (pingdotgg#22180)

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

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

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

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ed files (pingdotgg#22189)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ing and scrolling (pingdotgg#22131)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
t3dotgg and others added 18 commits October 21, 2026 03:36
… setting (pingdotgg#22841)

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: GPT-6.1 Sol <noreply@openai.com>
…s AGENTS.md (pingdotgg#22848)

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

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…t found" (pingdotgg#22850)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…t for 3 minutes (pingdotgg#22903)

On desktop, an abandoned browser sign-in blocked every T3 Connect sign-in for 3 minutes. A new attempt now replaces the stale Clerk flow, and a Cancel bar resets the sheet. Takeover of pingdotgg#22708.

Co-authored-by: steve-ai-vibe <steve.ai.vibe@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…character catalog dump (pingdotgg#22889)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Follow upstream's test deletions (pingdotgg#22557) while keeping fork-only tests:
mcode/dsh coverage, the OpenCode/Pi orchestration protocol tag guard,
runtime-lifetime mocks, the exhausted roster conflict test, and the
ProjectFaviconPickerDialog preview fix ported to the disposable render
helper. Fork CI keeps setup-vp, and the new release test_web job gets
the upstream-only repository guard.
Copilot AI balanced review requested due to automatic review settings October 21, 2026 16:35

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 reached their quota limit.

@github-actions github-actions Bot added vouch:trusted Author has write access or is explicitly trusted by OpenT3Code. size:XXL 1,000+ effective changed lines. 📱 Native Change Native fingerprint changed; a new native build is required for compatible OTA updates. labels Oct 21, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T17:43:23.799302Z e37d4dd New commits
ℹ️ 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.

@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB −7 B (−0.1%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB −7 B (−0.6%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 20.9 KiB 20.9 KiB 0 B (0.0%) 29.3 KiB ✅
Codex Live turn messages 2 2 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB −7 B (−0.1%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB −7 B (−0.6%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.2 KiB 21.2 KiB 0 B (0.0%) 29.3 KiB ✅
Claude Live turn messages 2 2 0 (0.0%) 8 ✅

Baseline: a4de20b · PR result: e37d4dd · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

Upstream deleted .github/workflows/cursor-hygiene-webhook.yml in 3e250a8,
but the fork-only maintenance test in .github/scripts/opent3code-release.test.cjs
still asserts its job-level upstream identity boundary. Restore the file from
fork main a4de20b so the OpenT3Code Maintenance gate passes.
@Hylouis233
Hylouis233 merged commit b001e93 into main Oct 21, 2026
19 checks passed
Hylouis233 added a commit that referenced this pull request Oct 21, 2026
chore: sync upstream main 0bdf33a; drop cursor-hygiene-webhook (关联 #31)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📱 Native Change Native fingerprint changed; a new native build is required for compatible OTA updates. size:XXL 1,000+ effective changed lines. vouch:trusted Author has write access or is explicitly trusted by OpenT3Code.

Projects

None yet

Development

Successfully merging this pull request may close these issues.