Repository navigation
Fix startup screen filling with repeated prompt borders (v0.16.2) - #138
Merged
Merged
Conversation
…pare v0.16.2 On some launches the first agent drew its prompt as rows of bottom borders and could not take input. PromptInput requests focus from OnAfterRenderAsync. When RazorConsole's focus manager already knew the prompt's key, it dispatched focusin and focusout inside the render batch still in progress. That event's render pass started before the batch was cleared, so RazorConsole 0.6.0 applied the batch a second time and inserted every component it created twice. Whether the key was already known depended on a thread-pool observer, which made the failure intermittent. Focus requests made from OnAfterRenderAsync now go through DeferredFocus, which yields to the dispatcher so the batch finishes first. Focus calls in key and click handlers are unchanged. Also bumps the version to 0.16.2, rolls the changelog, and adds a screenshot of the failure. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
DevMando
added a commit
that referenced
this pull request
Nov 11, 2026
Changelog: link to #138 for the 0.16.2 screenshot
TeseySTD
pushed a commit
to TeseySTD/MandoCode
that referenced
this pull request
Nov 12, 2026
…embedding it Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Summary
Fixes the startup bug where MandoCode opened to a screen full of repeated prompt borders and the first agent could not take input. Ships as v0.16.2.
What users experienced
Why it happened
When the prompt appears, MandoCode asks the screen framework (RazorConsole 0.6.0) to give it keyboard focus. If that request landed at exactly the wrong moment, while the framework was still drawing, the framework drew the same update twice. The prompt and everything inside it ended up on screen in duplicate, many times over, and the layout collapsed into the rows of borders shown above.
The "wrong moment" depended on background timing, which is why it was intermittent. The v0.16.1 startup fix targeted a different timing problem, so it did not resolve this one.
What this PR changes
DeferredFocus, holds that rule in one place and documents the reason.How it was verified