Skip to content

fix: auto-submit prompt template completions - #913

Draft
zahlekhan wants to merge 1 commit into
thesysdev:mainfrom
zahlekhan:agent/starter-prompt-auto-submit
Draft

fix: auto-submit prompt template completions#913
zahlekhan wants to merge 1 commit into
thesysdev:mainfrom
zahlekhan:agent/starter-prompt-auto-submit

Conversation

@zahlekhan

Copy link
Copy Markdown
Contributor

Summary

  • submit a prompt-template completion immediately after composing it with the prefilled prompt stem
  • preserve the initial template-chip prefill behavior so users can still edit or submit the stem manually
  • update the related API and Storybook descriptions to match the new interaction

Root cause

The contextual starter handler appended the selected completion to the controlled composer draft and returned focus to the textarea. It never called the thread's message processor, so users had to press Send manually before generation started.

Impact

Choosing a contextual completion now sends the complete prompt and starts generation in the same click.

Validation

  • pnpm --filter @openuidev/react-ui test (27 tests passed)
  • pnpm --filter @openuidev/react-ui typecheck
  • Prettier check on changed files
  • pnpm --filter @openuidev/react-ui lint:check (0 errors; existing warnings only)
  • Storybook interaction verified: template selection followed by completion selection immediately produced the combined user message and loading state

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