Repository navigation
[不合併] develop rebase 到 v1.4.254 的 CI 驗證 - #148
audichuang wants to merge 517 commits into
Conversation
… 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.
|
本機閘門開始(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.
|
本機閘門綠(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)
|
CI 第 1 輪(head 919eb16,run 42537144043)結果與對照:
新 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.
|
第 2 輪審查開始(head 57ac179) |
盲審結果(第 1 輪 head 919eb16,第 2 輪 head 57ac179)
BLOCKING 與處理
NON-BLOCKING(留待)
hunk 掃描(head 919eb16,resolved-files 的 97 個 hunk)guarded 40(redBy 即證明)、crash-only 17(C 逐一對到 guarded hunk 或手動改回證明)、skipped 27( importer-sweep 人工確認B 逐一看過: |
|
沒有移動 develop,交給使用者接手。 卡在三件事(細節與修法方向在 fork-canary-notes 的
做完後:在 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"推完就好,下一次排程會留 |
…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.
|
needs-human 的三件事已處理(head 3e7fdd5,接在 57ac179 之後,快轉推上):
本機(macOS,head 3e7fdd5): |
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.
|
Fork PR checks 綠(run 42549261769,head fa25fba):30 個 check 全 success。第 1 輪(run 42546135175,head 3e7fdd5)有兩個紅:e2e 3/6 是 S6 在 CI 上點列上的 Stage 時,hover 才出現的按鈕被狀態字母 |
…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.
|
Codex 複審 03cf114 的 2 個 BLOCKING 已修(head 658050f,快轉推上):
測試(
本機(head 658050f): CI:87aec4d1db(run 42551168424)只有 |
|
develop 已由使用者推到驗過的 head 658050f(Fork PR checks passed:run 42552396521,fork-pr.yml),沒有 v1.4.254-fork.* tag。排程接手發版(RUN=20261109T054012Z)。 |
|
發版開始 v1.4.254-fork.1(tag 指 658050f,main 已快轉推上) |
|
發版失敗: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)。收鎖。 |
只用來在 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 分頁)。
FolderWorkspaceSourceControlPanel為底,fork 只留薄接縫(folder 路徑底下已登記的 repo 加進上游面板的 owners);fork 的 folder 多 repo 面板、隱藏 folder repo、folder 分頁 git owner 層等暫時拿掉,之後另開 fork PR 補回(使用者已知、已同意)。git-graphtab kind 與入口(上游openGitGraph改開 fork 的openGitGraphTab、Cmd+J 用 fork 項、git.history 同時帶 forkgraph與上游refs/historyToken)。backup/rehearsal-replay2-da8162e3b9-20261109= 4c2b46c)同一個 commit 的檔為準,用 3-way merge 把 da8162e→v1.4.254 的上游差異套上去;rp-Sfork.txt的檔取上游。之後重做預演的「整檔採上游」commit,再 cherry-pick 預演的 6 個主題 commit。Summary
丟掉的 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 之後):
git-history-commit-context-menu.tsx、刪orcad-migration-path-fields.ts,後兩者由 919eb16 修回)。src/main/ssh/orcad-migration-path-fields.ts的 forkgitWorktreeId欄位、測試 import 回 v1.4.254 路徑、commit 右鍵選單保留 fork 的childrenslot。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)
folder-multi-repo-source-control.spec.ts(點已刪 fork 面板的Refresh all repositories)、folder-workspace-tab-restart-restore.spec.ts(驗已拿掉的 folder 分頁 git owner)。舊 develop 上兩支都綠;要搬到上游卡片重寫。git-graph-tab-model.ts:44)。fork footprint
上游基準(fork-upstream-red)
Upstream v1.4.254 (b33b192): static checks on the clean release
check:path-literal-ratchet (fork-check-lint skips it: EXCLUDED)
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 改動最大