Repository navigation
[不合併] develop rebase 到 v1.4.252 的 CI 驗證 - #144
audichuang wants to merge 501 commits into
Conversation
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>
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>
… stacking Repeated copies stacked up to three "file(s) copied" toasts at the bottom right. When the pointer rested on the stack after a context-menu click, sonner expanded it and paused its timers, so it covered the Staged rows and the section's Copy Full Source button until the pointer left (fork e2e S9a/S9b). The clipboard only holds the latest copy, so dismiss the previous copy toast when showing the next. S9a now checks there is one copy toast and that it leaves the rows and the Staged header button it clicks next uncovered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 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>
|
CI 第 2 輪(run 42350655455,head fcd1dc2):30 個 check 全綠。static 的 fork-lint-run 40 步 251.8s 通過(type-aware 90.7s、code-quality:changed 49.9s 錯開),max RSS 14.2 GB。 |
|
resume 開始(RUN=20261107T225957Z) |
|
本機閘門開始(RESUME,head fcd1dc2;上游基準沿用 run 408 對同一 tag v1.4.252 的結果:tc/lint/daemon-protocol-crossing 全綠) |
|
第 1 輪修正:審查者 C 的兩個 BLOCKING(fork-lint-run 互斥接線、GitGraphTabView branchName 值都沒有測試會紅)補測試,跑本機 static 中。 |
|
第 2 輪修正:Codex 指 Git Graph 新案例只斷言讀取次數(違反測試規則),改成斷言切分支後畫面顯示新分支的 commit;跑本機 static 中。 |
審查結果(head f8e749e)
A、B 審完之後到 f8e749e 只多了 fcd1dc2(fork-lint-run.mjs 與其測試)和三個只改 fork 測試的 commit,沒有動產品程式碼或上游檔。 確認為真的 BLOCKING 與處理
NON-BLOCKING(留待,列進通知)
逐 hunk 證明(摘要,完整表在 C 的結果)
seam 抽樣(上游這版改過的檔)git.history graph option、Agent launch cwd、Folder SC action routing、Editor folder git-owner routing:拿掉 fork 接線都紅在斷言。git-graph tab type(Cmd+J spread):只有 tc 紅(見上)。 importer-sweep 人工確認
CI:f8e749eb3e 的 run 42426447240 30 個 check 全綠(「Fork PR checks passed」來自 fork-pr.yml)。本機 |
|
develop 已移到 f8e749e(備份 backup/develop-v1.4.251-20261107T225957Z = 37d8486)。Cmd+J seam(quick-action-context.ts:212):上游 v1.4.251..v1.4.252 對這個檔只改一行 type import 路徑(native-chat-split-shortcut → native-chat-pane-shortcut),沒有行為改動;拿掉 fork spread 由 pnpm tc:web(TS6133)擋下,列為既有缺口不擋。本機 fork-check-seams 在 f8e749e 147 檔 700 例全過。接著發版。 |
|
發版開始 v1.4.252-fork.1 |
|
v1.4.252-fork.1 已發佈:https://github.com/audichuang/orca/releases/tag/v1.4.252-fork.1(release run 42427320152 綠,tap 已是 1.4.252-fork.1;MacBook 上 Orca 開著,未自動升級) |
只用來在 rebase 後的 develop 上跑 Fork PR Checks,不會合併。base 是指向上游 v1.4.252 的暫時分支
ci-base/v1.4.252(對 develop 開會因兩份歷史衝突而跑不了 CI),驗完就刪。自動 rebase(RUN=20261107T041730Z)。Summary
MANUAL:13 個停點(含 rerere 重放)、1 個 commit 變空、6 個額外修正 commit。
衝突解法
review/use-hosted-review-creation.ts(9874363ab9、8c158c4cd9):import 區塊;上游的openAppHttpLink新路徑@/lib/browser/navigation/app-http-link-open,下一行接 fork 的../folder/worktree-scopeimport(9874363ab9 時是useSourceControlWorktreeScope、8c158c4cd9 改成useSourceControlForeground)。筆記 3228095 照做。sync/use-git-history-commit-actions.ts(4e77127a52、927f38d84a):hunk 1 採 fork(explain 相關 import 已搬到 fork 的git-history-commit-explain.ts);hunk 2 採 fork 的 import,openWorkspaceBrowserTab用上游新路徑@/lib/browser/workspace/workspace-browser-tab-open。最終檔與 canary 解法檔逐位元組相同。筆記 3228095 照做。app-shell/use-global-keybindings.ts(2094a9a1dd):採上游matchAppShortcut結構,在sidebar.childWorkspaces.toggle前加回 fork 的sourceControl.openGitGraph(也用matchAppShortcut)。與 canary 解法檔相同。筆記 25d677f 照做。lib/workspace/persistence/workspace-session.ts(9a846319d8,上游從lib/workspace-session.ts搬來):hunk 1 只留WorkspaceVisibleTabType新路徑 import;hunk 2export { buildSanitizedTabsByWorktree }(上游不再轉出buildActiveConnectionIdsAtShutdown)。與 canary 解法檔相同。筆記 3228095 照做。rpc/methods/source-control/git/git-diff-methods.ts(81e4d6b243、0ab01a46fd,上游 refactor(main): group RPC and orchestration modules by feature ownership stablyai/orca#38813 搬家):import 區塊採上游,加 fork 的gitDiffReadArgsimport(先diff-render-limit-options、後git-diff-read-options)。與 canary 解法檔相同。筆記 0314da7 照做。store/slices/editor/actions/open-file-apply.ts(04442bfac7):只放 fork 的linkSplitGroupStateimport;上游改的createBrowserUuid來源(shared/non-secure-context-uuid)搬到 fork 的open-file-link-split.ts。筆記 3228095 照做。config/flaky-test-pattern-baseline.txt(37c2c07707、18b1f257db):兩次都採上游。37c2c07707 加的 fork 行由 18b1f25 全部拿掉(FORK.md:這個檔不放 fork 行),所以 37c2c07 變空被丟(range-diff 的<),最終檔與 v1.4.252 相同。src/main/persistence/profile-state/profile-state-access.test.ts(43a93aa389):上游 test: remove 513 low-value persistence and benchmark tests stablyai/orca#38922(590f945a5e)重寫此檔。照 FORK.md「Deliberate departures」那條採上游整檔、丟掉 fork 的假 PID 修改(筆記 590f945 建議保留staleOwnerPid,跟 FORK.md 不同;FORK.md 是規則來源,且保留的那幾行改回去不會有測試變紅,無法證明)。FORK.md 那一段同步改寫。clipcode/clipcode-copied-toast.sonner.test.tsx(18b1f257db,modify/delete)、editor/ChangesModeView.fork.test.tsx(c21dbec624,modify/delete)、.github/workflows/fork-pr.yml與FORK.md(286c621f98,rerere 重放):都是 fork 自己的 commit 因為 rebase 把 merge 線性化而互撞,不涉上游。前兩個照舊 develop 的最終狀態(toast 測試保留 18b1f25 版、ChangesModeView.fork.test 已併進folder-diff-notes.fork.test.tsx、刪除)。核對:fork 新增的 592 個檔,HEAD 與舊 develop 只差
open-file-link-split.ts(刻意改 import)與folder-diff-notes.fork.test.tsx(線性化丟掉 c21dbec 的一行,修正 commit 補回);fork 改過的 215 個上游檔,上游沒動的 162 個 HEAD 與舊 develop 相同,上游動過的 53 個 fork 的 +/- 行與舊 develop 相同,或對應到上面的衝突與搬家。額外 commit
docs(fork): profile-state-access now follows upstream's rewrite (#38922):FORK.md 改成四個帶 fork 修改的上游測試檔。test(fork): restore the folder diff notes test's edit-mode file lost when the rebase flattened its merge:見上。fix(fork): move fork wsl-move dispositions to a fork file…(筆記 1c950ba 照做):新src/shared/wsl-move/fork-local-storage-dispositions.ts,上游檔回到 300 行內。fix(fork): move EditorPanel's diff file wiring to a fork file…(筆記 c5383af 照做):新editor/editor-panel-diff-files.tsx,EditorPanel.tsx 回到 400 行內。fix(fork): pass Git Graph's branch name to useSourceControlGitHistory(筆記 b53db37 照做)。fix(fork): follow upstream's renderer lib and RPC module moves in fork files(筆記 3228095、0314da7ed8 照做):git mv5 個 fork 檔到上游新目錄、改 import/vi.mock路徑、seam 清單路徑;另外補了筆記沒列的terminal-pane/pty-connection-test-environment.test.ts(上游把受測檔搬到pty-connection/test-fixtures/)。用到的筆記條目
20261106T213052Z-55140的解法檔,fork 獨有檔直接採用;上游檔逐行比對只差 fork 的改動)Merge Danger
Door: two-way(不合併;develop 移動前有備份分支)
Blast Radius: 全部 fork 功能