Skip to content

Commit 810b0d3

Browse files
committed
fix(controller): use emitReceived instead of emitWaiting for queue state
Update the emitter to use emitReceived with active=false when showing prompt queue state. This ensures the UI displays step information without enabling the input box prematurely.
1 parent 1a88b20 commit 810b0d3

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/workflows/input/providers/controller.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,13 @@ export class ControllerInputProvider implements InputProvider {
6969
this.aborted = false;
7070

7171
// Emit queue state immediately so UI shows step info while controller runs
72+
// Use emitReceived (active=false) to show info without enabling input box
7273
if (context.promptQueue.length > 0) {
73-
this.emitter.emitWaiting({
74-
stepIndex: context.stepIndex,
74+
this.emitter.emitReceived({
75+
input: '',
76+
source: 'controller',
7577
promptQueue: context.promptQueue,
7678
promptQueueIndex: context.promptQueueIndex,
77-
monitoringId: context.stepOutput.monitoringId,
7879
});
7980
}
8081

0 commit comments

Comments
 (0)