fix(bug-dock): preserve focus and remove yellow border flash on diagnostics completion (fixes #478) - #544
Merged
Merged
Conversation
…ostics completion (amicode#478) The textarea's border toggled to warning yellow when busy flipped idle exactly as background gh/bash diagnostics finished, and the reactive busy+agentText update stole focus mid-typing. Stabilize the border to the base token with a focus ring, and restore focus if the textarea had it before the patch (deferred via rAF, blur timer keeps wasFocused alive through the synchronous blur from the DOM update).
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesBug report input behavior
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: ✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
This was referenced Aug 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #478.
Root cause:
BugDockView's textarea toggledborder-v2-state-fg-warning(yellow) when!busy— exactly the state flip that happens when backgroundgh/bashdiagnostics finish — and the synchronousbusy+agentTextreactive update stole focus mid-typing (the blur fires before the deferred effect).Fix:
border-v2-border-border-basewith a neutral focus ring (focus:border-v2-border-border-focus) — diagnostics now completes silently, no yellow flash.wasFocused+ textarea ref, restore viarequestAnimationFramewhenbusyoragentTextchange; blur timer keepswasFocusedalive through the synchronous blur from the DOM patch.Verified:
pnpm --filter amicodeextension tests 107/107 pass; overlay edit is type-correct (no new deps).Summary by CodeRabbit
Bug Fixes
Style