Skip to content

Commit 6c06f86

Browse files
committed
Fix: use followUp delivery for background image messages
1 parent 4815d53 commit 6c06f86

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pi/glance.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ export default function (pi: ExtensionAPI) {
248248
imageCount++;
249249
// Dispatch to any blocking tool call first
250250
dispatchToWaiters(image);
251-
// Also inject into conversation
252-
pi.sendUserMessage(`Screenshot: ${image.url}`);
251+
// Inject into conversation — use followUp so it queues if agent is busy
252+
pi.sendUserMessage(`Screenshot: ${image.url}`, { deliverAs: "followUp" });
253253
}
254254

255255
// Start background listener when session starts

0 commit comments

Comments
 (0)