Skip to content

fix(tui): render submitted prompts optimistically#36757

Open
opencode-agent[bot] wants to merge 1 commit into
v2from
optimistic-submit
Open

fix(tui): render submitted prompts optimistically#36757
opencode-agent[bot] wants to merge 1 commit into
v2from
optimistic-submit

Conversation

@opencode-agent

Copy link
Copy Markdown
Contributor

Summary

  • render a pending user message and clear the composer before prompt admission completes
  • submit a client-generated message ID so the durable admission event reconciles the optimistic row
  • remove the optimistic row when admission fails

Validation

  • bun typecheck in packages/tui
  • bun test test/cli/tui/data.test.tsx --timeout 30000 (33 passed)
  • OpenCode Drive before/after recording with a steering prompt submitted during an active model step

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant