@mrclrchtr/supi-extras 6.3.0 → 6.4.0
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrclrchtr/supi-extras",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"description": "Shortcuts, prompt stash, activity indicators, and small session helpers",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"clipboardy": "^5.3.1",
|
|
36
|
-
"@mrclrchtr/supi-core": "6.
|
|
36
|
+
"@mrclrchtr/supi-core": "6.4.0"
|
|
37
37
|
},
|
|
38
38
|
"bundledDependencies": [
|
|
39
39
|
"@mrclrchtr/supi-core"
|
package/src/tab-spinner.ts
CHANGED
|
@@ -223,15 +223,19 @@ export default function tabSpinner(pi: ExtensionAPI) {
|
|
|
223
223
|
resumePendingAgent(ctx);
|
|
224
224
|
return;
|
|
225
225
|
}
|
|
226
|
+
if (hasActiveAgent) {
|
|
227
|
+
rememberContext(ctx);
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
226
230
|
hasActiveAgent = true;
|
|
227
231
|
increment(ctx);
|
|
228
232
|
});
|
|
229
233
|
|
|
230
234
|
pi.on("turn_start", async (_event, ctx) => resumePendingAgent(ctx));
|
|
231
235
|
|
|
232
|
-
pi.on("
|
|
233
|
-
|
|
234
|
-
|
|
236
|
+
pi.on("agent_settled", async (_event, ctx) => {
|
|
237
|
+
if (!hasActiveAgent) return;
|
|
238
|
+
rememberContext(ctx);
|
|
235
239
|
hasActiveAgent = false;
|
|
236
240
|
agentEnded();
|
|
237
241
|
});
|