Skip to content

feat(realtime): add resetInput() method#96

Draft
tomershlasky wants to merge 5 commits intomainfrom
feat/reset-input
Draft

feat(realtime): add resetInput() method#96
tomershlasky wants to merge 5 commits intomainfrom
feat/reset-input

Conversation

@tomershlasky
Copy link
Contributor

@tomershlasky tomershlasky commented Feb 25, 2026

Summary

  • Adds client.resetInput() to reset to passthrough mode at runtime (sends set_image(null, { prompt: null }) — same wire message as initial passthrough)
  • Widens prompt type to accept null in set(), setImage(), and the manager chain
  • No new wire protocol messages — reuses existing passthrough signal

Test plan

  • Verify client.resetInput() switches back to passthrough after a prompt was set
  • Verify client.set({ prompt: null }) works as equivalent
  • Verify existing set(), setPrompt(), setImage() behavior unchanged

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 25, 2026

Open in StackBlitz

npm i https://pkg.pr.new/DecartAI/sdk/@decartai/sdk@96

commit: b8f713d

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant