Repository navigation
[不合併] develop rebase 到 v1.4.240 的 CI 驗證 - #69
Closed
audichuang wants to merge 267 commits into
Closed
audichuang wants to merge 267 commits into
audichuang wants to merge 267 commits into
Conversation
- 新增 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 停用而不改檔
…e symlink 不再藏掉 arm64
…效 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 判斷:空檔只改權限會被略過並計數,換取不把讀取失敗當成空內容。
… git owner,不再沿用相對 repo 路徑讀錯檔
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。
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>
Owner
Author
|
本機 fork(rebase/v1.4.240 b4be2e8) 乾淨的 v1.4.240 fork 沒有多出的失敗檔( |
Owner
Author
|
本機 e2e / wire / mobile(b4be2e8)
fork v1.4.240 |
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>
Owner
Author
盲審結果(head 505e759)
發現與處理
Mutation 證明(合格 MANUAL)
importer-sweep 人工確認
|
Owner
Author
|
全部驗證通過,develop 已移到這個分支(505e7599cc;舊 develop 備份於 backup/develop-v1.4.239-2026-10-25) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
只用來在 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
排程的 run-97 在開 PR 前就停了,而且它是從 #63 時的 develop 起手、少了 #64。這輪從目前的 develop(含 #64)重做,做完後跟 run-97 的結果比對:差異逐行等於 #64 本身(
git diff 00a25746ee 24fa3f5202),解衝突的部分完全相同。editor-autosave.ts(5712030、e5f02e026d):上游 Revert "fix(terminal): a file link opens in the workspace it was clicked in (#32320)" stablyai/orca#33304 撤回 fix(terminal): a file link opens in the workspace it was clicked in stablyai/orca#32320,刪掉open-file-owner-scope.ts與getOpenFilesForExternalFileChange的catalog參數。採上游,加回 fork 的getOpenFileGitWorktreeIdimport、EditorFileSavedDetail.filePath、file.gitWorktreeId的 worktree 比對,以及 folder diff 的 filePath/owner 判斷;上游刪掉的不加回。mobile-session-surfaces.ts(2f55417):採上游(fix(runtime): stop paired desktops republishing mirrored editor tabs stablyai/orca#33259 的mirroredFromRuntimeSession早退、Revert "fix(terminal): a file link opens in the workspace it was clicked in (#32320)" stablyai/orca#33304 拿掉的 relativePath 判斷),插回 fork 的mode === 'git-graph'早退。sonner.tsx(a79a0a1):上游 fix(ui): dismiss notifications without closing modal editors stablyai/orca#32065 把<Sonner>包進<div>;採上游結構,加回TOAST_BOTTOM_CLEARANCE_VARimport、TOAST_BOTTOM_OFFSET與offset/mobileOffset。use-panel-view-state.ts(5712030):採上游 fix(source-control): preserve section collapse state stablyai/orca#9405 的區段收合狀態,fork 只拿掉isMac。workspace-layout-fact-locations.test.ts(5712030):兩邊的fill(...)都保留(上游file.mirroredFromRuntimeSession、forkfile.gitWorktreeId)。{exists, checkedAt}修了同一個 bug;行為差異是 miss 約 10 秒後重查(fork 原本 3 秒)。terminal-host-file-link-miss-expiry.test.ts等)。catalog。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。Merge Danger
Door: two-way(不合併;develop 移動前有備份分支)
Blast Radius: 全部 fork 功能
🤖 Generated with Claude Code