Skip to content

[不合併] develop rebase 到 v1.4.244 的 CI 驗證 - #94

Closed
audichuang wants to merge 356 commits into
ci-base/v1.4.244from
rebase/v1.4.244
Closed

audichuang wants to merge 356 commits into
ci-base/v1.4.244from
rebase/v1.4.244

Conversation

@audichuang

@audichuang audichuang commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

只用來在 rebase 後的 develop 上跑 Fork PR Checks,不會合併。base 是指向上游 v1.4.244 的暫時分支 ci-base/v1.4.244(對 develop 開會因兩份歷史衝突而跑不了 CI),驗完就刪。這次是 MANUAL(有手動解的衝突、照筆記丟掉 7 個 cherry-pick、7 個額外 commit),由 auto-rebase 依 FORK.md「Unattended merges」判斷能否自動移動 develop;不能的話會在留言寫出移動指令。

Summary

-develop = v1.4.243 + 357 個 fork commit(含 7 個上游 CI cherry-pick;PR merge 在 rebase 後攤平)
+develop = v1.4.244 + 349 個 fork commit + 7 個額外 commit
  • range-diff:337 =、12 !、8 <、7 >。rerere 沒有重放舊解法;locale 檔由 merge driver 合好,沒有停下來。
  • 8 個 <:
  • 用到的筆記條目(known-resolutions.md,canary 2026-10-29 對上游 main c66d873 解好;c66d873ff5 在 v1.4.244 之後,衝突檔逐一與 canary 檔比對):
    • 上游 main 的 7 個 CI commit × 7 個 cherry-pick:照做(見上)。
    • d6918c7a1d…/f231d1cde6…(buildDiffResult 第 6 個位置參數 tooLarge):照做。最終 diff-result.ts、file-diff.ts、submodule-diff.ts、commit-diff.ts、git-diff-compare-types.ts、DiffSectionBody.tsx 與 canary 檔逐位元組相同。
    • c1262516b9…(sonner.tsx import):照做,與 canary 檔相同。
    • 9015f13735…/ef6e661449…/70a6f7d184…(flaky-test-pattern-baseline.txt):照做,採 v1.4.244 檔、插回 fork 的 19 行,與 canary 檔相同(這個檔 v1.4.244 與 c66d873 相同)。
    • 1c58ed636c…(keybinding-title-copy.ts 要每個快捷鍵的標題):照做,額外 commit。
    • 76d4b01969…(死 key GitHistoryGraph.branches/.remote):照做,en-runtime-required.json 衝突採 vNEW 側;刪 key 是額外 commit。
    • 8d908764dc…(上游自己的 revert):不用處理。
    • b62f9bf624…/52a43ed99e…/4b1967bdd8…/fe3eb45b85…(上游新增 zh-Hant、ru、tr、de):照做,用 canary 譯文表插 173 個 fork key × 4 語系;FORK.md 的語系數改成 eleven。額外 commit。
    • fork 自身問題「folder 分頁讀檔的 options?.gitWorktreeId」:照做,補測試(額外 commit)。
    • fork 自身問題「recovery launch 的 worktreeId: launchWorktreeId」:照做,補測試(額外 commit)。
    • fork 自身問題「editor-autosave.ts:177」:待人判斷,沒動。
  • 衝突解法(逐 commit):
    • 1f0c6b9 folder workspace 多 repo:git-diff-compare-types.ts GitDiffBinaryResult 兩欄都留(上游 tooLarge? 在前、fork missingSides? 在後);file-diff.ts 宣告 tooLarge 與 originalMissing/modifiedMissing 都留。
    • 244d910:diff-result.ts 參數 tooLarge = false, skipRenderLimit = false(中間態);file-diff.ts 呼叫 filePath, tooLarge, skipRenderLimit。
    • 7b55a30:commit-diff.ts 採上游 Promise.resolve<GitBlobReadResult>({ … exists: false }),fork 的 missingSides 區塊自動合入。
    • 584d408:DiffSectionBody.tsx import DiffTooLargeNotice + Suspense;渲染 tooLarge ? <DiffTooLargeNotice /> : isImage ? <Suspense>…。
    • 7dd67d3:en-runtime-required.json 採 v1.4.244 側。
    • 2602bc9:sonner.tsx 兩邊 import 都留(上游在前)。
    • b9febe5:diff-result.ts import 採上游 file-preview-kind + fork GitDiffReadOptions;參數 tooLarge = false, readOptions: GitDiffReadOptions = {};file-diff.ts 呼叫 tooLarge, options。
    • d4e7998:diff-result.ts import 路徑改 ./git-diff-read-options;submodule-diff.ts 呼叫 innerPath, tooLarge, options。
    • 7b7fb6f:flaky-test-pattern-baseline.txt(見上)。
  • 額外 commit:5b3008a95a 刪死 key、f61e8d7c64 Open Git Graph 快捷鍵標題、e7da5212e1 四個新語系的 fork 譯文、36024c58de 讀檔 git owner 測試、da3e789505 recovery launch 測試;審查後 7134339(unstaged 刪除的 missingSides 測試)、f25cc327d4(HEAD 沒有的 unstaged 檔的 missingSides 測試)。

Evidence

上游基準(fork-upstream-red.mjs v1.4.244,upstream-red.md 全文;唯一的紅 check:path-literal-ratchet 是 fork-check-lint 本來就排除的步驟,起因是 v1.4.244 的 f37e6b2 把 pr.yml 同步到上游 main、列了 v1.4.244 還沒有的 fish-wsl-cwd-report.node-pty.test.ts,不用處理):

Upstream v1.4.244 (b8ec5c8): static checks on the clean release

  • tc: green
  • lint: red (check:path-literal-ratchet)
  • check:daemon-protocol-crossing: green

check:path-literal-ratchet (fork-check-lint skips it: EXCLUDED)

$ node config/scripts/check-path-literal-ratchet.mjs
::error::New path-literal entry not allowed: .github/workflows/pr.yml src/shared/fish-wsl-cwd-report.node-pty.test.ts

A src/... path in CI config, a workflow or an e2e file names no tracked file. Update it to the
file's new path (a move or rename orphaned it), or drop it if the file is gone.
With reviewer sign-off for an unavoidable exception, add the line(s) to config/path-literal-baseline.txt.

[ELIFECYCLE] Command failed with exit code 1.

origin/main commits after v1.4.244 touching the files it names (cherry-pick candidates):

另外在乾淨 v1.4.244 跑了讀 pr.yml 的 27 個 config/scripts 測試:13 個紅都是 macOS bash 3.2 的差異(mapfile: command not found、MOBILE_CI_ARGS[@]: unbound variable),在 macOS 上沒有訊號,以 Linux CI 為準。

make fork-footprint(上一次 v1.4.243:production 181 files +1665 -619,test 8、locale 8 files +1751、baseline 3、other 4):

>> fork base: v1.4.244
fork footprint v1.4.244..e623c2d3d6
  fork-added files:        512
  modified upstream files: 208
    production   182 files  +1666 -618  (2284 lines)
    test           8 files  +72 -44  (116 lines)
    locale        11 files  +2705 -32  (2737 lines)
    baseline       3 files  +30 -0  (30 lines)
    other          4 files  +23 -5  (28 lines)

production 多 1 個檔(keybinding-title-copy.ts 的 Open Git Graph 標題,上游 stablyai#34610 要求),行數持平;locale 多 3 個檔、+954 行是上游新增 4 個語系後補的 fork 譯文。

本機閘門:make -k fork-check-static 第 1 輪只有 changed-code quality gate 紅(新測試的 [] as string[]),改成具型別的區域變數後 amend 進同一個 commit(da3e789505);第 2 輪全綠(tc、quality、上游 lint 35 步與 fork lint)。make fork-check-seams 83 檔 484 測試全綠。

Mutation(兩個「fork 自身問題」的測試 commit,只改 fork 測試檔):拿掉 useEditorPanelFileContentLoader.ts 的 options?.gitWorktreeId ?? → × reads through the requested git owner when no open tab carries one;recovery-launch.ts 的 worktreeId: launchWorktreeId 改回 activeWorktreeId → × starts a detected agent in the folder workspace at the repo directory。

CI 與審查結果見留言。

Merge Danger

不合併。develop 只由 auto-rebase 第 6 步以 --force-with-lease=develop:1eab89dab5 移動到 CI 驗過的 head;驗證期間有 PR 合進 develop 時 lease 會失敗、這次作廢重來。

🤖 Generated with Claude Code

audichuang and others added 30 commits October 29, 2026 12:20
上游新增的 TAB_ID_RULES 以 Record<TabContentType> 列舉分頁種類,fork 的 git-graph 分頁沒有登記會讓 tc 失敗;它不是終端機,id 照原樣保留。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
負載高的全套測試裡,resetModules 後重新 import 花了 723ms,超過 200ms 的 timer 延遲,timer 在清除前就觸發。改成只算 restore 之後的觸發;拿掉清除時兩個測試仍會失敗。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
runs-on 改讀 repo variable FORK_RELEASE_RUNNER(設 orca-release 走 macmini,未設退回 macos-15);
self-hosted 直接用登入鑰匙圈裡已信任的簽章身分,只有 GitHub 機器才匯入 p12、sudo 信任憑證、清理暫時鑰匙圈。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
macmini 實測 dryrun:pnpm store 上傳 6.5 分鐘、每個檔案向 Apple 時間戳伺服器簽章約 1 秒(共 6.7 分鐘),
都比 build 本身久。fork 不做 notarization,憑證效期到 2036,時間戳沒有用處。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
每個 release tag 存的快取,下一個 tag 讀不到(GitHub cache 只給同一個 ref 與預設分支),每次 hosted 白花 2.5 分鐘上傳;
fork-dmg 用不到 git 歷史,完整 checkout 改成淺層,release 說明需要的 annotated tag 另外抓。
release 說明改成獨立步驟讓 dryrun 也會跑到;fork-release-dryrun-hosted-* 固定跑 GitHub 機器,讓退回路徑有得測。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te 分區

- Changed files 樹狀的資料夾列也能右鍵複製路徑與 Copy Full Source
- repo 切換器改成一列一個 worktree,帶 repo 的 badge 色塊,選單密度與其他選單一致
- branch 篩選把 local 與各 remote 分成區塊,remote 區省略重複前綴

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- 分頁列右上角加 Git Graph 按鈕(只在最右上那組,已開則聚焦)
- 資料夾多 repo 側欄改成單一清單 + 底部固定面板,repo 色塊、branch 獨立灰字、0 不顯示、動作 hover 才出現,分成有變更/沒有變更兩組
- Git Graph 工具列:repo 切換器移到最左並加 repo 色條,新增 User / Paths 篩選鈕與清除
- commit 雙擊或 Enter 開全部差異,詳細窗格標題列加按鈕
- 變更檔案右鍵加 Show File History

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- 沒設 badge 顏色的 repo 依加入順序配黃金角色相,側欄、切換器、Git Graph 色條一致
- 選中 repo 的名稱與色塊回到面板工具列,不再另佔一列重複 upstream
- Git Graph 搜尋框只顯示自由文字,author/path 由篩選鈕呈現

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- Show File History 一併納入 remote branch,不再漏掉只在 remote 的歷史
- 篩選 token 改成分段重組,引號內的值原樣保留並支援跳脫,不再互相改寫
- 多 repo 清單:方向鍵直接切換選取、再點目前 repo 不收起面板、背景刷新不會弄丟焦點、hover 動作不蓋住變更數
- repo 切換器搜尋改成子字串比對,會真的縮小清單

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- Git Graph e2e 改用 Commits 區頭按鈕的 data 屬性,避開分頁列同名按鈕
- 多 repo e2e 把 Changes 區塊限定在選中 repo 的面板,選中 repo 名稱改比對內層文字
- Paths 篩選鈕與最近路徑用 whitespace-pre,連續空格照實顯示

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- 沒選 commit 時詳細區收成窄邊,branch 標籤限寬,非目前分支訊息提高對比
- Git Graph 分頁的篩選與側邊欄 Commits 分開,預設 All branches,存在分頁狀態上,換 repo 只丟掉已選分支
- 分頁第一次載入自動選中目前分支最新的 commit;篩選沒結果時提供清除篩選與看全部分支

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
… Source Control 開啟

- 資料夾工作區側邊欄與 Git Graph 分頁共用選中 repo;方向鍵切換時分頁延遲 250ms 跟上,避免每鍵重載
- Git Graph 工具列加「在 Source Control 開啟」;Commits 右鍵加 Show in Git Graph,找不到會往下多讀或提供清除篩選
- 分頁篩選以分頁狀態為準,A→B→A 不會帶回舊篩選;關閉分頁時清掉暫存;detached HEAD 自動選對 commit

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- 側邊欄切 repo 讓 Graph 跟上時保留鍵盤焦點,只有主動開啟或回到分頁才聚焦 Graph
- 記住的 commit 選取改為依分頁保存,關閉分頁時清掉,重開會選目前分支最新 commit
- 詳細區標題列加 Hide details,選了 commit 也能收成窄邊並記住

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
- openGitGraphTab 送出一次性的聚焦請求,Graph 已在前景時也會聚焦選中的 commit 列
- 從右鍵選單或對話框觸發時短暫守住焦點,避免選單關閉把焦點還給側邊欄;側邊欄跟隨換 repo 不送請求

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PCAZ1XcuRQXFvNrgYFgP8G
…rk-check-lint

v1.4.237's lint script adds check:host-list-render-ratchet and
check:mobile-shared-dependency-versions; fork renderer components and
lockfile edits can trip either.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ipCode restore

v1.4.236 makes path-based requestEditorSaveQuiesce take an autosave hold and
return its release. The fork's multi-owner discard and ClipCode restore ignored
it, so autosave of a restored file stayed off until reload. Both now go through
requestEditorSaveQuiesceAll and release in finally.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d ClipCode delete

Since v1.4.236 a path quiesce takes an autosave hold that the caller must
release. No test noticed when the fork's two-owner discard (repo + folder)
or ClipCode restore's delete branch dropped that release, or when
requestEditorSaveQuiesceAll kept the holds it took before another owner
refused. Cover single and bulk discard after git succeeds, after git fails,
and on a partial quiesce failure, plus the restore delete branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hold release; unblock guarded-write scan

- conflict-review-folder-owner.test.tsx: one review tab per repo in a folder, conflicts tracked
  under the repo key, the conflict file and the overview reads carry the repo's gitWorktreeId.
- folder discard: holds stay taken while git is still running (deferred git), not only after
  the mocked call returns.
- clipcode-restore-plan: pick the preview bucket without the `? 'overwrite'` text that
  editor-save-guarded-write-paths.test.ts reads as an overwrite-consent grant.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-check

fork-check-lint ran a hand-picked subset of upstream `pnpm lint`, and the rebase step only
compared what a new release added, so checks from earlier releases stayed missing. Running them
all turned up three fork violations, fixed here:

- layout-writer ratchet: the fork's Git Graph tab writes editor layout the way upstream's own
  editor-tab openers still do; list it in the renderer baseline like them.
- max-lines: the fork's gitWorktreeId field pushed workspace-session.ts to 301 lines; move
  upstream's buildSanitizedTabsByWorktree to its own file (provenance comment at the top).
- WSL-move localStorage census: register the two fork modules that use localStorage.

fork-lint-parity.mjs now fails when upstream lint has a step fork-check-lint neither runs nor
excludes with a reason. fork-check-source-scans runs the src tests that read source text, which
`vitest --changed` never selects because they import nothing the fork changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
fork-source-scan-tests now scans every upstream unit root through
discoverUnitFiles (so UNIT_EXCLUDE applies), recognises async fs reads,
globs and repo-relative literals, skips six upstream tests that fail on
macOS hosts at v1.4.237 too (Linux CI still runs them), and exits
non-zero on an empty selection; the make recipe stops before vitest
when it does. fork-lint-parity reads the recipe from the exact
prerequisite line, strips '@', ignores comments, and both scripts are
importable with vitest coverage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
make fork-check-e2e runs the folder multi-repo e2e plus every spec the
fork added or changed since FORK_BASE; fork-check-full reuses it, and a
new "fork e2e specs" job runs it under Xvfb so "Fork PR checks passed"
requires it, including on the unattended rebase PRs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As a -j prerequisite, fork-check-e2e's Electron native rebuild could race
the vitest run; a sub-make after fork-check keeps them sequential.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tests that read package.json, Makefile, the pnpm workspace files or a
tsconfig by repo-relative name were missed (10 more files, all green).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Guards such as export-let-function-initializer-ban and ssh-remote-powershell
read source only via scanSourceTree, so the direct-fs check never picked them
and --changed never reaches them. Treat scanSourceTree and readAllowlist calls
as file reads; four more guards now run in fork-check-source-scans.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
audichuang and others added 12 commits October 29, 2026 12:21
… git owner

The folder tab's overview read spreads upstream's active-tab load options ({ wakeWslDistro })
into the git-owner options; objectContaining let dropping that spread pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r repo directory

The dialog forwards initialCwd to its start hook, which passes it to the agent tab launch; no
test covered that chain for an interactive Start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…esh wake a stopped WSL distro

Upstream stablyai#34222 rejects git:status on a stopped WSL distro unless the request carries
wakeWslDistro, which useGitStatusPolling sets on the active workspace's first status. The folder
panel's repo refresh is a parallel path: its open and manual sweeps now wake, polls and change
nudges stay gated.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the conflict dialog's repo cwd

The WSL wake test now types its request (anti-slop rejects a bare object parameter) and checks
that a save nudge stays gated. A conflict start without a saved agent opens the dialog with
use-ai's editor, which upstream stablyai#31310 spreads over the panel's worktreeId and initialCwd props;
pin that it carries the folder workspace and the repo directory. Two git-owner tests that guard
seams join the seam list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
上游 v1.4.243(stablyai#34053)新增 macOS helper orca-process-footprint,fork 的 Makefile
computer-use target 沒建它;ad-hoc 的 PR 建置缺 helper 不會紅,只有 Developer ID
正式建置會丟錯,v1.4.243-fork.1 因此發版失敗。新增 fork-mac-helpers.mjs(進
fork-check-lint):上游 build:mac:release 跑的每個 build:*-macos,computer-use
target 都要有,下次上游再加 helper 會在本機閘門與 PR CI 就紅。
- FORK.md:說明 fork-mac-helpers 檢查與 ad-hoc 建置抓不到缺 helper 的盲點;
  upstream-red 不跑單元測試,release commit 同步 .github/ 時第一輪 CI 會紅的處理方式。
- auto-rebase skill:審查修正 commit 推上去前先跑 make -k fork-check-static。
審查指出 fork-mac-helpers 依賴上游 build:*-macos 的命名慣例。新增
fork-verify-mac-helpers.cjs,在 make fork-dmg 打包後讀 builder config 的
mac.extraFiles,任何 MacOS/ helper 缺檔就紅,PR CI 的 ad-hoc 建置也會擋下。
另外 fork-mac-helpers 忽略 target 裡的註解行,並收掉只在內部用的 export。
auto-rebase skill 寫「修好後重跑 workflow 即可」,但 rerun 建的仍是 tag 指的
同一個 commit。v1.4.243-fork.1 缺 helper 就是靠修正 PR 合併後發 fork.2 解決;
skill 與 FORK.md Release 改寫成這個做法,並要求筆記寫明立刻發 N+1。
…te keys

Upstream stablyai#22056 gates catalog keys no source references; these two have had
no caller since the Git Graph branch list moved to Local/remote sections.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… title

Upstream stablyai#34610 requires a title for every static keybinding id
(keybinding-title-copy.ts satisfies Record<StaticKeybindingActionId, ...>).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…u, tr and zh-Hant locales

Upstream v1.4.244 adds four locales; fork-locale-parity requires every fork
key in each. Only fork keys are inserted, at en.json's position.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Covers useEditorPanelFileContentLoader's options.gitWorktreeId when no open
tab carries an owner; removing that fallback turns the new case red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@audichuang

Copy link
Copy Markdown
Owner Author

本機閘門開始

…e folder workspace

A detected agent launched for a folder's repo must open in the folder
workspace at the repo directory; reverting worktreeId to the active
worktree turns the new case red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@audichuang

Copy link
Copy Markdown
Owner Author

盲審開始(head da3e789)

@audichuang

Copy link
Copy Markdown
Owner Author

CI 第 1 輪(run 40818009744,head da3e789):只有 fork-check tests (6/8) 紅,1 個上游測試 src/main/runtime/runtime-local-worktree-create.test.ts > runtime concurrent creates on one name > gives the second create of app its next candidate(expected 'app-2' to be 'app'),其餘 1694 檔通過。已照流程 gh run rerun --failed 自動重跑一次,結果另貼。

…eletion

The unstaged branch of loadDiff sets originalMissing/modifiedMissing next to
upstream's new tooLarge line; removing those two lines turns the new case red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@audichuang

Copy link
Copy Markdown
Owner Author

第 5 步修正輪 1 開始:補 file-diff.ts unstaged 刪除的 missingSides 測試(C1 的缺口落在上游新增的 tooLarge 行旁)

@audichuang

Copy link
Copy Markdown
Owner Author

第 2 輪審查開始(head 7134339)

…r had

Guards originalMissing in loadDiff's unstaged branch on its own; forcing it
to false turns the new case red.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@audichuang

Copy link
Copy Markdown
Owner Author

第 5 步修正輪 2 開始:Claude r2 指出 unstaged 分支的 originalMissing 單獨改錯不會紅,補一例

@audichuang

Copy link
Copy Markdown
Owner Author

第 3 輪審查開始(head f25cc32):Codex 同 thread 與新 Claude 審查者只看補的一例

@audichuang

Copy link
Copy Markdown
Owner Author

CI:head f25cc32 的 run 40822028537(Fork PR Checks,attempt 1)全綠,15 個 job、Fork PR checks passed(job verify)SUCCESS,05:12:20 → 05:27:11。前面兩個 head:da3e789505 的 run 40818009744 第 1 次 fork-check tests (6/8) 紅(上游 runtime-local-worktree-create.test.ts 並行建立測試),rerun --failed 後全綠;7134339c11 的 run 40820880876 被新 push 取代。

@audichuang

Copy link
Copy Markdown
Owner Author

審查結果(盲審,head da3e789 → 修正後 f25cc32)

審查者 輪 VERDICT BLOCKING
A 衝突忠實度(Claude) 1 ACCEPTABLE 0
B 上游 API 漂移(Claude) 1 ACCEPTABLE 0
C1 測試與 seam:main/git diff、DiffSectionBody(Claude) 1 ACCEPTABLE 0
C2 測試與 seam:其餘 hunk、額外 commit、seam mutation(Claude) 1 ACCEPTABLE 0
Codex(thread 01a185ec-d902-7453-b1b6-c6cbdcaf4251) 1 ACCEPTABLE 0
Claude r2(只看 7134339) 2 ACCEPTABLE 0
Codex r2(同 thread,7134339c11) 2 ACCEPTABLE 0
Claude r3(只看 f25cc32) 3 ACCEPTABLE 0
Codex r3(同 thread,f25cc327d4) 3 ACCEPTABLE 0

發現與處理

  • 已修(測試 commit):C1 指出 file-diff.ts unstaged 分支的 originalMissing/modifiedMissing(緊鄰上游 v1.4.244 新增的 tooLarge = …,屬上游碰到的 seam)沒有測試守 → 7134339 補 unstaged 刪除例;Claude r2 再指出 originalMissing 單獨改成 false 仍綠 → f25cc32 補「HEAD 沒有、工作樹有空檔」例。Mutation:刪兩行 → × marks the working-tree side missing for an unstaged deletion;originalMissing = false → × marks the HEAD side missing for an unstaged file HEAD never had(Claude r2/r3、Codex r2/r3 各自重做過)。
  • 判為既有缺口、不擋(上游 v1.4.243..v1.4.244 的 hunk 不在 fork 接線附近,用 git diff -U0 比對 hunk 範圍;Codex r2 逐項同意):commit-diff.ts:74 catch 的 missingSides(readGitBlobAtOidPath 自己 catch 所有錯誤、從不 reject,實際走不到);use-global-keybindings.ts:216 openGitGraph 分支(上游改 70-83 行取 state 的方式);EditorDiffFileSurface.tsx:165;recovery-notice.tsx:248;use-discard-confirmation.ts:72;use-worktree-context.ts:33;use-tab-bar-runtime-model.ts:223;use-right-sidebar-activity-items.ts:111;panel-content.tsx 的 toastBottomClearanceRef/renderCommitFilesMenu/onShowCommitInGraph/headerActions;EditorEditFileSurface.tsx:201;wsl-move-storage-dispositions.ts:47,81。
  • NON-BLOCKING 留待(記進 fork 筆記):B 與 Codex:上游 v1.4.244 新的 WSL 搬移匯出(orcad-migration-path-fields.ts:62、wsl-move-manifest-export.ts:166)不改寫 fork 的 gitWorktreeId;Codex 用暫加案例證實會留舊 id、hydration 後失去 repo 綁定。功能在 ORCA_INTERNAL_WSL_HOSTS=1 後面、預設關閉。B:folder 多 repo 列標頭看不到上游新的 statusReadError(展開後的面板有顯示),比 v1.4.243 好。C1:上游自己的 commit-diff.ts:59 tooLarge 與 DiffSectionBody tooLarge 分支沒有行為測試(上游程式)。C2:file-diff.read-failure.test.ts、source-control-entry-context-menu.fork.test.tsx 守著 seam 但不在 config/fork-seam-tests.txt。
  • 反駁:Claude r2/r3「commit 帶 Co-Authored-By」→ auto-rebase SKILL.md 規定這個 pipeline 的 commit 結尾要帶,不改。

Mutation 證明(合格的 MANUAL)

range-diff 12 個 ! 與每個額外 commit 都有改回上游側會紅的證據:

  • diff 五檔與 DiffSectionBody(C1 表):拿掉 file-diff 的 options → × returns the full index text on native…;options 塞進 tooLarge 位置 → TS2345;diff-result 改回上游簽章 → TS2554 Expected 4-6 arguments, but got 7;skipRenderLimit 失效 → skip-render-limit Tests 5 failed;staged/catch 的 missing 旗標 → × reports missing sides only for absent blobs…/× marks both sides missing (staged=true);commit-diff 去掉 <GitBlobReadResult> → TS2339 Property 'tooLarge' does not exist;commit-diff missingSides → Tests 4 failed;GitDiffBinaryResult.missingSides → TS2339;DiffSectionBody 拿掉 tooLarge 分支 → TS6133 'DiffTooLargeNotice';Suspense → × loads an image section chunk without suspending the sibling editors。
  • 其餘(C2 表):sonner offset → × lifts toasts above registered bottom chrome…;branch-entry-row viewItems → × a branch compare row opens to the side with the Alt-click event;flaky baseline 刪 fork 行 → …monaco-strict-reveal.test.tsx: 3 flaky-test finding(s), baseline allows 0.;en-runtime-required 塞回死 key → verify:localization-runtime-catalog exit 1;pt/de/zh-Hant 刪 commitHashes → missing 1 fork key(s)。
  • 額外 commit:5b3008a95a revert → verify:localization-extraction「Catalog keys no source references … GitHistoryGraph.branches / .remote」;f61e8d7c64 刪標題 → TS2741 … "sourceControl.openGitGraph" is missing;e7da5212e1 改回上游 → 每個新語系 missing 173 fork key(s);36024c58de → × reads through the requested git owner when no open tab carries one;da3e789505 → × starts a detected agent in the folder workspace at the repo directory;7134339c11、f25cc327d4 見上。

importer-sweep 人工確認(B)

上游改 buildDiffResult(新增 tooLarge)→ file-diff/submodule-diff/commit-diff/branch-diff 呼叫點已看;git-blob-read 的 TOO_LARGE_BLOB → fork missingSides 判斷與 ClipCode 分類已看;assertWorkspaceAcceptsNewPty 的 cwd fence → fork agent launch cwd 經 preflight 已看;setGitStatus 的 readError 閘門 → use-folder-repo-status-refresh.ts 已看;useGlobalKeybindings 改 dispatch 時讀 activeWorktreeId → git-graph-command-handler.ts 已看;keybinding-title-copy.ts → f61e8d7;buildHydratedTabState 新參數、mobile-session-surfaces、files.readDir 分頁、DiscardConfirmationCopy.deleteAction、nested-repo-discovery 改寫 → fork 呼叫點已看。

本機:make -k fork-check-static 第 4 輪(f25cc327d4)綠;make fork-check-seams 83 檔 486 測試綠。

@audichuang

Copy link
Copy Markdown
Owner Author

develop 已從 1eab89d 移到 f25cc32(備份 backup/develop-v1.4.243-20261029T041800Z),接著發版。

@audichuang

Copy link
Copy Markdown
Owner Author

發版開始 v1.4.244-fork.1

@audichuang

Copy link
Copy Markdown
Owner Author

v1.4.244-fork.1 已發佈:https://github.com/audichuang/orca/releases/tag/v1.4.244-fork.1 (release run 40823825182 綠,Homebrew cask 1.4.244-fork.1)。develop = main = f25cc32;舊 develop 備份 backup/develop-v1.4.243-20261029T041800Z。

@audichuang audichuang closed this Oct 29, 2026
@audichuang
audichuang deleted the rebase/v1.4.244 branch October 29, 2026 05:41
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.

1 participant