Skip to content

fix(tui): clear question dock after reply#28008

Open
mturac wants to merge 1 commit into
anomalyco:devfrom
mturac:fix/27976-clear-question-dock-template
Open

fix(tui): clear question dock after reply#28008
mturac wants to merge 1 commit into
anomalyco:devfrom
mturac:fix/27976-clear-question-dock-template

Conversation

@mturac
Copy link
Copy Markdown

@mturac mturac commented May 17, 2026

Issue for this PR

Closes #27976
Closes #27977

Type of change

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

What does this PR do?

After a question is successfully replied to or rejected in the TUI, the matching pending question is cleared from local sync state immediately. The existing event-driven cleanup still handles delayed question.replied and question.rejected events, so this only removes the stale UI window between a successful request and the sync event.

How did you verify your code works?

  • bun test test/config/tui.test.ts --timeout 30000
  • bun typecheck
  • bun turbo typecheck
  • bunx prettier --write packages/opencode/src/cli/cmd/tui/routes/session/question.tsx
  • git diff --check

Screenshots / recordings

Not included. This is a state cleanup fix covered by the TUI regression test.

Checklist

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

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.

Question dock stays open after successful reply in web app Question dock stays open after successful reply in web app

1 participant