pi-agent-extensions 0.2.2 → 0.2.3
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.
|
@@ -93,7 +93,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
93
93
|
if (ctx.hasUI) {
|
|
94
94
|
ctx.ui.notify(`👋 ${msg}`, "info");
|
|
95
95
|
}
|
|
96
|
-
|
|
96
|
+
// Use setImmediate to ensure shutdown happens after command handler completes
|
|
97
|
+
setImmediate(() => ctx.shutdown());
|
|
97
98
|
},
|
|
98
99
|
});
|
|
99
100
|
|
|
@@ -104,7 +105,8 @@ export default function (pi: ExtensionAPI) {
|
|
|
104
105
|
if (ctx.hasUI) {
|
|
105
106
|
ctx.ui.notify(`👋 ${msg}`, "info");
|
|
106
107
|
}
|
|
107
|
-
|
|
108
|
+
// Use setImmediate to ensure shutdown happens after command handler completes
|
|
109
|
+
setImmediate(() => ctx.shutdown());
|
|
108
110
|
},
|
|
109
111
|
});
|
|
110
112
|
|