osai-agent 4.2.47 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "osai-agent",
3
- "version": "4.2.47",
3
+ "version": "4.2.50",
4
4
  "type": "module",
5
5
  "description": "OS AI Agent - YOUR AI AGENT",
6
6
  "main": "src/index.js",
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
- try { agentLoopRef.current?.cancel?.(); } catch {}
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
@@ -38,7 +38,7 @@ export function ConfirmationDialog({ promptText, details, onConfirm }) {
38
38
  h(Text, { color: '#9aa5ce' }, description)
39
39
  ) : h(Text, { color: 'white', bold: true }, promptText),
40
40
  h(InputShell, { flexDirection: 'row', marginTop: 1, paddingX: 1 },
41
- h(Text, { color: isDangerous ? '#f7768e' : '#e0af68' }, isDangerous ? 'Type "confirm" to proceed: ' : 'Run this? (y/N): '),
41
+ h(Text, { color: '#e0af68' }, !details ? 'Enter password: ' : (isDangerous ? 'Type "confirm" to proceed: ' : 'Run this? (y/N): ')),
42
42
  h(Text, { color: '#c0caf5' }, value || ' ')
43
43
  )
44
44
  );