Repository navigation
Commit f1ced37
authored
refactor(config): delete dead compat surfaces and write-only error payload (#124067)
* refactor(config): delete dead compat surfaces and write-only error payload
Round-5 config-lane sweep; all three deletions verified against the strict
root schema and current consumers.
- ConfigMutationConflictError.currentHash was write-only: ~20 throw sites
computed hashes (some hashing whole files on the failure path purely to
populate it) and no consumer anywhere read it — responses carry only the
message and .retryable. Field deleted, feeder expressions collapsed.
- Root-level channel-key fallbacks (cfg[provider] beside cfg.channels[...])
in chunk limits, block streaming, and channel capabilities were unreachable:
the root schema is z.strictObject, so a validated config cannot carry
top-level channel keys; doctor owns those moves. Pre-strict-schema era
leftovers, deleted.
- resolveHeartbeatAckMaxChars existed as three identical constant-returning
stubs (heartbeat-runner-config, server-chat, get-reply) left over from the
retired heartbeat.ackMaxChars key; inlined the constant, deleted the stubs.
- mergeScopedSearchConfig's legacy web-search key delete was a no-op — the
agent-runtime schema rejects those keys at validation; helper and dead
branch deleted (the schema-side Set remains the rejection boundary).
* fix(web-search): restore retired-provider strip in runtime scoped merge
The legacy-key delete in mergeScopedSearchConfig is runtime behavior, not
schema-shadowed dead code: the merge input is runtime-merged state, so
retired provider objects must still be stripped when no plugin config
exists (proven by the existing web-search.test.ts regression).1 parent a4f61d1 commit f1ced37
22 files changed
Lines changed: 36 additions & 116 deletions
File tree
- src
- agents
- auto-reply
- reply
- cli
- commands
- config
- gateway
- server-methods
- infra
- wizard
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
294 | 294 | | |
295 | 295 | | |
296 | 296 | | |
297 | | - | |
298 | 297 | | |
299 | 298 | | |
300 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
| 75 | + | |
77 | 76 | | |
78 | 77 | | |
79 | 78 | | |
| |||
110 | 109 | | |
111 | 110 | | |
112 | 111 | | |
113 | | - | |
114 | | - | |
| 112 | + | |
115 | 113 | | |
116 | 114 | | |
117 | 115 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | 115 | | |
120 | 116 | | |
121 | 117 | | |
| |||
697 | 693 | | |
698 | 694 | | |
699 | 695 | | |
700 | | - | |
| 696 | + | |
701 | 697 | | |
702 | 698 | | |
703 | 699 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
135 | 134 | | |
136 | 135 | | |
137 | | - | |
138 | | - | |
139 | | - | |
| 136 | + | |
140 | 137 | | |
141 | 138 | | |
142 | 139 | | |
| |||
157 | 154 | | |
158 | 155 | | |
159 | 156 | | |
160 | | - | |
161 | 157 | | |
162 | 158 | | |
163 | 159 | | |
164 | 160 | | |
165 | | - | |
166 | | - | |
167 | | - | |
| 161 | + | |
168 | 162 | | |
169 | 163 | | |
170 | | - | |
171 | 164 | | |
172 | 165 | | |
173 | 166 | | |
174 | 167 | | |
175 | 168 | | |
176 | | - | |
177 | 169 | | |
178 | 170 | | |
179 | 171 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
160 | | - | |
161 | | - | |
162 | | - | |
| 160 | + | |
163 | 161 | | |
164 | 162 | | |
165 | | - | |
166 | 163 | | |
167 | 164 | | |
168 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
1001 | | - | |
1002 | | - | |
1003 | | - | |
| 1001 | + | |
1004 | 1002 | | |
1005 | 1003 | | |
1006 | 1004 | | |
| |||
1084 | 1082 | | |
1085 | 1083 | | |
1086 | 1084 | | |
1087 | | - | |
1088 | 1085 | | |
1089 | 1086 | | |
1090 | 1087 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
| 76 | + | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
404 | 403 | | |
405 | 404 | | |
406 | 405 | | |
| |||
0 commit comments