-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(daemon): attach skill-toggle mutation metadata to settings_changed #9051
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
6291b53
feat(daemon): attach skill-toggle mutation metadata to settings_changed
samuelhsin c127037
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 123f747
fix(review): fit skill-toggle mutation metadata in the SDK bundle budget
samuelhsin d69bce1
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 7c1c0f6
test(daemon): pin skill-toggle mutation event count and parser edges
samuelhsin 9da7603
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 98ea100
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 5df1746
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin f2063a5
Merge remote-tracking branch 'upstream/main' into codex/fix-9051-cr
samuelhsin b698a87
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 00924b8
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 42a825b
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 07ce8eb
fix(sdk): raise daemon browser bundle budget for skill-toggle metadata
samuelhsin b1f752b
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 503e1ff
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
wenshao 806d758
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 3c7bdb7
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin fe0b74f
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin fc147d3
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 3579db6
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 3c46058
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin c131b3f
Merge branch 'main' into feat/9024-skill-toggle-mutation-metadata
samuelhsin 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
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
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
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.
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] The mutation-id correlation contract is only half-tested: same-id within one request is pinned here, but distinct ids across separate toggle requests are not — a one-line mutation
id: randomUUID()→id: 'constant'increateSkillToggleMutationsurvives the entire suite. Probe-verified: the mutant passes 112/112, and a distinctness assertion catches it while staying green against the real code. — Failure scenario: the docs this PR adds stateidcorrelates every settings event produced by one toggle request, which only has meaning if different requests get different ids. If a future refactor replacesrandomUUID()with a deterministic id (constant, counter, workspace hash), every test stays green, and a host that groups bufferedsettings_changedevents bymutation.id— the exact consumer this metadata was built for (#9024) — merges events from two unrelated toggles into one mutation and applies them as a single incremental change.Suggested fix — perform a second, separate toggle call in a facade test and assert its mutation id differs from the first request's:
中文说明
[建议] mutation id 关联契约只被测试了一半:同一请求内共享 id 在此处被钉住,但不同请求之间 id 必须不同这一点没有任何测试覆盖——把
createSkillToggleMutation中的id: randomUUID()一行突变为id: 'constant'后整个套件仍然全部通过。已探针验证:该突变体以 112/112 通过,而补上差异性断言即可捕获它,且该断言对真实代码保持绿色。——失败场景:本 PR 新增的文档写明id用于关联一次切换请求产生的所有 settings 事件,这只有在不同请求获得不同 id 时才有意义。如果未来某次重构把randomUUID()换成确定性 id(常量、计数器、workspace 哈希),所有测试仍为绿色,而按mutation.id归组缓冲的settings_changed事件的宿主——正是这份元数据为之而生的消费者(#9024)——会把两次互不相关的切换的事件合并进同一个 mutation,并作为一次增量变更应用。建议修复——在 facade 测试中再发起一次独立的切换调用,并断言其 mutation id 与第一次请求的不同:
— qwen3.8-max via Qwen Code /review (v0.21.11)