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 +1 -1
- package/src/controller.js +4 -1
package/package.json
CHANGED
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
|
-
|
|
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]
|