Repository navigation
fix(mecatui): stop forcing a screen clear on run completion - #2679
Merged
Merged
Conversation
Related to #2678. Keep the issue open pending manual confirmation of the intermittent whole-screen flash. Co-authored-by: Mecatl <[email protected]>
Open
3 of 5 tasks
Co-authored-by: Mecatl <[email protected]>
jbeda
marked this pull request as ready for review
November 4, 2026 15:43
Preserve the remaining completion, recovery, focus, and live-feed commands without an unused refresh wrapper. No new repaint binding. Co-authored-by: Mecatl <[email protected]>
Merged
2 tasks
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
refreshCmd()helper; keep normal viewport refreshes and Bubble Tea redraws.Update(ResultMsg)regression test to inspect returned commands for screen clears and verify the final streamed tail remains in both the viewport andView().Related to #2678. Do not close that issue when merging this PR. It is assigned to @jbeda and must remain open until he manually confirms whether long streaming responses still cause an intermittent whole-screen flash.
This is a narrow mitigation/A/B change, not a claim that the reported flicker's root cause is proven. The issue retains the symptoms, investigation timeline, alternative explanations, and next diagnostics if the flash persists.
Verification
run completion must not force a screen clear.GOMAXPROCS=4 task lint— pass.GOMAXPROCS=4 task test— pass.go run ./cmd/mecademo— pass; observed tool call/result, permission ask/approval, and final result.GOMAXPROCS=4 task test:race— pass.Initial gate attempts exposed an existing test that explicitly required the old repaint (updated in this PR), one server-startup connection timeout (passed immediately in isolation and in the full rerun), and a lint timeout under concurrent gate load (complete rerun passed).
API compatibility
Client-local rendering only. No wire, Go public API, stored-data, API-major, or feature-identifier changes; no coordinated upgrade required.
Manual verification
Run this build, ask for long streaming responses, and observe completion. Confirm that the final conversation remains visible without a whole-screen flash or stale-cell corruption. Report the outcome on #2678; merging this PR alone is not the resolution gate.