Skip to content

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

Closed
audichuang wants to merge 267 commits into
ci-base/v1.4.240from
rebase/v1.4.240
Closed

audichuang wants to merge 267 commits into
ci-base/v1.4.240from
rebase/v1.4.240

Conversation

@audichuang

Copy link
Copy Markdown
Owner

只用來在 rebase 後的 develop 上跑 Fork PR Checks,不會合併。base 是指向上游 v1.4.240 的暫時分支 ci-base/v1.4.240(對 develop 開會因兩份歷史衝突而跑不了 CI),驗完就刪。這次有手動解的衝突、丟掉的 commit 與額外修正(MANUAL);全部閘門通過才會自動移動 develop,原本的 develop 先備份到 backup/develop-v1.4.239-2026-10-25。

Summary

-develop = v1.4.239 + 264 個 fork commit(8 個 PR merge),head 24fa3f5202
+develop = v1.4.240 + 263 個 fork commit(丟掉 1 個)+ 2 個修正

排程的 run-97 在開 PR 前就停了,而且它是從 #63 時的 develop 起手、少了 #64。這輪從目前的 develop(含 #64)重做,做完後跟 run-97 的結果比對:差異逐行等於 #64 本身(git diff 00a25746ee 24fa3f5202),解衝突的部分完全相同。

Evidence

  • 本機 make fork-check:pnpm tc、changed-code quality gate、fork-check-lint 通過;vitest 13 個檔、38 個測試失敗,同一批檔在乾淨的 v1.4.240 worktree 上同樣 13 檔、38 個失敗(macOS 的 /var↔/private/var、mise 警告、系統 bash 沒有 mapfile、serve-sim exports 等),fork 沒有多出任何失敗。兩邊輸出尾段見留言。
  • make fork-check-seams:59 檔 417 個測試全過。
  • 上游這版改了 .github/workflows,develop 移動後跑 make fork-ci-disable-upstream。
>> fork base: v1.4.240
fork footprint v1.4.240..b4be2e8982
  fork-added files:        470
  modified upstream files: 207
    production   185 files  +1728 -623  (2351 lines)
    test           8 files  +72 -46  (118 lines)
    locale         8 files  +1727 -15  (1742 lines)
    baseline       2 files  +11 -0  (11 lines)
    other          4 files  +23 -5  (28 lines)

Merge Danger

Door: two-way(不合併;develop 移動前有備份分支)

Blast Radius: 全部 fork 功能

🤖 Generated with Claude Code

audichuang and others added 30 commits October 25, 2026 13:59
- 新增 FORK.md:rebase/併入 develop/補 fork 測試前要讀。涵蓋 make fork-check 的範圍、
  每個接縫該有的測試(逐跳轉送、只 stub 最外層的契約測試、假資料要對齊真實產生者、
  存檔往返、真 store 元件測試、先證明測試會紅)、突變評估法、只能靠 UI 的少數情境、
  上游檔案的慣例(max-lines、插槽、SAFETY 註解位置)與遠端機器同步。
- AGENTS.md 只加一行指向 FORK.md。
- fork-check / fork-check-full 固定 LC_ALL=C(上游真 git 測試比對英文訊息);
  FORK_BASE 落後 HEAD 超過 200 個 commit 時直接失敗,提示去抓上游 tag。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QgfW45N7JaoKC3zG1QSrD9
folder workspace 的 Source Control 要看到巢狀 repo,得先匯入 Orca,
但匯入後每個 repo 都會變成側邊欄最上層的 project。
- 每列 repo 加「從側邊欄隱藏/顯示」開關,依 host + 路徑記在本機,
  重新匯入(id 變了)也沿用;git 授權與 Repo 資料都不動
- 過濾放在 computeVisibleWorktrees(卡片、Cmd+1–9、看板共用)與
  use-host-visible-scope(空 project 佔位列),上游只動這三處幾行
- 面板新增「加入這個資料夾裡的 repo」:掃描加上 descendIntoRepos,
  repo 裡的 repo(cat/docs/etf-regulate)也找得到;目前只支援本機 folder

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wpgh9p4JDqVQVzv17i6mBi
- 「加入這個資料夾裡的 repo」掃到 WebApp-feature 這類已登記 repo 的 linked worktree
  (.git 是檔案,看起來也像 repo),現在連同被隱藏的 detected worktree 一起排除
- linked worktree 那列不再顯示側邊欄開關:開關作用在整個 repo,按它會把同 repo 的
  其他 worktree 一起藏掉

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Wpgh9p4JDqVQVzv17i6mBi
…k 納入 sidebar 與 project-groups

useSyncExternalStore 缺第三個參數,上游用 renderToString 畫 WorktreeList 的測試全部報
「Missing getServerSnapshot」(4 個檔、36 個案例)。fork-check 原本沒跑 sidebar 目錄,只有
fork-check-full 的 --changed 才抓到,所以把 folder-attached 碰到的兩個上游目錄加進 FORK_TEST_DIRS。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NWDnYZg4nMhTqDsJBDydr3
… arm64 打包),上游 workflow 改在 GitHub 停用而不改檔
…效 git owner 會重算 relativePath

- 新增 getOpenFileGitRelativePath:有 gitWorktreeId 時從 filePath 與 repo worktree 根推導路徑,不再依賴 relativePath 的相對基準
- 讀檔(含遠端 repo selector)、diff、衝突狀態對帳、外部變更 banner/比較、還原衝突掃描、autosave 比對、分頁 git 狀態標記改用推導路徑
- 還原 session 時 git owner 已不存在,relativePath 改為相對 folder 根,避免遠端以 folder selector 讀到錯的檔
- resolveTabOwnerRelativePath 搬到 open-file-git-owner.ts 供還原共用
沒有 missingSides 的 host 讀失敗只回 '',會被當合法空檔複製,之後 Paste & Restore 會清空真檔。
兩側皆空且無 missingSides 時視為 unreadable;新 host 的真空檔(帶 missingSides 或原側非空)照常複製。
涵蓋 RPC/zod/RuntimeGitDiffCommands/provider、IPC git:diff、renderer 本機與遠端 client、web preload;
任一段丟掉 skipRenderLimit 或 graph 都會轉紅。順手移除 git-diff-skip-render-limit.test 的過期 companion 註解。
…edRepos 的測試

options 是 z.unknown(),schema 或 handler 任一段丟掉欄位原本沒有測試會紅。
getDiff 維持兩側都在時省略 missingSides(上游 status-diff 測試以 toEqual 釘住該形狀),
staged 複製仍沿用舊 host 判斷:空檔只改權限會被略過並計數,換取不把讀取失敗當成空內容。
main 改為發版時 force-move 到通過閘門的 develop commit,git pull 會合併新舊兩段歷史。make sync 依 URL 找出 fork remote,只 fetch main,再以 checkout --no-overwrite-ignore -B 移動本機 main;有 tracked 變更、本機 main 有 fork main 從未有過的 commit、或會覆寫 ignored 檔時拒絕執行,任一檢查出錯也拒絕。發版指令改用 atomic push,main 與 tag 一起成功或一起失敗。make update 維持只建置 HEAD。
…po 檢查

加入 dead-classes、en 語系 catalog、extraction、coverage、rpc params catalog、max-lines ratchet,本機合計約 26 秒。上游的 catalog 檢查容許未翻譯 key,rebase 取錯語系檔一側時不會擋,所以另加 fork-locale-parity:fork 自 FORK_BASE 新增的 en key 必須存在於其他 5 個語系。CI static job 補 setup-bun。
audichuang and others added 22 commits October 25, 2026 13:59
Why: upstream conflicts most days, so stopping at conflicts left the canary
testing almost nothing. Conflicted files now take upstream's side, the report
marks failures in or importing them as expected, and exit 4 means conflicts
plus failures.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Why: review follow-up. The canary selects the fork's unit tests through the
runner's own collection, exits 0 green / 1 not green / 3 setup error, and no
longer labels failures as expected. fork-check-lint now requires every
fork-added test to be collected by some runner, footprint reuses the repo's
test-path rule, and the Makefile shares one remote lookup and vitest command.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Why: code-review follow-up. The canary takes a lock in the common git dir,
never leaves a stale report (setup errors write one too), enables rerere
explicitly, retries install without a frozen lockfile when it drifted, keeps
husky off the shared git config, and still reports when the merged tree cannot
list its tests. fork-seam-tests.mjs becomes fork-test-inventory.mjs with
explicit modes, and fork-check-seams refuses an empty list.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Why: Codex round 1. A fork test the merged tree stops collecting now shows
in the report and makes it not green. The canary removes only a worktree it
marked as its own and refuses a CANARY_DIR that is, holds or sits inside any
other worktree or the invoking checkout. The lock is an atomic symlink to the
holder's pid, with a takeover lock so two runs cannot both replace a stale one.
The inventory accepts only the wire tests fork-check-wire runs, from one
definition the Makefile now uses too.

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

Why: Codex round 2. The lock kept growing edge cases, so each run now gets its
own fresh worktree (CANARY_DIR must not exist) and writes its report and logs
through a temp file and rename; concurrent runs cannot touch each other.
Stale cleanup removes only worktrees marked with the pid of a run that is
gone. Every fork-added or changed test must exist and have a runner in the
merged tree, or the report lists it and the result is not green.

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

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

Why: Codex round 3. Automatic stale cleanup could delete the invoking
checkout or a live canary, so the canary now removes only the worktree it
created and lists leftovers with the command to remove them. Each run writes
report.md and logs/ into its own out/fork-canary/<UTC time>-<pid>/ dir, with
latest.txt naming the newest, so concurrent runs never mix. The canary also
runs every seam-list test, since a seam test identical to upstream still
guards its seam; one missing or uncollected in the merged tree is not green.

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

Why: Codex round 4. A failed report rename exited 0 and left latest.txt
naming a run with no report.md; any publish step that fails now exits 3 and
leaves latest.txt alone. CANARY_OUT and CANARY_DIR are made absolute against
the invoking checkout, since the steps run inside the canary worktree.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- fork-dmg 預設改用 Developer ID 簽章並公證;FORK_SIGN_IDENTITY=- 仍可打 ad-hoc
- 本機缺 APPLE_API_KEY / _ID / _ISSUER 時直接失敗(electron-builder 只會 warn
  然後產出未公證的 dmg),release build 結束時跑 stapler validate
- CI 一開始就檢查所有 secrets(含 HOMEBREW_TAP_TOKEN,避免 release 公開後
  才在 cask bump 失敗);tag 推出的版本號改經 env,不再嵌入 shell
- 每種 runner 都刪掉 .p8;fork-dmg 加 --publish never
- 兩個 Swift helper 只編 arm64;fork dmg 不再產生用不到的 blockmap
- 移除 FORK.md、Makefile、builder 設定裡自簽憑證的敘述

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FvVSY12we7czWFwdZhmgWu
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FvVSY12we7czWFwdZhmgWu
…sitional params

The fork appended optional positional params to upstream functions; when upstream adds
a param in the same slot, the fork value binds to it with no type error. Fork values now
travel in an options object, reusing an upstream one where it exists:

- skipRenderLimit rides getDiff's GitRuntimeOptions; buildDiffResult, IGitProvider.getDiff
  and getRuntimeGitDiff take a trailing GitDiffReadOptions. The RPC method spreads it only
  when set, so the call keeps upstream's arity; the duplicated ternary calls are gone.
  Wire fields (IPC args, git.diff zod params) are unchanged.
- openAllDiffs, openBranchAllDiffs, openCommitAllDiffs, openConflictReviewFile and
  openConflictReview take GitOwnerOpenOptions; all nine open actions share one
  resolveOpenGitWorktreeId.
- readAgentLaunchChoice/agentsOfferedForLaunch take upstream's tuiCustomization shape;
  buildHydratedEditorSessionState and reconcileOpenFilesForStatus take one options object.
- Pin the history panel's commit combined diff call with a contract test.

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

- The real-git skipRenderLimit test never reached the settled diff cache: it writes the
  repo just before reading, inside the stamp's 2s racy-write margin, so nothing is stored.
  A settled repo does cache the viewer's limited read, and without skipRenderLimit in the
  key Copy Full Source got that truncated result. Backdate the repo and pin both reads.
- Render SourceControlPanelContent and CombinedDiffViewer with the real store and stub only
  the leaf controls that hand back callbacks, so each of the seven combined-view opens goes
  red when it drops the folder repo's git owner.

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

- openUncommittedEntry takes tabWorktreeId in its options; openCommitFile and the commit
  file list's onOpenFile take { sequence } / { entries }; waitForRefusedNavigation and
  withPlannedLaunch take { armGraceNow } / { launchCwd }.
- Name the store actions' trailing object gitOwner; rename diff-render-limit-options.ts
  to git-diff-read-options.ts.
- A moved submodule gitlink's inner-file diff now honours skipRenderLimit.
- Real-store tests: a folder repo's commit combined diff and commit file (with its file
  sequence) keep the repo as git owner; a folder-relative tab's conflict survives the
  repo's repo-relative status; a real-git submodule test pins the full inner text.

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

Folder repo sections re-derived the tab owner (folder editor) and git owner
(repo worktree) inline in several upstream files. resolveTabOwners and
useSourceControlOwners in folder/worktree-scope.ts now hold that rule,
composed on resolveOpenGitWorktreeId, and the discard paths' dual-owner
quiesce/notify loops move to folder/repo-editor-owner-save-holds.ts.

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

A note opened from a folder repo section must open in the folder editor with
the repo as git owner; no test covered it. The discard autosave-hold and
preview-open folder tests now run as seam tests too.

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

Real-store tests now go red when a folder repo section's discard stops
notifying the folder's tabs (helper fan-out, single and bulk callers), when
a markdown note loses its folder tab or repo git owner, and when a branch
row drops its git owner. The owner helpers take plain string ids and the
save-hold helpers an array, deriving each target's owners from its own repo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…arget or a list

Keeps the discard call sites in use-entry-mutations.ts at their smallest;
owners are still derived per target inside the helper.

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

ClipCode's menu items and buttons were written inline into upstream source control
and file explorer components, with callbacks drilled through the listing and explorer
rows. A fork-owned context is now provided once per repo panel (single-repo-panel) and
once per explorer row list (ClipcodeExplorerVirtualRows), and fork components read it:

- entry-context-menu takes one typed slot (viewItems / copyItems), like GitHistoryPanelSlots;
  Open to the Side, Show File History and Copy Full Source render through it.
- uncommitted-sections, bulk-action-bar and the explorer row menu render one fork
  component each; section-file-list, FileExplorerRow and FileExplorerVirtualRows are back
  to upstream.

Behavior, order, labels and disabled states are unchanged. New real-store seam test
panel-clipcode-actions.fork.test.tsx covers the row menu, section header and bulk bar;
the explorer wiring test now right-clicks real rows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Panel seam test asserts separator placement around the fork view and copy items,
  and finds the bulk bar's copy button without walking parentElement.
- Branch compare rows and commit file menus assert their Open to the Side item.
- New bulk-action-bar.fork.test.tsx (seam-listed) asserts the copy button is disabled
  while a bulk action runs.
- Commit files menu test asserts each slot action exists before calling it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream v1.4.240 (stablyai#6282) expires terminal path-existence misses with its
own {exists, checkedAt} cache, so the fork fix 078ffe8 was dropped in the
rebase. Its two seam tests asserted the fork's 3s TTL constant and go with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
v1.4.240 reverted stablyai#32320, so getOpenFilesForExternalFileChange takes two
arguments again; the folder discard seam test still passed the store as a
third one and broke the web typecheck.

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

Copy link
Copy Markdown
Owner Author

本機 make fork-check 的 vitest 失敗對照(同一批 13 個檔)

fork(rebase/v1.4.240 b4be2e8)

 FAIL  |node| config/scripts/ci-managed-ssh-execution.test.mjs
 FAIL  |node| config/scripts/dependency-security-release.test.mjs
 FAIL  |node| config/scripts/main-entry-facade.test.ts
 FAIL  |node| config/scripts/pr-auxiliary-preflight-admission.test.mjs
 FAIL  |node| config/scripts/process-host-dev-rebuild.test.ts
 FAIL  |node| config/scripts/verify-cli-bin.test.mjs
 FAIL  |node| src/main/cli/packaged-cli-assets.test.ts
 FAIL  |node| src/main/emulator/serve-sim-kill-contract.test.ts [ src/main/emulator/serve-sim-kill-contract.test.ts ]
 FAIL  |node| src/main/fish-xdg-data-dirs-handoff.test.ts
 FAIL  |node| src/main/orcad/orcad-forked-child-paths.test.ts
 FAIL  |node| src/main/runtime/orca-runtime.test.ts
 FAIL  |node| src/main/worker-thread-child-process/worker-thread-child-process.test.ts
 FAIL  |node| src/renderer/src/components/editor/RichMarkdownEditor.focus-leave.test.tsx
   Start at  14:02:05
   Duration  1070.90s (import 39%, tests 30%, transform 25%, environment 3%, setup 3%)

     Import  |node| 33390 modules were evaluated 8271629 times · 4141.86s total, 39% of tracked time

乾淨的 v1.4.240

 FAIL  |node| config/scripts/ci-managed-ssh-execution.test.mjs
 FAIL  |node| config/scripts/dependency-security-release.test.mjs
 FAIL  |node| config/scripts/main-entry-facade.test.ts
 FAIL  |node| config/scripts/pr-auxiliary-preflight-admission.test.mjs
 FAIL  |node| config/scripts/process-host-dev-rebuild.test.ts
 FAIL  |node| config/scripts/verify-cli-bin.test.mjs
 FAIL  |node| src/main/cli/packaged-cli-assets.test.ts
 FAIL  |node| src/main/emulator/serve-sim-kill-contract.test.ts [ src/main/emulator/serve-sim-kill-contract.test.ts ]
 FAIL  |node| src/main/fish-xdg-data-dirs-handoff.test.ts
 FAIL  |node| src/main/orcad/orcad-forked-child-paths.test.ts
 FAIL  |node| src/main/runtime/orca-runtime.test.ts
 FAIL  |node| src/main/worker-thread-child-process/worker-thread-child-process.test.ts
 FAIL  |node| src/renderer/src/components/editor/RichMarkdownEditor.focus-leave.test.tsx

 Test Files  13 failed (13)
      Tests  38 failed | 1774 passed | 3 skipped (1815)

fork 沒有多出的失敗檔(comm -23 為空)。

@audichuang

Copy link
Copy Markdown
Owner Author

本機 e2e / wire / mobile(b4be2e8)

  • make fork-check-e2e FORK_BASE=v1.4.240:8 passed(2.3m)。
  • make fork-check-wire:第一次 1 個失敗(上游的 qoder-history-search-downgrade.unit.test.ts 逾時 30s,當時 load 約 12/12 核);load 降到約 6 後重跑 46 檔 226 測試全過。
  • make fork-check-mobile:兩次都是 1 個失敗,上游自己的 mobile-web-app-native-chat-visual-links.test.mjs > blocks popups even when a visual restores the native open function;同一個 target 在乾淨的 v1.4.240 上同樣失敗,fork 沒改 config/scripts/mobile-web-app。

fork

 FAIL  |node| config/scripts/mobile-web-app/mobile-web-app-native-chat-visual-links.test.mjs > a chat visual's in-page links on chromium > blocks popups even when a visual restores the native open function
 Test Files  1 failed | 49 passed (50)
      Tests  1 failed | 475 passed (476)

v1.4.240

 FAIL  |node| config/scripts/mobile-web-app/mobile-web-app-native-chat-visual-links.test.mjs > a chat visual's in-page links on chromium > blocks popups even when a visual restores the native open function
 Test Files  1 failed | 49 passed (50)
      Tests  1 failed | 475 passed (476)

audichuang and others added 2 commits October 25, 2026 14:47
The toast clearance resolved during the v1.4.240 rebase had no test that
went red when mobileOffset fell back to upstream's static value: the
clearance unit tests never render the Toaster and the rendered journey runs
wider than Sonner's 600px breakpoint. Render the Toaster and assert both
--offset-bottom and --mobile-offset-bottom carry the clearance variable.

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

The rebase review's mutation pass found two more seams that no seam test
turned red: dropping the bulk action bar's toastBottomClearanceRef, and the
folder-routing and gitWorktreeId persistence hunks whose only red tests sat
outside config/fork-seam-tests.txt. Assert the bar lifts toasts above itself,
and list the four existing tests that already go red under those mutations.

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

Copy link
Copy Markdown
Owner Author

盲審結果(head 505e759)

審查者 第一輪(b4be2e8) 第二輪(修正 commit)
A 衝突忠實度 VERDICT: ACCEPTABLE(9 個 NON-BLOCKING) —
B 上游 API 漂移 VERDICT: ACCEPTABLE(8 個 NON-BLOCKING) —
C 測試與 seam(mutation) VERDICT: ACCEPTABLE(5 個 NON-BLOCKING) 新開一個 Claude 審查者看修正:VERDICT: ACCEPTABLE
Codex(thread 01a171c5-cd2d-74c3-bc4b-f7af6b847f2d) VERDICT: NOT ACCEPTABLE(1 BLOCKING) ff15ced:ACCEPTABLE;505e7599cc:ACCEPTABLE

發現與處理

  • BLOCKING(Codex)/ C 發現 1:sonner.tsx 解過衝突的 mobileOffset(Sonner 600px 以下用的 offset)改回上游靜態值時沒有測試會紅。確認為真:clearance 單元測試不 render Toaster,e2e 視窗寬度 2560。已修 ff15ced:sonner.fork.test.tsx render 真的 Toaster 並檢查 --offset-bottom 與 --mobile-offset-bottom 都帶 clearance 變數。
  • C 發現 1(同 seam):拿掉 bulk-action-bar.tsx 的 ref={toastBottomClearanceRef} 沒有測試會紅。已修 505e759:bulk-action-bar.fork.test.tsx 加上 clearance 斷言。
  • C 發現 2:守已解 hunk 的 4 個既有測試不在 config/fork-seam-tests.txt(完整測試會抓,seam 清單沒列)。已修 505e759:editor-autosave.fork、folder-relative-git-consumers、editor-external-watch-path-index.fork 進 folder routing 組,workspace-session-schema.git-owner 進 gitWorktreeId persistence 組。
  • 行為差異(A、B、C、Codex 都提到,NON-BLOCKING):丟掉 078ffe8 後,檔案寫入前被掃過的路徑約 10 秒後才變成可點(fork 原本 3 秒),由上游 fix(terminal): re-probe stale "missing" path results so terminal links go live stablyai/orca#6282 的 NEGATIVE_PATH_EXISTS_TTL_MS 決定。
  • NON-BLOCKING 留待(既有缺口,上游這版沒碰,不在 seam-upstream.diff):panel-content.tsx 的 onShowCommitInGraph、renderCommitFilesMenu slot,use-global-keybindings.ts 的 sourceControl.openGitGraph dispatch 沒有單元測試會紅(後者有 e2e git-graph-full-view.spec.ts)。
  • NON-BLOCKING 留待:fix-up commit 放在最後,中間 commit 單獨 build 會有 TS 錯誤(A);第二輪審查者對新測試的 4 個小建議(mock 不檢查 ref 位置、Toast clearance 組加註、toast.dismiss() 不清 sonner 內部陣列、註解「<=600px」略誇大)。

Mutation 證明(合格 MANUAL)

hunk 測試 紅的那一行
editor-autosave.ts:157 worktree 過濾改回上游 editor-autosave.fork.test.ts、folder-relative-git-consumers.test.tsx expected [] to deeply equal [ 'folder-diff' ]
hydrated-editor-session-state.ts 的 gitWorktreeId / 重新錨定(e5f02e0) workspace-layout-git-owner-roundtrip.test.ts、editor-read-only-tabs.fork.test.ts expected undefined to be 'repo-2::/Users/dev/orca/inner'
workspace-session.ts:147 持久化 workspace-session.fork.test.ts expected undefined to be 'repo-a'
workspace-layout-disk-fields.ts / workspace-layout-fact-locations.test.ts pnpm tc:web TS2741: Property 'gitWorktreeId' is missing
mobile-session-surfaces.ts:86 git-graph 早退 sync-runtime-graph-git-graph-tab.test.ts never publishes the Git Graph tab … expected [...] to deeply equal [...]
sonner.tsx offset / mobileOffset sonner.fork.test.tsx expected 'calc(2.5rem + env(safe-area-inset-bot…' to contain 'var(--orca-toast-bottom-clearance, 0p…'
use-panel-view-state.ts(採上游) 上游 use-panel-view-state.test.tsx keeps a worktree choice across remount … expected [ 'history' ] to deeply equal [ 'unstaged' ]
丟掉 078ffe8 + 2758144 上游 terminal-path-exists-cache.test.ts 等(停用上游 TTL) retries an expired missing sibling-workspace path on its paired host
b4be2e8 pnpm tc:web TS2554: Expected 2 arguments, but got 3.
ff15ced / 505e759 見上 審查者與 Codex 各自獨立重現

importer-sweep 人工確認

  • 上游撤回 fix(terminal): a file link opens in the workspace it was clicked in stablyai/orca#32320:getOpenFilesForExternalFileChange 拿掉 catalog、刪 open-file-owner-scope.ts → 所有呼叫點兩個參數,fork 唯一呼叫點(測試)已修。
  • 上游把 getAllowedRoots、isPathAllowed、resolveSkillDiscoveryTarget 等改成 async → 沒有 fork 呼叫點。
  • use-panel-view-state.ts 的 toggleSection 改成 closure → fork 的呼叫點一次點擊一次呼叫,不受影響。
  • 上游新快捷鍵 browser.showHistory(Mod+Y / Mod+H)不撞 fork 的 Mod+Shift+H。

@audichuang

Copy link
Copy Markdown
Owner Author

全部驗證通過,develop 已移到這個分支(505e7599cc;舊 develop 備份於 backup/develop-v1.4.239-2026-10-25)

@audichuang audichuang closed this Oct 25, 2026
@audichuang
audichuang deleted the rebase/v1.4.240 branch October 25, 2026 07:11
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