You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 222cb07
Browse filesBrowse the repository at this point in the historyBrowse files
fix: include output schema in tool approval hash migration (#527)
* fix output schema hash migration
* harden output schema hash migration
* address output schema migration review
* preserve direct output schema in tools list
* fix(quarantine): only fold output schema into approval hash when present
The output-schema segment was written unconditionally, changing the
approval hash for every tool — including those with no outputSchema —
which tripped TestCalculateToolApprovalHash_Stability and forced an
unnecessary re-baseline of all approved tools on upgrade.
Gate the segment on a non-empty normalized output schema so tools
without an outputSchema keep their original hash (no re-baseline,
no re-quarantine). Tools that do expose an outputSchema still get a
new hash, handled by the version-gated migration in checkToolApprovals.
---------
Co-authored-by: Algis Dumbris <a.dumbris@gmail.com>
EnabledTools []string`json:"enabled_tools,omitempty" mapstructure:"enabled_tools"`// Allowlist: only these tools are exposed; mutually exclusive with disabled_tools
244
-
DisabledTools []string`json:"disabled_tools,omitempty" mapstructure:"disabled_tools"`// Denylist: these tools are hidden; mutually exclusive with enabled_tools
EnabledTools []string`json:"enabled_tools,omitempty" mapstructure:"enabled_tools"`// Allowlist: only these tools are exposed; mutually exclusive with disabled_tools
244
+
DisabledTools []string`json:"disabled_tools,omitempty" mapstructure:"disabled_tools"`// Denylist: these tools are hidden; mutually exclusive with enabled_tools
245
245
}
246
246
247
247
// OAuthConfig represents OAuth configuration for a server
0 commit comments