Skip to content

Main keeps editor tabs under owned ids and in-place re-owns in step (dark, layout-owner build only) - #30206

Merged
Jinwoo-H merged 1 commit into
mainfrom
e2-6/p13-editor-owner-guards
Oct 18, 2026
Merged

Jinwoo-H merged 1 commit into
mainfrom
e2-6/p13-editor-owner-guards

Conversation

@Jinwoo-H

@Jinwoo-H Jinwoo-H commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 3 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​406 $\color{#cf222e}{\Huge{\mathbf{−}}}$​4 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​402
Prod 10 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​60 $\color{#cf222e}{\Huge{\mathbf{−}}}$​20 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​40

ELI5

In the build where the main process keeps the tab layout (off in every shipped build), main could lose track of two kinds of editor tab:

  1. A restored tab that switches to a new owner inside the same local workspace. The window renamed the tab, but main was never told, so main kept the old tab id and the old file record.
  2. A tab whose id names its workspace (a floating file, a second workspace that has the same file open, or a tab moved to the workspace that owns its file). Main matched tabs to files by path alone, so for these tabs it dropped the preview flag on save, named the wrong host for the tab, and kept the file record after its last tab closed.

Both are now kept in step with the window. Shipped builds behave exactly as before.

What Changed

Re-own inside one workspace. A restored tab can switch to a new owner without leaving its workspace. The window then gives it a new id and a new file record (for example, the relative path is fixed). Until now, main heard about this only for paired-server workspaces, and main does not own those layouts. A test shows a local workspace can also get here: a git workspace's conflict review reads a path whose bare id belongs to a tab in a folder workspace nested inside it. The window now sends renameEditorFiles with the file's new record, the same command it already sends for a rename on disk. Main replaces the tab id and the record. For a paired server's workspace the send is skipped as before, because main does not own that layout. With the switch off, nothing changes: this code only runs in the layout-owner build.

Tabs whose id names their workspace. Main's load, save, tab close and tab host lookup all matched an editor tab to its file with tab.entityId === file.filePath. They now share one check, editorTabShowsFile, which also accepts the file's owned id, built with the existing ownedEditorFileId that the window's ids use. Before, in the layout-owner build: a preview tab under an owned id saved its file without the preview flag, its tab entry named the partition's host instead of the file's, and closing it left its file record behind. After: all three follow the file.

Why

  • Re-own: routing it through the existing rename command reuses main's existing handling (it replaces the record by its old path and the tab by its id). A new command would need a capability flag and a second handler. The skip for paired servers is the same owner test every layout send already uses, so it is not repeated here.
  • Matching: building the owned id from the workspace and the file's runtime owner, then comparing it for equality, is exact. Parsing the tab's id and comparing only the path would also match a tab whose id names a different workspace or runtime.
  • Switch-gated matcher: a headless host (a paired server with no window) saves its sessions through this same load and save code in shipped builds. Keeping the owned id match behind the layout-owner switch leaves that path byte-for-byte as it is today. The headless behaviour is noted below as a follow-up instead of being changed here.

Linked Issue

N/A (maintainer follow-up to the layout-owner editor census)

Visual Proof

N/A: no UI or interaction change in shipped builds. The layout-owner build only changes which commands and records main keeps.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Failing first, then passing:

  • restored-editor-same-workspace-reown.test.tsx: drives the real file loader. A folder workspace nested in a git workspace, with a tab opened by absolute path, re-owns in place when the parent's conflict review reads that path. Before the fix no command was sent; now renameEditorFiles goes out with the new record. Also covers: no re-own and no send for the tab's own read, and no send for a paired server's in-place re-own.
  • restored-editor-owner-layout-owner.test.ts: an in-place re-own applied to main's model leaves main's tabs and file record matching the window's.
  • workspace-layout-owned-editor-id.test.ts: load, save, load with a preview tab under an owned id (floating and git workspace), a stored disagreement still demotes the tab, the tab names its file's host, closing it drops its record, the active file id survives, and with the switch off the path-only match is unchanged.

Gates (all local, in the PR lane): pnpm tc clean; pnpm run check:code-quality:changed 0 findings; layout-writer ratchets OK (main 211, renderer 651); focus-read ratchet OK (1082); anti-slop lint clean; vitest (--maxWorkers=4) on src/shared/workspace-layout, the editor slices and components, src/main/persistence and the touched main runtime layout files: 679 files, 5996 tests passed.

Switch-off bundle diff (unminified, base aff4ee7ac71 vs this branch, hashes normalized):

  • Main bundle: the new editorTabShowsFile compiles to entityId === file.filePath || false, and every changed call site (load preview demotion, save preview flag, tab close, tab host for saved and published tabs) now calls it. Same result as the old path-only comparisons. The only other change is the build commit stamp.
  • Renderer bundle: the re-own change sits behind the layout-owner switch and is removed from the build. The shared ownedEditorFileId now appears as an unused export in one chunk. Everything else is import and export alias renames and the commit stamp. Chunks that share a name were compared as sets and are identical.

Layout save check, switch on, before (base build) and after (this branch), same specs (golden-quit-relaunch-session, workspace-layout-oracle, cli-floating-file-open-position, tab-close-navigation): 26 passed and 0 reports on both.

Platforms: macOS. The change is path-agnostic: ids are built by the shared helper that already encodes every part.

AI Disclosure

Review

Flip capability list: none. No new layout.apply command or field; the window sends the existing renameEditorFiles with its existing optional record. In the layout-owner build, main now publishes the file's host on an editor tab under an owned id, where it named the partition's host before. That is a corrected value in an existing field, and only in that build.

Follow-ups for review (not changed here, shipped behaviour):

  • A headless host's save still matches editor tabs to files by path only, so a session it re-saves drops the preview flag of a tab under an owned id and names the partition's host for it.
  • The conflict review reads conflicted paths under the bare path as the id, so it can hit an unrelated open tab with that id in another workspace. That read is what re-owns the nested folder workspace's tab above.
  • With a dependent markdown preview open, an in-place re-own in a local workspace is refused as a collision, because the preview has the same path and owner.

Agent skill upstream boundary

  • Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

Ensure no issues in: Security, Cross-platoform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

SSH and paired servers: the re-own send is skipped for paired-server workspaces by the existing owner test. SSH workspaces main owns now stay in step. Folder workspaces are covered by the new loader test.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

…dark, layout-owner build only)

A restored tab re-owned inside its own workspace now tells main through
renameEditorFiles with the file's new record; main skips it for paired servers.
Main's load, save, close and tab-host read an editor tab's file by its owned id
as well as its path, behind the layout-owner switch.
@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 684dcf0b-e635-462f-934d-f0488f142fa8
📥 Commits

Reviewing files that changed from the base of the PR and between dcfe8c9 and b26b219.

📒 Files selected for processing: 13
  • src/renderer/src/components/editor/restored-editor-same-workspace-reown.test.tsx
  • src/renderer/src/store/slices/editor/actions/restored-editor-owner.ts
  • src/renderer/src/store/slices/editor/tabs/editor-tab-layout-owner.ts
  • src/renderer/src/store/slices/restored-editor-owner-layout-owner.test.ts
  • src/shared/workspace-layout/workspace-layout-editor-tab-file.ts
  • src/shared/workspace-layout/workspace-layout-load-records.ts
  • src/shared/workspace-layout/workspace-layout-load-workspace.ts
  • src/shared/workspace-layout/workspace-layout-owned-editor-id.test.ts
  • src/shared/workspace-layout/workspace-layout-published.ts
  • src/shared/workspace-layout/workspace-layout-save-tabs.ts
  • src/shared/workspace-layout/workspace-layout-save.ts
  • src/shared/workspace-layout/workspace-layout-tab-commands.ts
  • src/shared/workspace-layout/workspace-layout-tab-host.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

📝 Walkthrough

Workspace layout operations now match editor tabs to stored files by file path or owner-qualified file ID. This matching is used when loading, saving, closing tabs, and resolving execution hosts. Restored files that are re-owned within the same workspace record a file-ID rekey as a rename. Tests cover layout persistence and restored local and server tabs.

Priority: ⬇️ Low

Merge Risk: ⚪ Minimal · up to b26b2

No actionable issue was established in the changed layout-owner behavior. The change is ready for normal merge checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 47.62% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 21 functions across 13 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly summarizes the two main changes: owned editor tab IDs and in-place re-owning in the layout-owner build.
Description check Passed The description is complete and relevant. It explains the problem, changes, rationale, testing, scope, follow-ups, compatibility considerations, and checklist status. The maintainer-specific Linked Is…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Description check

Explanation

The description is complete and relevant. It explains the problem, changes, rationale, testing, scope, follow-ups, compatibility considerations, and checklist status. The maintainer-specific Linked Issue exception is addressed with an explicit N/A.

  • Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Jinwoo-H
Jinwoo-H merged commit 95d6018 into main Oct 18, 2026
40 checks passed
audichuang added a commit to audichuang/orca that referenced this pull request Oct 19, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Oct 21, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Oct 25, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Oct 26, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Oct 27, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Oct 28, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Oct 29, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Oct 30, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 2, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 3, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 4, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 5, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 5, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 6, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 7, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 7, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 8, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 8, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 8, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 8, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 10, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 12, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 12, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 13, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 13, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 14, 2026
…lder 分頁開啟時已綁到 repo,讀取時不需要重新歸屬
audichuang added a commit to audichuang/orca that referenced this pull request Nov 14, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 16, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 18, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 19, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 20, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
audichuang added a commit to audichuang/orca that referenced this pull request Nov 21, 2026
withFolderFileGitOwner 會把 folder workspace 編輯分頁的 relativePath 改寫成 repo 相對路徑,
worktreeId 卻仍是 folder,上游的 overflow reload、runtime 讀檔、quick-open 歷史與 mobile 投影都因此
對不到檔案。

- 編輯分頁的 relativePath 一律相對 worktreeId;Explorer/quick-open 開檔只綁 gitWorktreeId
- 絕對路徑開啟的分頁不綁 owner,讓上游 stablyai#30206 的同 workspace re-own 照常運作,測試退回 v1.4.250 版
- SC 帶 owner 開檔(含 conflict 兩個入口)時把 repo 相對路徑換成 folder 相對;folder root 外的檔案維持 repo 相對
- 還原 session 時把舊格式的 repo 相對路徑遷移成 folder 相對,owner 保留
- SC 清單的「目前開啟」高亮改從 filePath 推算 repo 相對路徑
- FORK.md 新增「刻意偏離上游的行為」一節;新測試加入 seam 清單
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