Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,10 @@ public Flux<PipelineEvent> processVoiceMessage(String conversationUuid,

return Flux.concat(
Flux.just(new PipelineEvent.StateChange(PipelineState.LISTENING)),
sttEvents.takeUntil(r -> ((PipelineEvent.SttResult) r).isFinal()),
Flux.just(new PipelineEvent.StateChange(PipelineState.PROCESSING)),
llmTtsEvents,
Flux.merge(
sttEvents.takeUntil(r -> ((PipelineEvent.SttResult) r).isFinal()),
llmTtsEvents
),
Flux.just(new PipelineEvent.Complete())
Comment on lines 160 to 166
Copy link

Copilot AI Apr 13, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change removes the emission of PipelineEvent.StateChange(PipelineState.PROCESSING) in the voice pipeline. The class-level state machine comment and processTextMessage both indicate clients should receive a PROCESSING transition, and AiChatWebSocketHandler forwards StateChange events to the client as pipeline_state. Consider emitting a PROCESSING StateChange when the first final STT result is received (e.g., prepend it inside the llmTtsEvents branch so it doesn't fire immediately on subscription), so voice and text flows remain consistent.

Copilot uses AI. Check for mistakes.
);
})
Expand Down
Loading