osai-agent 4.2.48 → 4.2.50
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 +1 -1
- package/src/ui/App.js +5 -1
package/package.json
CHANGED
package/src/ui/App.js
CHANGED
|
@@ -603,7 +603,11 @@ export function App({ createAgentLoop, agentConfig, initialSession = null, onExi
|
|
|
603
603
|
if (!agentLoopActiveRef.current) return;
|
|
604
604
|
if (cancelRequestedRef.current) return;
|
|
605
605
|
|
|
606
|
-
|
|
606
|
+
const loop = agentLoopRef.current;
|
|
607
|
+
if (loop) {
|
|
608
|
+
if (loop._subagentActive && loop._subagentLoop) { try { loop._subagentLoop.cancel?.(); } catch {} }
|
|
609
|
+
try { loop?.cancel?.(); } catch {}
|
|
610
|
+
}
|
|
607
611
|
updateUserActivity();
|
|
608
612
|
|
|
609
613
|
// Close any active tool_start events with synthetic tool_end
|