Repository navigation
fix(mecatui): connect reasoning and responses with assistant rail - #2402
Merged
Merged
Conversation
Keep reasoning directly below the assistant header and separate it from answer text in both comfort and detail modes. Use the existing LLM rail style and keep presentation chrome out of copied text. Preserve assistant selections across width reflow with bounded semantic endpoint context and exact-copy validation. Cover streamed rendering, resize, duplicate text, and selection mutation cases. Co-authored-by: Mecatl <[email protected]>
This was referenced Oct 18, 2026
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
mecatlheader and add one blank content row before the answer when both are present.Verification
Passed locally on the final implementation:
task testtask linttask test:racetask test:goldentask docstask buildgo run ./cmd/mecademo, including tool call, permission ask/approval, and final resultgit diff --checkCoverage includes live reasoning deltas through real render ticks and turn-end flushing, collapsed/expanded layout, narrow/wide wrapping, theme-owned rails, clipboard output, both resize directions, duplicate text, and fail-closed mutation/ambiguity cases.
An earlier full-suite run hit the unchanged
TestFireProvisionalAdmissionDeadlineKeepsPendingUntilRecoverytiming failure; an isolated retry also hit its cleanup gate. A separate clean-baseline five-repeat run passed, andinternal/apphas no dependency on the changed UI paths. The final full suite and full race suite passed without unrelated changes or gate waivers.task docsproduced unrelated workspace-path-dependent wrapping in the generated CLI reference; that generated noise was inspected and restored, not included here. No user guide update is needed for this self-evident presentation change.Review
Reviewed against
2f1175e21de30f16fd544081bb4c6ac7d04dcbee, with focused rechecks after fixes:PANEL: ship_blockers=0 important=0 advisory=1 reviewer_failures=0
API compatibility
No wire behavior, schema, advertised features, engine semantics, SDK, public Go API, or stored-data changes. This is a TUI-local rendering and selection change. Existing clients need no changes; API major/features remain unchanged and no upgrade steps are required.