fix(desktop): 刷新设备注册后的真实执行目标缓存 - #2328
Merged
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
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. Comment |
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.
Summary
Closes #2327
DesktopHubTaskBridge注册就绪后的失效改用hubQueryKeys.executionTargets.root,命中生产useHubExecutionTargets的 Hub 缓存,而不是无生产者的['execution-targets']。App.v4的装配测试仍把错误 literal 钉死为正确行为。移除该正向 spy 断言,保留桥接装配及未注册负向保护;缓存行为由新的真实 QueryClient 测试覆盖。Files
app/desktop/src/components/DesktopHubTaskBridge.tsxapp/desktop/src/components/DesktopHubTaskBridge.test.tsxapp/desktop/src/__tests__/App.v4.test.tsxReproduction / verification
pnpm --filter agenthub-desktop test— 54 files / 461 tests PASS。pnpm --filter agenthub-desktop typecheck— PASSpnpm --filter agenthub-desktop typecheck:tests— PASS--max-warnings 0— PASSgit diff --check— PASSorigin/master;本轮修改限于上述 Desktop 三文件。Evidence boundary
这是 L0 的生产 hook + QueryClient 行为证据,网络与设备注册由测试夹具提供。不是 packaged Desktop、真实设备注册或真实模型验收;正常的 10 秒轮询可能掩盖原问题,因此不将其描述为无界陈旧。已有 App.v4 的 React act warnings 未纳入本次无关修复。