Repository navigation
chore: sync upstream pingdotgg/t3code main (8866e8f) — 取代 #26 - #27
Merged
Merged
Conversation
…pingdotgg#22105) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ngdotgg#21851) Co-authored-by: Theo Browne <me@t3.gg>
…otgg#22088) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…rate limits (pingdotgg#22059) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Wout Stiens <71498452+StiensWout@users.noreply.github.com>
Co-authored-by: shivam <91240327+shivamhwp@users.noreply.github.com>
…on (pingdotgg#19483) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ingdotgg#19239) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…#19923) Co-authored-by: Rohan Patnaik <rohan-patnaik@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…s under the nav bar (pingdotgg#19980) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#19145) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…9791) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#19733) Co-authored-by: Cestercian <183791452+cestercian@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…9550) Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#19745) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ngdotgg#19590) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…stale (pingdotgg#20388) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ngdotgg#18324) Co-authored-by: Julius Marminge <julius0216@outlook.com>
… deleting it (pingdotgg#18786) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…nt (pingdotgg#15995) Co-authored-by: AskPlays <adrian.skalevag@online.no> Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ot (pingdotgg#18885) Co-authored-by: PR Batch Tester <agent@local.test> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…ovals (pingdotgg#15464) Co-authored-by: Julius Marminge <51714798+juliusmarminge@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
pingdotgg#18322) Co-authored-by: Julius Marminge <julius0216@outlook.com>
Co-authored-by: Julius Marminge <julius0216@outlook.com>
…odel (pingdotgg#20413) 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>
Co-authored-by: Julius Marminge <julius0216@outlook.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…22152) Co-authored-by: Julius Marminge <julius@marminge.se> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
…st comments (pingdotgg#20894) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…pingdotgg#15036) Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Co-authored-by: SAPHID <saphid@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…#19796) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…gdotgg#20886) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…otgg#18392) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…g#14859) Co-authored-by: maria-rcks <254055478+maria-rcks@users.noreply.github.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…any resize (pingdotgg#22154) Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ly running (pingdotgg#15672) Co-authored-by: Julius Marminge <julius0216@outlook.com>
…9646) Co-authored-by: GPT-6.1-Sol at high effort <noreply@openai.com> Co-authored-by: Claude Opus 5.5, independent investigation and sanity review <noreply@anthropic.com> Co-authored-by: Julius Marminge <julius0216@outlook.com>
…fetime The upstream test calls ingestNormalized on the raw ingestor. On the fork every ingest needs an active runtime lifetime, so it uses the testIngestor helper like the surrounding tests.
Upstream's prefer-effect-fn lint rule now rejects arrow functions that return Effect.gen. Convert the fork-only helpers (runtime lifetime release, request lookups, external ACP adapter and driver) to Effect.fn; per-event ingest and publish paths use Effect.fnUntraced as upstream does.
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: Scenario and decoded snapshot size10 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.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
…scoping Upstream now refreshes providers after an update through refreshAfterUpdate, so the fork-only OpenCode 2 untagged-policy test must stub that hook instead of refreshInstance to observe the installed version. The fork scopes OpenCode compatibility policies to the orchestration protocol version, so untagged policies are ignored and the bundled one wins. Tag the policy in the upstream targeted-update fixture so it is selected, matching the default test manifest.
This was referenced Oct 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
上游同步:把 pingdotgg/t3code main
8866e8fdcf(fetch 时最新)合进 fork main9c9938b033。用 merge,不 rebase,取代 #26(#26 基于4af66184ef,且与 fork main 冲突)。185dcb3786:合 8866e8f;9 个文件冲突,另有 5 处自动合并后需要修(见下方第二张表)ac9d5448e1:上游新增的 Claude 子线程恢复测试改用 fork 的testIngestor(fork 的每次 ingest 都需要一个 active runtime lifetime)52274d410f:上游新增 lint 规则t3code(prefer-effect-fn),fork 独有的 29 处(…) => Effect.gen(…)改成Effect.fn("模块.名称");每个事件都走的路径(ingestNormalized、publish、ExternalAcp consume/publishItem)按上游做法用Effect.fnUntraced。行为不变6705c6aac7:测试夹具适配上游 fix(server): refresh provider discovery after CLI updates pingdotgg/t3code#14319、fix(opencode): verify updates using the installed CLI version pingdotgg/t3code#18561(providerMaintenanceRunner.test.ts改 2 行,运行时代码不变)冲突
.github/workflows/ci.ymlgit init+ sparse fetch,上游改成actions/checkout@v6+ sparse-checkout.repos/和 Vendor*.a的 sparse 规则两边相同apps/server/src/orchestration-v2/ProjectionStore.ts(2 处)hasOpenRuntimeRequestArtifacts(已关闭但 artifact 还没收尾的 request),上游只改了缩进;② 内存层:fork 新增getRuntimeRequestById/ByNodeId/getNodeById/getTurnItemById,上游把相邻方法改成Effect.fnEffect.fn写法apps/server/src/orchestration-v2/ProviderEventIngestor.tsingestNormalized:fork 整段重写(runtime lifetime 校验、request group 原子写、artifact 身份保护),上游只把Effect.gen包成Effect.fnUntraced(加 span 注释),逻辑没改Effect.fnUntracedapps/server/src/orchestration-v2/ProviderSessionManager.ts(11 处)Effect.fntracing 重构;上游 pingdotgg#19195(Muse 主机在两次 turn 之间死掉后重新拉起)是自动合并进来的scheduleIdleRelease(…, runtime)参数;pingdotgg#19195 的代码保留apps/server/src/orchestration-v2/RunExecutionService.tssession: ManagedProviderSessionRuntime、ingestNormalized传runtimeLifetime、discardBufferedRequestsensuringapps/server/src/orchestration-v2/RunExecutionService.test.ts(2 处)captureRootRunTermination辅助函数,fork 在内联 fixture 里加了runtimeLifetime;ingestor mock:fork 加了 lifetime 方法,上游加了input.ingestNormalizedruntimeLifetime);② 两边都留:...unusedLifetimeMethods、discardBufferedRequests、input.ingestNormalized ?? …apps/server/src/orchestration-v2/legacy/LegacyV1ThreadImporter.test.tsOrchestrationV2ThreadProjectionJson、ProviderInstanceId,上游加了ComposerContextId、OrchestrationMessageContextapps/server/src/vcs/GitVcsDriverCore.test.tsdecodeReviewDiffPreviewInput,上游加了decodeVcsRef、decodeVcsListRefsResultpackages/provider-muse/src/server/adapter.tsshowRequest()+shown字段,full-access 子 workflow 自动批准失败后再显示showRequest仍然先发 request,这个问题上游没修,所以showRequest里保留 #22 的顺序(artifact 先、request 后)没报冲突、但自动合并后需要修的地方
release.yml(resolve_commit)、mobile-android-apk.yml、mobile-eas-production.yml、publish-aur.ymlif: github.repository == 'pingdotgg/t3code',跟 fork 已有的守卫叠成同一个 job 下两个if:(YAML 键重复)apps/web/src/components/chat/WorkflowOpeningBlock.browser.test.tsxgetSyntaxHighlighterPromise)和上游 79b1483(渲染后用actawait 同一个 promise;文件里已经 mock 了 highlighter)都加了同一个 import,合并后 import 重复apps/server/src/orchestration-v2/ProviderEventIngestor.test.tsUnknown provider runtime lifetimetestIngestor(ac9d5448e1)prefer-effect-fn报了 29 个 errorEffect.fn/Effect.fnUntraced(52274d410f)apps/server/src/provider/providerMaintenanceRunner.test.tsrefreshAfterUpdate,fork 的 V2 policy 用例还在 stubrefreshInstance;上游 pingdotgg#18561 新增的 targeted/unknown/legacy 三条夹具 policy 没带 protocol tag,被 fork 忽略refreshAfterUpdate;夹具补orchestrationProtocolVersion: 2(6705c6aac7),运行时代码不变保留的 fork 内容
github.repository == 'pingdotgg/t3code'守卫(release.yml 全部 job、mobile/AUR/EAS、cursor-hygiene-webhook)T3CODE_DESKTOP_UPDATE_REPOSITORY决定发布 URL 的逻辑(scripts/build-desktop-artifact.ts、apps/web的 desktopUpdate/vite 配置)还在验证
已跑:
pnpm install --frozen-lockfile(pnpm 11.10.0,Node 24):通过.github下所有 YAML 没有重复键vp test run src/orchestration-v2 src/provider/Drivers/ExternalAcpDriver.test.ts(apps/server,在最终的 Effect.fn 提交上跑):111 个文件通过、4 个跳过;2590 个测试通过、14 个跳过、0 失败。跳过的测试 fork main 上本来就有,这次合并没有新增 skiphttp.test.ts的 worker 被 SIGKILL(机器内存不够);单独重跑 1/1 通过packages/provider-museadapter 测试:42/42 通过;provider-musetypecheck(tsc-rs):通过node --test .github/scripts/opent3code-*.test.cjs:105/105 通过vp lint(fork 相对上游改过的 61 个 TS 文件):0 error,剩下的 warning 在 fork main 或上游原本就有vp fmt --check(相对 fork main 改过的全部 1363 个文件):通过未验证:
WorkflowOpeningBlock.browser.test.tsx(浏览器测试):跑了约 7 分钟后进程被杀(exit 137,机器内存不够),没有结果Effect.fn改写和 RunExecutionService 的类型(ManagedProviderSessionRuntime)要等 CI 的 typecheckorchestration-v2以外的测试:没跑