Commit ff03db9
authored
fix(049): classifyServerToolStatus must use runtime config authority (#477)
The merged #476 classifyServerToolStatus read config-denial only from the
storage ServerConfig copy. Config-file disabled_tools on stdio servers
live in the live runtime config and are not always mirrored to storage,
so disabled_by_config classification + upstream_servers counts were wrong
at runtime for that case (unit tests passed because the no-runtime
harness uses the storage fallback path).
Prefer p.mainServer.runtime.IsToolConfigDenied (same authority
isToolCallable/blockedToolMessage use); fall back to storage
IsToolAllowedByConfig only when no runtime is wired.
Adds a runtime regression test pinning that ClassifyDisabledTool reads
live config (the authority the server layer now delegates to).
Related #4681 parent 95f5fa4 commit ff03db9
2 files changed
Lines changed: 29 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4665 | 4665 | | |
4666 | 4666 | | |
4667 | 4667 | | |
4668 | | - | |
4669 | | - | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
| 4671 | + | |
| 4672 | + | |
4670 | 4673 | | |
4671 | 4674 | | |
4672 | 4675 | | |
| |||
4683 | 4686 | | |
4684 | 4687 | | |
4685 | 4688 | | |
4686 | | - | |
| 4689 | + | |
| 4690 | + | |
| 4691 | + | |
| 4692 | + | |
| 4693 | + | |
| 4694 | + | |
| 4695 | + | |
4687 | 4696 | | |
4688 | 4697 | | |
4689 | 4698 | | |
| |||
0 commit comments