Skip to content

fix(app): show stopping state on the prompt stop button#30696

Open
ysm-dev wants to merge 1 commit into
anomalyco:devfrom
ysm-dev:fix/app-stop-button-feedback
Open

fix(app): show stopping state on the prompt stop button#30696
ysm-dev wants to merge 1 commit into
anomalyco:devfrom
ysm-dev:fix/app-stop-button-feedback

Conversation

@ysm-dev
Copy link
Copy Markdown
Contributor

@ysm-dev ysm-dev commented Jun 4, 2026

Issue for this PR

Closes #30695

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

In the web UI the prompt stop button is driven only by the server working() state, so when you interrupt a prompt nothing changes on the button for the 1-2s it takes the session to actually abort. It looks like the click didn't register, so you end up clicking again.

This tracks an optimistic aborting signal in createPromptSubmit, set as soon as the abort request is sent and cleared once the session reports not-working (the source of truth, so a new prompt starts clean). While aborting, the stop button shows the existing Spinner and is disabled, via a new loading prop on the shared IconButton.

How did you verify your code works?

Tested directly in the local web UI (opencode serve + packages/app dev): the stop button shows the spinner immediately on click and returns to the send icon once the session goes idle. Also ran bun typecheck in packages/app and packages/ui.

Screenshots / recordings

stop button shows a spinner while aborting

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@ysm-dev ysm-dev requested a review from adamdotdevin as a code owner June 4, 2026 06:17
@github-actions github-actions Bot added contributor needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Jun 4, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 4, 2026

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

web: stop button shows no feedback while interrupting

1 participant