Repository navigation
Commit 86b9f13
fix(cli): never honor memory agent budgets from workspace scope (#13508)
* fix(cli): never honor memory agent budgets from workspace scope
memory.agentMaxTurns and memory.agentTimeoutMinutes cap the turn count
and wall-clock time of the auto-approved background memory agents that
hold write access to the cross-project memory directory, and 0 disables
each limit. A cloned repository could set them in .qwen/settings.json
and remove those budgets. Add both keys to WORKSPACE_RESTRICTED_SETTINGS
so workspace values are stripped with a warning like the other
restricted keys, and state the allowed scopes in the setting
descriptions.
Closes #13477
Refs #13462
* test(cli): trim duplicated memory-budget scope cases, align descriptions
R1-1: main already carries the workspace restriction (#13462) plus
it.each([undefined, 0, 25]), which covers the strip, the per-key warning
and user-scope 0 survival, so drop the two restating cases and move the
list membership assertion into the existing WORKSPACE_RESTRICTED_SETTINGS
describe instead of keeping a second describe for the same rule. The
list-driven strip test keeps feeding 0 for the two numeric budgets.
R1-2: the appended scope sentence named two of the three honored scopes
and never stated the consequence; use the docs row wording verbatim.
R1-4: name the fifth getMemoryAgentTimeoutMinutes() consumer
(memory/metadata-migration.ts) in the timeout description. agentMaxTurns
is unaffected because the migrator hardcodes maxTurns: 1.
Companion JSON regenerated via scripts/generate-settings-schema.ts.
Co-authored-by: Qwen-Coder <[email protected]>
Patrol-Run: qwen-pr-closeout/jmuwnio38a6
* docs(settings): name the memory metadata migration in the agentTimeoutMinutes row
R1-4 follow-up. On main both surfaces carried the same four-agent
enumeration, so the schema-only edit in the previous commit introduced a
docs/schema disagreement instead of closing a pre-existing one. Mirror
the fifth getMemoryAgentTimeoutMinutes() consumer into the docs row.
memory.agentMaxTurns stays at four agents on both surfaces because
metadata-migration.ts hardcodes maxTurns: 1.
Co-authored-by: Qwen-Coder <[email protected]>
Patrol-Run: qwen-pr-closeout/jmuwnio38a6
---------
Co-authored-by: Qwen-Coder <[email protected]>1 parent 1246dfb commit 86b9f13
4 files changed
Lines changed: 17 additions & 6 deletions
File tree
- docs/users/configuration
- packages
- cli/src/config
- vscode-ide-companion/schemas
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
431 | 431 | | |
432 | 432 | | |
433 | 433 | | |
434 | | - | |
| 434 | + | |
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4261 | 4261 | | |
4262 | 4262 | | |
4263 | 4263 | | |
| 4264 | + | |
| 4265 | + | |
| 4266 | + | |
| 4267 | + | |
| 4268 | + | |
| 4269 | + | |
| 4270 | + | |
| 4271 | + | |
| 4272 | + | |
4264 | 4273 | | |
4265 | 4274 | | |
4266 | 4275 | | |
| |||
4368 | 4377 | | |
4369 | 4378 | | |
4370 | 4379 | | |
4371 | | - | |
| 4380 | + | |
| 4381 | + | |
| 4382 | + | |
4372 | 4383 | | |
4373 | 4384 | | |
4374 | 4385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2440 | 2440 | | |
2441 | 2441 | | |
2442 | 2442 | | |
2443 | | - | |
| 2443 | + | |
2444 | 2444 | | |
2445 | 2445 | | |
2446 | 2446 | | |
| |||
2451 | 2451 | | |
2452 | 2452 | | |
2453 | 2453 | | |
2454 | | - | |
| 2454 | + | |
2455 | 2455 | | |
2456 | 2456 | | |
2457 | 2457 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1177 | 1177 | | |
1178 | 1178 | | |
1179 | 1179 | | |
1180 | | - | |
| 1180 | + | |
1181 | 1181 | | |
1182 | 1182 | | |
1183 | 1183 | | |
1184 | 1184 | | |
1185 | | - | |
| 1185 | + | |
1186 | 1186 | | |
1187 | 1187 | | |
1188 | 1188 | | |
| |||
0 commit comments