Skip to content

fix(registry): accurate patch status for missing agent configs#96

Merged
cyyever merged 2 commits intomainfrom
fix/patched-status-accuracy
Mar 18, 2026
Merged

fix(registry): accurate patch status for missing agent configs#96
cyyever merged 2 commits intomainfrom
fix/patched-status-accuracy

Conversation

@cyyever
Copy link
Collaborator

@cyyever cyyever commented Mar 18, 2026

Summary

  • PatchClientDef now returns ErrNothingPatched (instead of nil) when config is absent or has no stdio servers, so PatchAll no longer falsely marks these targets as "patched"
  • HTTPAgent.Patch returns ErrNothingPatched when config path is empty or file doesn't exist (same fix, consistent with MCP targets)
  • PatchAll suppresses warn-level logs for ErrNothingPatched (expected on machines where not all agents are installed)
  • Re-export ErrNothingPatched from registry for test ergonomics

Test plan

  • go test ./internal/daemon/registry/ — 9 tests pass
  • go test ./internal/daemon/ — passes
  • go test ./internal/mcpdiscover/ — passes
  • CI: all platforms

cyyever added 2 commits March 18, 2026 11:02
…y wrapped

PatchClientDef returned nil when config had no MCP servers, causing
the registry to mark agents as 'patched' even when nothing was wrapped.
This made the GUI show 'Protected' for agents with no MCP servers.

Return ErrNothingPatched sentinel so the registry can distinguish
'nothing to do' from 'successfully patched'.
…configs

HTTPAgent.Patch returned nil when ConfigPath was empty or the config file
did not exist, causing PatchAll to falsely mark the target as "patched".
Now returns ErrNothingPatched consistent with MCP targets.
@cyyever cyyever merged commit 24116f8 into main Mar 18, 2026
14 of 15 checks passed
@cyyever cyyever deleted the fix/patched-status-accuracy branch March 18, 2026 03:10
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