oira666_pi-subagent 0.7.13 → 0.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/configuration.md +3 -1
- package/extension/settings-commands.ts +7 -6
- package/package.json +1 -1
- package/startup.js +6 -6
package/docs/configuration.md
CHANGED
|
@@ -119,7 +119,9 @@ Waiting parents park instead of rejecting blocked descendants or exceeding the c
|
|
|
119
119
|
|
|
120
120
|
Preset definitions, the fallback model, extension exclusions, runner executables, retry counts and timeouts remain file settings.
|
|
121
121
|
|
|
122
|
-
Commands apply to the main session.
|
|
122
|
+
Commands apply to the main session. Enable/disable, limits, delegation and recovery controls, inspection, and saving settings remain available while the main agent is busy. Changing `intelligence` requires an idle main agent because in-flight calls retain the previous preset schema. Changes affect subsequent launches and resumes; they do not stop or reconfigure existing workers. Tool availability and schemas update for subsequent model requests, but an already-running request cannot see the updated tool list. Disabling also rejects launch or resume calls from that request if execution has not started. Calls already preparing, including those waiting for project-agent approval, may finish admission. Concurrency changes update the live queue immediately.
|
|
123
|
+
|
|
124
|
+
Session commands override startup environment values and CLI delegation flags without changing `process.env`. A startup environment disable prevents the entire extension from loading, so commands are unavailable in that case. Child sessions cannot use commands to change inherited grants.
|
|
123
125
|
|
|
124
126
|
Changes are session-only and clear on session replacement, resume or reload. The concurrency cap is shared across processes, not saved to configuration unless explicitly requested. Lowering the live cap does not stop active workers. Queued work waits until the live-worker count falls below the new cap. Raising the cap admits queued work immediately. Changing the tasks-per-call limit affects new submissions only, not already accepted batches. Budget changes preserve all spent and reserved slots, cannot go below that spending, and cannot enlarge a child's grant. Temporary budget increases disappear when the session ends, but any slots used under them remain spent.
|
|
125
127
|
|
|
@@ -154,15 +154,11 @@ function applySettings(state: ExtensionState, ctx: ExtensionCommandContext): voi
|
|
|
154
154
|
updateCombinedUsageStatus(state, ctx);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
-
function editable(state: ExtensionState, ctx: ExtensionCommandContext
|
|
157
|
+
function editable(state: ExtensionState, ctx: ExtensionCommandContext): boolean {
|
|
158
158
|
if (state.currentDepth > 0) {
|
|
159
159
|
ctx.ui.notify("Change session settings in the main session, not in a child with an inherited grant.", "warning");
|
|
160
160
|
return false;
|
|
161
161
|
}
|
|
162
|
-
if (!allowBusy && !ctx.isIdle()) {
|
|
163
|
-
ctx.ui.notify("Wait for the current assistant turn to finish before changing settings.", "warning");
|
|
164
|
-
return false;
|
|
165
|
-
}
|
|
166
162
|
return true;
|
|
167
163
|
}
|
|
168
164
|
|
|
@@ -217,7 +213,12 @@ export function registerSettingsCommands(state: ExtensionState): void {
|
|
|
217
213
|
return;
|
|
218
214
|
}
|
|
219
215
|
const liveLimit = control.name === "max-concurency" || control.name === "max-total";
|
|
220
|
-
if (!editable(state, ctx
|
|
216
|
+
if (!editable(state, ctx)) return;
|
|
217
|
+
// In-flight calls retain the old schema but read the current preset settings.
|
|
218
|
+
if (control.name === "intelligence" && !ctx.isIdle()) {
|
|
219
|
+
ctx.ui.notify("Wait for the current assistant turn to finish before changing intelligence.", "warning");
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
221
222
|
const value = parseValue(control, raw);
|
|
222
223
|
if (control.name === "max-total" && state.currentBudget)
|
|
223
224
|
setSessionBudgetLimit(state.currentBudget, Number(value));
|
package/package.json
CHANGED
package/startup.js
CHANGED
|
@@ -11500,15 +11500,11 @@ function applySettings(state, ctx) {
|
|
|
11500
11500
|
if (state.canDelegate) ensureSubagentToolActive(state.pi);
|
|
11501
11501
|
updateCombinedUsageStatus(state, ctx);
|
|
11502
11502
|
}
|
|
11503
|
-
function editable(state, ctx
|
|
11503
|
+
function editable(state, ctx) {
|
|
11504
11504
|
if (state.currentDepth > 0) {
|
|
11505
11505
|
ctx.ui.notify("Change session settings in the main session, not in a child with an inherited grant.", "warning");
|
|
11506
11506
|
return false;
|
|
11507
11507
|
}
|
|
11508
|
-
if (!allowBusy && !ctx.isIdle()) {
|
|
11509
|
-
ctx.ui.notify("Wait for the current assistant turn to finish before changing settings.", "warning");
|
|
11510
|
-
return false;
|
|
11511
|
-
}
|
|
11512
11508
|
return true;
|
|
11513
11509
|
}
|
|
11514
11510
|
function registerSettingsCommands(state) {
|
|
@@ -11555,7 +11551,11 @@ function registerSettingsCommands(state) {
|
|
|
11555
11551
|
return;
|
|
11556
11552
|
}
|
|
11557
11553
|
const liveLimit = control.name === "max-concurency" || control.name === "max-total";
|
|
11558
|
-
if (!editable(state, ctx
|
|
11554
|
+
if (!editable(state, ctx)) return;
|
|
11555
|
+
if (control.name === "intelligence" && !ctx.isIdle()) {
|
|
11556
|
+
ctx.ui.notify("Wait for the current assistant turn to finish before changing intelligence.", "warning");
|
|
11557
|
+
return;
|
|
11558
|
+
}
|
|
11559
11559
|
const value = parseValue(control, raw);
|
|
11560
11560
|
if (control.name === "max-total" && state.currentBudget)
|
|
11561
11561
|
setSessionBudgetLimit(state.currentBudget, Number(value));
|