Skip to content

feat(coding-agent): expose streamingBehavior on InputEvent#5107

Merged
badlogic merged 1 commit into
earendil-works:mainfrom
DanielThomas:dannyt/inputevent-streamingbehavior
May 28, 2026
Merged

feat(coding-agent): expose streamingBehavior on InputEvent#5107
badlogic merged 1 commit into
earendil-works:mainfrom
DanielThomas:dannyt/inputevent-streamingbehavior

Conversation

@DanielThomas

Copy link
Copy Markdown
Contributor

This adds streamingBehavior to InputEvent so extensions can distinguish idle prompts from mid-stream steers and queued follow-ups.

Add streamingBehavior to InputEvent so extensions can distinguish
idle prompts from mid-stream steers and queued follow-ups.

- Add streamingBehavior field to InputEvent type
- Thread it through ExtensionRunner.emitInput() and AgentSession.prompt()
- Add streaming-aware input gate example with tests
- Document in extensions.md
@badlogic badlogic added the inprogress Issue is being worked on label May 28, 2026
@badlogic badlogic merged commit 1fc57a5 into earendil-works:main May 28, 2026
2 checks passed
@badlogic

Copy link
Copy Markdown
Collaborator

Follow-up fixed on main:

  • InputEvent.streamingBehavior is now only set when the prompt is actually queued during streaming; idle prompts report undefined even if callers pass the option.
  • Added AgentSession coverage for idle vs streaming input-event behavior.
  • Added the new streaming input example to the examples README.

Validation:

  • cd packages/coding-agent && node ../../node_modules/vitest/dist/cli.js --run test/suite/agent-session-prompt.test.ts
  • npm run check

This comment is AI-generated by /wr

@any-victor

Copy link
Copy Markdown

@badlogic I'd say this looks somewhat familiar 🤔 #4978, at least @DanielThomas looks that much better 😆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inprogress Issue is being worked on

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants