Skip to content

fix(tui): avoid question taking over open dialog#28936

Open
julio-Cortes wants to merge 1 commit into
anomalyco:devfrom
julio-Cortes:fix/dialog-question-focus
Open

fix(tui): avoid question taking over open dialog#28936
julio-Cortes wants to merge 1 commit into
anomalyco:devfrom
julio-Cortes:fix/dialog-question-focus

Conversation

@julio-Cortes
Copy link
Copy Markdown

@julio-Cortes julio-Cortes commented May 23, 2026

Issue for this PR

Closes #28935

Type of change

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

What does this PR do?

I dont have a lot of experience on the stack, but following react-ish principles regarding hooks i just added a method to check if the dialog was open checking the size of the stack. Then if the stack is open, it doesnt allow the question or permission prompt (not sure how to call that binding) to take focus

How did you verify your code works?

Following the reproduction steps of the issue

Screenshots / recordings

Before fix:

screenrecord.mp4

After:

screenrecord.mp4

Checklist

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

If you do not follow this template your PR will be automatically rejected.

@github-actions github-actions Bot added the needs:compliance This means the issue will auto-close after 2 hours. label May 23, 2026
@julio-Cortes julio-Cortes marked this pull request as ready for review May 23, 2026 03:02
@github-actions github-actions Bot removed the needs:compliance This means the issue will auto-close after 2 hours. label May 23, 2026
@github-actions
Copy link
Copy Markdown
Contributor

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Question tool takes over command palette dialog

1 participant