Skip to content

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

Closed
audichuang wants to merge 517 commits into
ci-base/v1.4.254from
rebase/v1.4.254
Closed

audichuang wants to merge 517 commits into
ci-base/v1.4.254from
rebase/v1.4.254

Conversation

@audichuang

@audichuang audichuang commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

只用來在 rebase 後的 develop 上跑 Fork PR Checks,不會合併。base 是指向上游 v1.4.254 的暫時分支 ci-base/v1.4.254(對 develop 開會因兩份歷史衝突而跑不了 CI),驗完就刪。

這次的兩條使用者決定(筆記 known-resolutions.md 最上面「2026-11-09 預演」條目):v1.4.254 帶進上游 stablyai#38831(folder workspace 的 Source Control)與 stablyai#6746(Git Graph 分頁)。

  • folder SC:以上游 FolderWorkspaceSourceControlPanel 為底,fork 只留薄接縫(folder 路徑底下已登記的 repo 加進上游面板的 owners);fork 的 folder 多 repo 面板、隱藏 folder repo、folder 分頁 git owner 層等暫時拿掉,之後另開 fork PR 補回(使用者已知、已同意)。
  • Git Graph:整個保留 fork 版,接管上游的 git-graph tab kind 與入口(上游 openGitGraph 改開 fork 的 openGitGraphTab、Cmd+J 用 fork 項、git.history 同時帶 fork graph 與上游 refs/historyToken)。
  • 做法照條目機械地做:rebase 每個停點以預演(da8162e3b9 上的 replay2,backup/rehearsal-replay2-da8162e3b9-20261109 = 4c2b46c)同一個 commit 的檔為準,用 3-way merge 把 da8162e→v1.4.254 的上游差異套上去;rp-Sfork.txt 的檔取上游。之後重做預演的「整檔採上游」commit,再 cherry-pick 預演的 6 個主題 commit。

Summary

-develop = v1.4.253 + 502 個 fork commit(含 PR merge 前的 commit;merge commit 不重放)
+develop = v1.4.254 + 500 個 fork commit + 7 個預演 commit(整檔採上游 1 個、主題 6 個)+ 4 個修正
  • 丟掉的 commit(變成空的,跟預演一樣):668245b869(changed-file tree import)、90e216fb5f(web git diff destructuring)。

  • 衝突檔:80 個(清單見 resolved-files.txt 的審查素材),解法見上;與預演的逐檔比對(HEAD 對「預演結果平移到 v1.4.254」)只剩:11 個 locale 檔 key 順序不同(key 與值相同)、git-history-graph-svg.tsx 一行註解用字(da8162e3b9 才有的上游 d857e09 改了這檔,fork 的改動與舊 develop 相同)。

  • 用到的筆記條目:「2026-11-09 預演」(照做)、「renderer 模組大搬家」(由預演 9017e67 處理)、「render path 改用 useTranslate」(由預演的停點解法處理)、「8f4913fd69 pty-connection-test-environment」(照預演停點解法,兩邊保留)。

  • 額外 commit(rebase 之後):

    • 29bdd8a 整檔採上游(對 v1.4.254 重做預演的 3a17f56,檔案清單相同;另外多重設 git-history-commit-context-menu.tsx、刪 orcad-migration-path-fields.ts,後兩者由 919eb16 修回)。
    • 6 個預演主題 commit 原樣 cherry-pick(40c0a12ce0、612721215f、0bc2e1dd2c、b3ed521ae4、2e2df137a1、a5c7e126d6),無衝突。
    • 919eb16 預演是對上游 main 做的,v1.4.254 沒有 main 的搬家與 Git Graph: commit actions (checkout, cherry-pick, revert) stablyai/orca#39069:保留 src/main/ssh/orcad-migration-path-fields.ts 的 fork gitWorktreeId 欄位、測試 import 回 v1.4.254 路徑、commit 右鍵選單保留 fork 的 children slot。
    • 741728f cross-version tripwire 改釘 v1.4.254 接受 fork Git Graph open(含 FORK.md 一句);4e3e283fe8 從上游 main c50d4cd(refactor: organize browser guest lifecycle owners stablyai/orca#39996)帶入 3 個 cross-version 測試 hunk(第一個含 c50d4cd 的 release 要丟掉這個 commit)。
    • 57ac179 補回 ChangesModeView 的 syncKeptModifiedModelOnMount 與它的 fork 測試(審查者 C 找到)。
  • 兩個 replay 用的 commit 沒跑 pre-commit hook(d1bf09924a 的重放因 MERGE_RR.lock 被搶而要手動 git commit -C,以及 29bdd8a),之後每輪 make -k fork-check-static 全綠。

結果:沒有移動 develop(needs-human)

  • CI(head 57ac179):除了下面兩支 fork e2e 外全綠(單元測試 18 分片、static、wire、mobile、macOS build、e2e 其他 4 個分片)。
  • 紅的兩支:folder-multi-repo-source-control.spec.ts(點已刪 fork 面板的 Refresh all repositories)、folder-workspace-tab-restart-restore.spec.ts(驗已拿掉的 folder 分頁 git owner)。舊 develop 上兩支都綠;要搬到上游卡片重寫。
  • Codex 第 2 輪仍有 1 個 BLOCKING:上游 attached worktree 在 folder 路徑外時,Show in Git Graph 開錯 repo(git-graph-tab-model.ts:44)。
  • 審查細節與反駁見 PR 留言。

fork footprint

>> fork base: v1.4.254
fork footprint v1.4.254..919eb16330
  fork-added files:        503
  modified upstream files: 152
    production   129 files  +965 -350  (1315 lines)
    test           4 files  +40 -0  (40 lines)
    locale        11 files  +2497 -88  (2585 lines)
    baseline       2 files  +3 -0  (3 lines)
    other          6 files  +39 -7  (46 lines)

上游基準(fork-upstream-red)

Upstream v1.4.254 (b33b192): 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/static-analysis/ratchets/source-budget/check-path-literal-ratchet.mjs
::error::New path-literal entry not allowed: .github/workflows/release-cut.yml src/main/skills/providers/skill-provider-runtime-roots.test.ts
::error::New path-literal entry not allowed: .github/workflows/release-cut.yml src/main/skills/providers/skill-provider-runtime-roots.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/authentication/ssh2-credential-fallback.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/authentication/ssh2-handshake.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/connection/reconnect/ssh-reconnect-error-classification.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/file-transfer/sftp/
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/file-transfer/ssh-connection-file-transfers.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/filesystem/
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/host-keys/ssh2-host-key-verification.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/migration-source/
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/remote-exec/ssh-posix-command-wrapper.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/remote-host/
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/runtime-access/
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/targets/ssh-connection-store.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/targets/ssh-target-runtime-ownership.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-hostile-hosts.yml src/main/ssh/targets/testing/ssh-connection-store-test-fixture.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/authentication/ssh2-credential-fallback.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/authentication/ssh2-handshake.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/connection/reconnect/ssh-reconnect-error-classification.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/file-transfer/ssh-connection-file-transfers.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/filesystem/
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/host-keys/ssh2-host-key-verification.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/hostile-host-test-support/ssh-windows-host-
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/hostile-host-test-support/ssh-windows-host-cells.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/migration-source/
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/remote-exec/ssh-posix-command-wrapper.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/remote-host/
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/runtime-access/
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/targets/ssh-connection-store.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/targets/ssh-target-runtime-ownership.ts
::error::New path-literal entry not allowed: .github/workflows/ssh-windows-hosts.yml src/main/ssh/targets/testing/ssh-connection-store-test-fixture.ts
::error::New path-literal entry not allowed: .github/workflows/wsl-orcad-e2e.yml src/main/ssh/migration-source/

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.254 touching the files it names (cherry-pick candidates):

Merge Danger

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

Blast Radius: 全部 fork 功能;folder SC 與 Git Graph 改動最大

audichuang and others added 30 commits November 9, 2026 07:36
… the exit window

The S9a check measured toast/row overlap, which is stricter than a click: at a
1280x720 window one toast overlaps the next row while Playwright scrolls it out
and the click succeeds. Keep the one-copy-toast assertion and trial-click the
upcoming targets instead, which runs the real hit-target check.

Add the component case where a copy lands during the previous toast's exit
animation; reusing a stable toast id loses that notification.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Trial clicks were still stricter than the real right-click at a 1280x720
window (shorter retry budget, and the bulk bar covers rows there too). The
count assertion is what goes red on the old stacking code; the scenario's own
clicks remain the clickability check.

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

Why: in a narrow window the diff editor renders inline, and its deleted-line
view zone also carries .view-lines, so the locator matched two elements and
failed in strict mode (PR #64 CI run 40160587129).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Upstream's dead-code passes cannot see fork readers, and every export the
fork adds to an upstream internal is a rebase conflict point.

- Use public upstream symbols instead: EditorSaveQuiesceTarget via
  Parameters<typeof requestEditorSaveQuiesce>, GitHistoryCommitFilesLayout
  via GitHistoryCommitFiles' props.
- Copy small pure helpers into fork files (origin named for re-sync) and
  revert the added exports: initialsFor, GraphPath,
  createParentDirectoriesForNewFile; drop the unread SWIMLANE_CURVE_RADIUS
  export.
- Move fork-added code out of upstream files: commitDiffTabId,
  SOURCE_CONTROL_OPEN_TO_SIDE_EVENT and its shortcut label, asar statSync.
- Pin what cannot be copied (isSafeGitRemoteName, GitHistoryGraphNodeMarker,
  SWIMLANE_HEIGHT/WIDTH) in config/fork-upstream-api.txt, checked by
  fork-upstream-api.mjs in fork-check-lint.
- Test the inner fork-distribution guards in UpdaterNudge and
  checkForPinnedBuild unmocked; joins the updater seam group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The regex check passed default, aliased and commented-out exports and failed
indented, commented, multi-declarator and star-re-exported ones. Walk the
TypeScript AST instead, following relative `export *` with a visited set, and
table-test each of those cases.

Bind the copied createParentDirectoriesForNewFile to the runtime file clients
upstream passes in, and test its EEXIST, non-directory and routing behavior.

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

Upstream editor-kind sites now call a fork module instead of carrying inline
'git-graph' branches: src/shared/fork-editor-tab-kinds.ts (kind predicate and
set helper) and git-graph-tab/fork-editor-tab-kinds.tsx (lazy view, icons,
header copy state). Wire formats and union types keep their literals.

A source-scan guard (src/shared/fork-editor-tab-kinds.test.ts) fails when a
file naming 'check-details' handles neither git-graph nor the fork module, so
a new upstream editor-kind site cannot silently miss the Git Graph case. New
seam tests cover the sites no test pinned before.

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

- EditorContent.fork.test: the Git Graph view's first import fails and the
  retrying loader recovers it, so a switch to React.lazy goes red.
- old-client-session-tabs-projection.fork.test: a live Git Graph tab publishes
  no row beside a file tab.
- RecentTabSwitcher.fork.test asserts the Git Graph option exists.
- Rename the renderer module to git-graph-editor-surfaces.tsx (JSX icon) and the
  guard to fork-editor-kind-sites.guard.test.ts, documented as a heuristic.

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

The window sends a Git Graph tab's file only inside its view, so the fixture
drops the top-level file record and asserts the view landed. It now guards a
Git Graph tab published as a synthetic file row from its view.

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

The v1.4.240-fork.1 release failed twice at `xcrun stapler validate` with
Error 68 ("The network connection was lost." from api.apple-cloudkit.com),
after notarization succeeded and the ticket was stapled. stapler fetches the
ticket from CloudKit, so a hosted runner's flaky path to Apple threw away a
ten-minute signed build, and the workflow made that round trip twice.

- config/scripts/fork-stapler-validate.sh retries only exit 68 (EX_NOHOST),
  three attempts 30s apart; any other failure, such as a missing ticket
  (65/66), still fails at once. make fork-dmg uses it.
- The workflow's verify step checks the stapled ticket offline from the
  codesign output instead of asking CloudKit a second time; the Developer
  ID, team, codesign --verify and spctl checks are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…se and wiring-shape rules

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tate on fork-canary-notes

The canary and auto-rebase skills move from ~/.claude/skills into .claude/skills
(force-added: upstream ignores the directory), with their prechecks. Their shared
state moves to the orphan branch fork-canary-notes, written only through
config/scripts/fork-notes.sh, which never forces and exits 2 when another run
wrote first. The canary now removes only the worktree it kept, matching
fork-canary.sh and FORK.md.

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

Also keeps a run worktree someone took over, drops the scope sentence the
limits section repeats, and updates the description to the notes branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
auto-rebase: push the verified sha instead of an unborn local branch, push
ci-base as a commit, take the lock before rebasing, carry OLD_DEVELOP in the
PR so a RESUME cannot drop PRs merged meanwhile, drop the attempt when the
lease fails, delete consumed notes only after develop moves, keep worktrees a
live run or the user still uses, name temporary worktrees per run, inline the
release cleanup, and define the review gate.

canary: fetch notes before running, keep the summary on setup errors, compare
new root causes against the notes as they were, rebuild conflicts with
merge-file, never commit or record rerere in the kept worktree, keep reports
outside the run worktree; its precheck only skips an in-flight rebase and
alerts on failure.

fork-notes.sh: a failed fetch no longer reads as a concurrent write.

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

A RESUME posts a heartbeat first; every outcome that keeps rebase/vNEW for a
person opens the PR if needed and marks it needs-human, which both prechecks
and step 0 treat like verified. gh calls name the fork; the drop recipe
converts the sha to git's short length and checks the range-diff; the release
tags the head step 6 pushed and refuses if develop moved; the backup push
gates the develop push.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the canary's own report

Cleanup now also requires no untracked files and a HEAD contained in a fork
branch. The canary takes its report directory from its own output line, not the
shared latest.txt, and records the Result line so an install or listing failure
is not mistaken for no change. FORK.md follows the lease-failure restart.

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

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
auto-rebase keeps the lock and hands off when it abandons a rebase instead of
retrying hourly; backs up a rebase branch it did not create before deleting it;
finds a fork commit to drop by subject when the notes' sha predates the last
rebase, and stops after one redo; treats a failed review bundle as a failed
review; runs wire and mobile as separate commands. review-bundle survives an
import-less fork file and no longer loses seam matches to SIGPIPE. fork-canary
prints the report line on setup errors too. The canary refreshes fork shas in
re-verified entries, records fork commit titles, and writes the report path
with ~ instead of the home directory.

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

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

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

The PR macOS job packaged with the upstream builder config (`make build --dir`), so
fork-only packaging (fork config, dmg, app.asar leak check) broke only at release.
It now runs `make fork-dmg` ad-hoc signed, the release build minus signing and
notarization.

The release workflow also refuses a tag whose commit is not on fork develop (Fork
CI gates develop, not main), except a rerun of an already published tag, and warns
when the Developer ID cert is within 60 days of expiring.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nt the release checks

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ease shipped that commit

A rerun of a tag's draft no longer passes, and a rollback that re-tags the last good
release after a rebase does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Every rebase and canary since locale files grew fork keys conflicts in all seven catalogs, because upstream and the fork append keys at the same spot. A git merge driver registered for src/renderer/src/i18n/locales/*.json keeps keys either side added, takes one side's change or deletion, and leaves conflict markers only when both changed one key differently. It is copied into the git dir because a rebase onto an upstream tag replays older locale commits before the driver exists in the tree.

make fork-merge-driver, the canary and the auto-rebase register it. On a trial merge of develop b0a6efd into upstream main e13c47b it merged all seven catalogs; verify:localization-catalogs and fork-locale-parity passed and no upstream key was lost.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he asar physical stat

A mutation pass over 2026-10-25's changes found seams whose only red test sat outside config/fork-seam-tests.txt: the conflict review's gitWorktreeId, the Commits panel's renderFilesMenu slot, and the folder repo agent launch cwd at every hop (route input, offered agents, recovery launch, the action dialog and main's pane launch). Each listed test was shown to go red when its hop is removed.

Swapping app-bundle-replacement.ts's statSync back to node:fs left every test green, though under Electron it reads app.asar as a virtual directory with a new inode per call and reports the bundle replaced. The new case stubs node:fs that way and fails on that swap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The last check measured a Monaco view line right after toBeVisible(); on a loaded machine Monaco re-rendered the line in between and boundingBox() returned null (TypeError at line 466 in a local fork-check-full run). Poll both boxes until they exist and the diff sits right of the graph. Inverting the comparison fails with real coordinates, so the poll still checks the layout.

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

A single string both sides reworded used to send the whole catalog back to a line merge, so every key the driver had merged cleanly turned into an adjacent-add conflict again. The driver now merges everything else and marks only those strings, by line-merging three full merges that differ just there. One reader handles all three sides, the test-only error class is gone, and FORK.md asks for the install before every manual rebase so the git dir's copy stays current.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Started through a symlinked path, the driver's entry check failed, main never ran and node exited 0, so git took ours as a clean merge and dropped the fork's side; the check now compares real paths. A driver that cannot start (node missing from a GUI client's PATH) exited 127 with ours unmarked; it now falls back to git merge-file markers, and the driver records node's absolute path at install. Appending to an info/attributes without a final newline no longer joins two lines. mergeLocaleJson returns { merged, conflicts } and keeps its recursion internal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…p prototype-named keys

Codex round 1 reproduced four ways the driver could lose a side or fail to run:
- Reinstalling truncated the shared copy in place, so a merge in another worktree could run an empty script that exits 0; the copy now lands under a temp name and is renamed over it.
- Keys named toString, constructor or __proto__ were taken as inherited and dropped; lookups use own keys and merged objects have no prototype.
- A checkout path with an apostrophe broke the stored driver command; both paths are shell-quoted.
- git rev-parse --path-format=absolute needs git 2.31; the common dir is made absolute with cd and pwd.

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

Codex round 2 reproduced two more ways the install could leave ours unmarked:
- A core.autocrlf clone turned the .sh installer into CRLF and bash refused it. The installer is now fork-merge-driver-install.mjs, which upstream's .gitattributes already pins to LF with every config/scripts .mjs.
- Git expands %A inside the stored command, so a checkout path holding one sent node to a missing file. Literal % in both paths is written as %%.

The driver now reports its own conflict as exit 2, and the stored command line-merges with markers on any other non-zero exit (node missing, a crash, unparsable JSON), replacing the 127-only branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…tream's files

Keeps skipRenderLimit on git:diff over IPC and the web preload, and plugs the Commits dock's
multi-select, copy actions, Copy Full Source and file menu into upstream's virtualized panel.
…yai#38831)

Drops the fork's folder multi-repo panel and its folder git-owner layer, lists a folder's
registered repos as upstream owner cards (folder-path-repo-owners), restores the ClipCode panel
wiring, and guards the cards with a test that renders upstream's panel.
…6746)

The fork's Git Graph draws upstream's git-graph tab kind; upstream's openGitGraph and Cmd+J entry
open it. git.history carries the fork's graph option next to upstream's refs and historyToken.
Folder repo cards open it on their repo.
@audichuang

Copy link
Copy Markdown
Owner Author

本機閘門開始(RUN=20261108T232658Z)

…ream main

The 2026-11-09 rehearsal ran on upstream main da8162e, which moved the orcad migration path
modules under src/main/persistence and gave the commit context menu a children slot (stablyai#39069).
v1.4.254 has neither, so keep the fork's gitWorktreeId field in src/main/ssh/orcad-migration-path-fields.ts,
import the rewrite from its v1.4.254 path, and keep the fork's children slot on the context menu
that git-history-commit-fork-menu.tsx fills.
@audichuang

Copy link
Copy Markdown
Owner Author

本機閘門綠(fork-check-static:tc、changed-code quality、40 個 lint 步驟;fork-check-seams 全過)。修正 commit 919eb16 已推,CI 開始。盲審開始。

… open

Upstream v1.4.254 (stablyai#6746) added its own git-graph tab kind, which the fork's Git Graph took over, so the
baseline no longer rejects the open the tripwire expected it to reject; it parses and keeps the repo.
Pin that instead and note in FORK.md that R3 now needs a host older than v1.4.254.
…the baseline

v1.4.254 fails its own cross-version pairing-ticket and terminal-wire journeys once it is the
newest release tag: the pairing case needs a pre-ticket host (v1.4.253) and the terminal registry
moved. Upstream main fixed both in c50d4cd (stablyai#39996) together with a large browser-guest
refactor, so this takes only that commit's three tests/e2e/cross-version-wire hunks, unchanged.
Drop this commit at the first release containing c50d4cd.

(partially cherry picked from commit c50d4cd)
@audichuang

Copy link
Copy Markdown
Owner Author

CI 第 1 輪(head 919eb16,run 42537144043)結果與對照:

  • fork cross-version wire compatibility(紅,3 個檔)
    • cross-version-pairing-ticket、cross-version-terminal-wire:在乾淨的 v1.4.254 上同樣紅、錯誤相同(expected [Function] to throw an error/clientBuild.client.resetRemoteRuntimeTerminalMultiplexersForTests is not a function),是上游自己的問題。上游 main 在 c50d4cd(refactor: organize browser guest lifecycle owners stablyai/orca#39996)修了,但那個 commit 是大型重構,只帶它在 tests/e2e/cross-version-wire/ 的 3 個 hunk(4e3e283fe8,內容與 main 逐位元組相同),本機三支 11 例全過。
      上游 v1.4.254 尾段:
      FAIL  |node| tests/e2e/cross-version-wire/cross-version-terminal-wire.unit.test.ts
      TypeError: clientBuild.client.resetRemoteRuntimeTerminalMultiplexersForTests is not a function
      FAIL  |node| tests/e2e/cross-version-wire/cross-version-pairing-ticket.unit.test.ts > ... > rows an older host minted keep working and are never treated as single-use
      AssertionError: expected [Function] to throw an error
       Test Files  2 failed (2)
      
    • fork-layout-owner-dark-tripwire:檔頭寫明「upstream accepts git-graph tabs 時會紅」,v1.4.254 帶進上游自己的 git-graph kind(Git Graph tab: all branches, commit details and file changes stablyai/orca#6746),fork 的 Git Graph 接管了它。基準的 layout.apply 現在接受 fork 的 Git Graph open 且保留 repo,所以改成釘住這個行為,FORK.md「Deferred to upstream phase F」補一句 R3 只剩 v1.4.254 以前的 host(741728f468)。
  • fork e2e specs (1/6):Openbox-Message: Failed to open the display from the DISPLAY environment variable. 後在任何測試開始前就結束,同腳本的其他 5 個分片正常 → runner 暫態;這次推送整輪重跑。
  • fork e2e specs (3/6) folder-multi-repo-source-control.spec.ts:locator.click: Timeout 30000ms exceeded ... getByRole('button', { name: 'Refresh all repositories' })。
  • fork e2e specs (6/6) folder-workspace-tab-restart-restore.spec.ts:expect(locator).toContainText("unstaged api"),Changes view 空白。
    • 這兩支依附的是筆記條目裡使用者同意「暫時拿掉、之後另開 fork PR 補回」的 fork folder 多 repo 面板與 folder 分頁 git owner 路由;舊 develop e60ddce 上兩支都綠(PR fix(editor): folder 回報外部變更時也對到 repo-scoped diff 分頁 #146 的 Fork PR checks)。把 818 行的 spec 搬到上游卡片是功能 PR 的工作,不在 rebase 範圍,這次不改,留給使用者(不刪情境讓 CI 轉綠)。

新 head:4e3e283fe8(本機 fork-check-static 綠)。

The rehearsal took upstream's ChangesModeView whole for the folder Source Control switch and with it
dropped the fork's syncKeptModifiedModelOnMount (c8ba709), which has nothing to do with folders:
after editing in Source mode, Changes showed the old buffer and an edit there could overwrite the
Source edit. Pass the prop again and pin it in a sibling test listed with the upstream component seams.
@audichuang

Copy link
Copy Markdown
Owner Author

第 2 輪審查開始(head 57ac179)

@audichuang

Copy link
Copy Markdown
Owner Author

盲審結果(第 1 輪 head 919eb16,第 2 輪 head 57ac179)

審查者 第 1 輪 第 2 輪
A 衝突忠實度(claude -p) NOT ACCEPTABLE(2 BLOCKING) —
B 上游 API 漂移(claude -p) ACCEPTABLE(3 NON-BLOCKING) —
C 測試與 seam(claude -p) NOT ACCEPTABLE(1 BLOCKING) —
修正審查(新 claude -p) — ACCEPTABLE(3 NON-BLOCKING)
Codex(thread 01a1bd96-8819-76e3-821c-d0b453a7b417) NOT ACCEPTABLE(6 BLOCKING) NOT ACCEPTABLE(1 BLOCKING,未修)

BLOCKING 與處理

NON-BLOCKING(留待)

  • folder git-owner 層只拆一半:folder-file-git-owner.ts 整檔、open-file-git-owner.ts 的 nextOpenFileGitWorktreeId 等沒有呼叫點;controller-types.ts 的 editorWorktreeId、activity items 的 inFolderWorkspace 沒人讀(A4、B1、B2、C2)。
  • FORK.md:27/30/115/125 仍描述舊 folder 架構(A5);lcu 手測 case 整批刪除(A6)。
  • SC 標題列常駐的 Git Graph 按鈕不在了(C4,條目已列為暫時拿掉)。
  • use-discard-confirmation.ts:120 沒有測試走到(C3,既有缺口);EditorContent.fork.test.tsx 只因 crash 才紅(C5);session 存檔的 gitWorktreeId 沒有 seam 測試(Codex chore(fork): main 改為發版指標,新增 make sync 取代 git pull #7)。
  • 第 2 輪:新 fork 測試只驗 prop 有傳、tripwire 只驗 key 不驗值、FORK.md 那句 R3 措辭可能誤讀。

hunk 掃描(head 919eb16,resolved-files 的 97 個 hunk)

guarded 40(redBy 即證明)、crash-only 17(C 逐一對到 guarded hunk 或手動改回證明)、skipped 27(pnpm tc 綠守)、survived 13(C 判:4 個是 C1 已修、4 個屬已拆的 folder git-owner 層、1 個既有缺口、其餘等價或只有 lint/e2e 看得到)、flaky/error 0。

importer-sweep 人工確認

B 逐一看過:git.history 的 graph(上游重組 options 的 filesystem-git-history-handlers.ts 已補 graph: args.graph)、skipRenderLimit 全鏈、上游 'git-graph' content type 的每個分支、上游改讀 useSourceControlScope() 的呼叫點、updater 的 isForkDistribution()、agent launch cwd 與上游新的 trustWorktreeId。

@audichuang

Copy link
Copy Markdown
Owner Author

沒有移動 develop,交給使用者接手。 rebase/v1.4.254(head 57ac179)與這個 PR 都留著;排程會跳過,直到上游發 v1.4.255 或 develop 已在 v1.4.254。

卡在三件事(細節與修法方向在 fork-canary-notes 的 known-resolutions.md「v1.4.254 rebase 留給人的三件事」):

  1. tests/e2e/folder-multi-repo-source-control.spec.ts 建在已拿掉的 fork folder 面板上(Refresh all repositories、[data-repo-row]…),要改寫到上游的卡片;CI e2e 3/6 紅。
  2. tests/e2e/folder-workspace-tab-restart-restore.spec.ts 依賴已拿掉的 folder 分頁 git owner 路由;要決定補回路由或改 spec;CI e2e 6/6 紅。
  3. Codex BLOCKING:上游 attached worktree 在 folder 路徑外時,Show in Git Graph 開錯 repo(git-graph-tab-model.ts:44)。

做完後:在 rebase/v1.4.254 上 commit、推、等 Fork PR checks 綠,然後:

git fetch fork
head=$(git ls-remote fork refs/heads/rebase/v1.4.254 | cut -f1)
git push fork "e60ddceb5b3bf5d5a120fe0b59be5d072291b4c3:refs/heads/backup/develop-v1.4.253-20261109" && \
  git push --force-with-lease="develop:e60ddceb5b3bf5d5a120fe0b59be5d072291b4c3" fork "${head}:refs/heads/develop"

推完就好,下一次排程會留 develop-moved、發版、收鎖;lease 失敗就關 PR、刪 rebase/v1.4.254 與 ci-base/v1.4.254。

…its path

Show in Git Graph from an upstream folder Source Control card whose attached
worktree lives outside the folder opened the wrong repo or nothing, because the
repo choices only listed worktrees under the folder path.
…tart on upstream's placement model

Upstream stablyai#38831 replaced the fork's folder-tab git owner routing: the tab is
owned by the repo and only placed in the folder. Upstream does not persist the
placement, so the restored tab reopens under its repo; the spec now checks the
owner and the Changes diff against the repo's HEAD.
… Source Control cards

v1.4.254 replaced the fork's master-detail folder panel with upstream's per-repo
cards (stablyai#38831). Scenarios now scope rows to a repo's card and check the
repo-owned, folder-placed tabs. The fork-only panel features dropped with it
(hidden-worktree hint, repo list and remembered pick, folder-wide Copy all
changes, per-repo header copy, list keyboard navigation, list layout) lose
their scenarios until they return. S22 follows upstream, which opens a card's
agent in the repo's own workspace, and answers the new agent trust prompt.
@audichuang

Copy link
Copy Markdown
Owner Author

needs-human 的三件事已處理(head 3e7fdd5,接在 57ac179 之後,快轉推上):

  1. folder-multi-repo-source-control.spec.ts(3e7fdd5be2):改成用上游 folder SC 的卡片(section[data-source-control-worktree]),每個情境的 row 限定在該 repo 的卡片裡;diff/編輯分頁改驗上游的「repo 擁有內容、放在 folder」。保留的情境:卡片與變更數、樹狀、diff 分頁、stage/unstage、單 repo commit、linked worktree、外部變更與 Refresh all、ClipCode 的 row/section/多選複製、Paste & Restore 與 S12–S14、Open to the Side、binary 複製、多選右鍵、external-change banner、Compare/Keep、Explain changes 的 cwd、一般 repo workspace。刪掉的情境都是跟 fork folder 面板一起暫時拿掉的功能:S0 隱藏 worktree 提示、S1/S2 repo 清單與記住選取、S9c folder 標題列 Copy all changes、S9d 的 per-repo 標題列複製、S16 清單版面與 row hover、S18 清單鍵盤導覽;folder-repo-row-hover-count-check.ts 一併刪除。S22 改照上游:卡片的 agent 開在 repo 自己的 workspace(fork 的 cwd 守門也是暫時拿掉的功能),並回答上游新的 agent 信任詢問。設定裡固定 uiLanguage: 'en',非英文機器也能跑。FORK.md 發版 UI 組描述、fork-e2e-timings.json 跟著改。
  2. folder-workspace-tab-restart-restore.spec.ts(f2a55e81f6):上游 Show Source Control for folder workspaces stablyai/orca#38831 把「分頁放哪」和「內容屬於誰」分開,取代 fork 的 folder 分頁 git owner 路由。實測上游的放置不跨重啟保存:重啟後分頁回到 repo 自己的 workspace,但擁有者仍是 repo,Changes 仍對 repo 的 HEAD 做 diff。spec 改驗這兩點;「重啟後仍在 folder 裡」列為暫時拿掉的功能(筆記已記)。
  3. Codex BLOCKING git-graph-tab-model.ts(03cf114f1f):Git Graph 的 repo 候選併入上游 getAttachedWorktreesForFolderWorkspace 的 lineage worktree(可在 folder 路徑外)。新增 git-graph-tab-model.folder-attached.fork.test.ts(列進 seam 的 git-graph tab 組):拿掉修正後兩例都紅(expected [] to deeply equal [ 'outside' ]、expected [ 'inside' ] to deeply equal [ 'inside', 'outside' ]),還原後綠。

本機(macOS,head 3e7fdd5):pnpm tc 0 錯;make -k fork-check-static 綠(40 個 lint 步驟、changed-code quality since v1.4.254);make fork-check-seams 98 檔 503 例全過;Git Graph 相關單元測試 46 檔 274 例全過;兩支 e2e 本機 headless 跑過(multi-repo 22 個情境全 pass、restart 1 passed)。

On CI the row's hover-only action lost the pointer to the status letter
mid-click; the scenarios check the git action, not the hover reveal.
@audichuang

Copy link
Copy Markdown
Owner Author

Fork PR checks 綠(run 42549261769,head fa25fba):30 個 check 全 success。第 1 輪(run 42546135175,head 3e7fdd5)有兩個紅:e2e 3/6 是 S6 在 CI 上點列上的 Stage 時,hover 才出現的按鈕被狀態字母 M 擋住;fa25fba584 改成直接對 Stage/Unstage 送 click,本機重跑全過。tests 15/18 是 vitest 拆 worker 時的 EnvironmentTeardownError: Closing rpc while "onUserConsoleLog" was pending,沒有測試失敗,第 2 輪沒再出現。

…selectors and host-aware repos

Codex review of 03cf114: the folder candidates passed an empty cross-store
map and no lineage parents, so remote attached worktrees that the folder Source
Control lists were missing; and they matched repos by id alone, so a local
worktree could pair with a remote repo sharing that id. The choices now read the
same selectors upstream's folder panel subscribes and resolve each owner's repo
with resolveReviewRepository.
…in the folder choices

check:workspace-record-read-ratchet counted the choice inputs' worktreesByRepo
and folderWorkspaces fields as direct record reads; they now carry the selector
views under their own names.
@audichuang

Copy link
Copy Markdown
Owner Author

Codex 複審 03cf114 的 2 個 BLOCKING 已修(head 658050f,快轉推上):

  1. 遠端 lineage 候選是空的(87aec4d1db):Git Graph 的 folder 候選改讀上游 folder SC 實際在用的兩個 selector,selectSidebarLineageParentIdentities 與 selectCrossStoreFolderChildrenById(selectGitGraphChoiceInputs),不再固定傳空 map、也不再漏傳 lineageParentIdentities。GitGraphTabView 與 git-graph-tab-launcher 用 useShallow(selectGitGraphChoiceInputs) 訂閱同一組輸入。
  2. attached worktree 只用 repoId 對 repo(87aec4d1db):改用 Source Control 的 resolveReviewRepository(repos, owner.worktree),依 host 解析 repo,同 repoId 的本機與遠端 repo 不會配錯。
  3. 658050f:CI 的 check:workspace-record-read-ratchet 把 choice inputs 上的 worktreesByRepo/folderWorkspaces 欄位算成直接讀 record(4 處),改名為 repoWorktrees/folders,裝的仍是 selector 的結果。

測試(git-graph-tab-model.folder-attached.fork.test.ts,seam git-graph tab 組):

  • 遠端 lineage(remote-root、remote-child 經 cross-store 與 lineage parents 掛到 folder):拿掉 selector 輸入後紅,expected [] to deeply equal [ 'remote-child', 'remote-root' ]。
  • 同 repoId 同時有本機與遠端 repo(兩種排列順序):改回只用 repoId 配對後紅,expected [ [ 'shared-wt', 'runtime:remote' ] ] to deeply equal [ [ 'shared-wt', 'local' ] ]。
  • 兩個 mutation 都在 rename 之後的程式碼上重跑過,還原後 4 例全綠。

本機(head 658050f):check:code-quality:changed HEAD 過;pnpm tc 0 錯;make -k fork-check-static 40 個 lint 步驟全過;make fork-check-seams 98 檔 505 例全過;Git Graph 相關單元測試 47 檔 280 例全過;folder multi-repo 與 restart 兩支 e2e 本機 headless 全過(重新 build)。

CI:87aec4d1db(run 42551168424)只有 fork-check typecheck and quality 紅(上面第 3 點);658050fd29(run 42552396521)30 個 check 全 success。

@audichuang

Copy link
Copy Markdown
Owner Author

develop 已由使用者推到驗過的 head 658050f(Fork PR checks passed:run 42552396521,fork-pr.yml),沒有 v1.4.254-fork.* tag。排程接手發版(RUN=20261109T054012Z)。

@audichuang

Copy link
Copy Markdown
Owner Author

發版開始 v1.4.254-fork.1(tag 指 658050f,main 已快轉推上)

@audichuang

Copy link
Copy Markdown
Owner Author

發版失敗:tag v1.4.254-fork.1 已推(指 658050f,main 已移到這個 sha),但 fork-release.yml run 42568878534 紅兩次,都是 GitHub 下載回 HTTP 504(第 1 次在 install-node-dependencies 下載 electron-v43.8.6-darwin-arm64.zip,第 2 次 rerun 在 electron-builder 打包時)。沒有 code 問題;GitHub 恢復後在 Actions 對這個 run 再 rerun 一次即可發佈(同一個 tag、同一個 commit)。收鎖。

@audichuang audichuang closed this Nov 9, 2026
@audichuang
audichuang deleted the rebase/v1.4.254 branch November 9, 2026 05:51
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