Skip to content

StreamingInputHandler

Category: Input

Source: streaming_input_handler.dart

Enums

StreamingAction

Action to take after handling a terminal event during streaming mode.

ValueDescription
swallowed

Functions

`StreamingInputResult handleStreamingInput({

required TerminalEvent event, required bool isBashRunning, required TextAreaEditor editor, required SlashAutocomplete autocomplete, required SlashCommandRegistry commands, })`

Handle a terminal event while in a non-idle mode (streaming, tool running, or bash running).

Performs side effects on [editor] and [autocomplete] inline. Returns the action the caller should take, plus any slash command output.

[isBashRunning] distinguishes bash mode from agent streaming for cancel behavior.

Released under the MIT License.