Repository navigation
fix(acp): isolate workspace settings and context file resolution for worktree sessions #8152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 19 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3046b94
fix(acp): isolate workspace settings and context file resolution for …
79f2170
fix(acp): address review feedback — fix worktree test mock, add coverage
f8635ac
docs(acp): document single-worktree-session assumption on defaultSett…
f1ac5e2
test(acp): cover defaultSettingsCwd clear-on-close path
89df65e
fix(acp): address runtime verification feedback — per-session setting…
731126b
fix(acp): cover enter_worktree path + fix findEffectiveWorkspace dead…
76868ae
fix(acp): read activeWorktree from session config, fix GET/POST split…
7af1462
Merge branch 'main' into worktree-settings-isolation
wenshao c0f9b91
fix(acp): address PR review — stale worktree guards, containment, err…
0099742
Merge remote-tracking branch 'origin/worktree-settings-isolation' int…
55696ea
fix(acp): guard all resolveSettingsCwd returns with existsSync
ec57679
fix(acp): prefer worktree settings cwd over explicit client cwd, clea…
52a068c
fix(acp): address PR #8152 review — JSDoc priority, stale sessionId, …
959c362
fix(acp): address PR #8152 review — dead switch removal, test coverag…
a12c58b
fix(acp): address PR #8152 review — dead switch removal, test coverag…
18530dc
merge: sync with upstream/main
0c0512b
fix(acp): address PR #8152 R2 review — settings reload ordering, work…
7d9c586
Merge remote-tracking branch 'upstream/main' into worktree-settings-i…
b5a8b2a
fix(acp): restore worktree cwd on ACP session resume
078e788
Merge remote-tracking branch 'upstream/main' into worktree-settings-i…
2b2bec8
chore: merge origin/main into worktree-settings-isolation
qwen-code-dev-bot 18e2a98
fix(acp): resolve worktree settings isolation review comments
10dad43
Merge remote-tracking branch 'origin/worktree-settings-isolation' int…
e424719
Merge remote-tracking branch 'origin/main' into worktree-settings-iso…
wenshao File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Suggestion] No test replays the issue's actual end-to-end shape:
enter_worktreetool called mid-session → workspace-scoped setting change → setting lands in worktree. The two halves are tested independently (enter-worktree.test.tsassertssetActiveWorktreeis called;acpAgent.test.tsmocksgetActiveWorktreeto return a preset path) but the Config identity wiring is never exercised. — Failure scenario: a refactor that breaks Config identity (tools receiving a cloned Config, orSession.getConfig()returning a wrapper) would pass both test halves independently while silently re-breaking issue #8138.中文说明
[Suggestion] 没有测试复现 issue 的实际端到端形态:会话中调用
enter_worktree工具 → 更改工作区范围设置 → 设置写入 worktree。两半被独立测试(enter-worktree.test.ts断言setActiveWorktree被调用;acpAgent.test.tsmockgetActiveWorktree返回预设路径),但 Config 身份接线从未被验证。— 失败场景:一个破坏 Config 身份的重构(工具收到克隆的 Config,或Session.getConfig()返回包装器)会让两半测试独立通过,同时静默地重新破坏 issue #8138。— qwen3.8-max-preview via Qwen Code /review (v0.21.3)