picocode-core 0.9.147 → 0.9.148

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": "picocode-core",
3
- "version": "0.9.147",
3
+ "version": "0.9.148",
4
4
  "description": "The agent runtime behind pico: sessions, tools, subagents, MCP, memory, and model access",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/controller.js CHANGED
@@ -673,7 +673,10 @@ export function createController({ boot }) {
673
673
  const pendingMessages = state.queued
674
674
  if (expeditedMessages.length > 0 || pendingMessages.length > 0) {
675
675
  set({ expedited: [], queued: [] })
676
- if (result.interrupted && !sendAfterToolTriggered) {
676
+ // an interrupt is the user taking the wheel: nothing pending may
677
+ // auto-send, expedited or not; it all returns to the composer
678
+ if (result.interrupted) {
679
+ sendAfterToolTriggered = false
677
680
  emit('input', [...expeditedMessages, ...pendingMessages].join('\n'))
678
681
  } else {
679
682
  const next = sendAfterToolTriggered ? expeditedMessages : [...expeditedMessages, ...pendingMessages]