Skip to content

fix(mecatui): connect reasoning and responses with assistant rail - #2402

Merged
jbeda merged 1 commit into
mainfrom
fix/mecatui-assistant-transcript-layout
Oct 18, 2026
Merged

jbeda merged 1 commit into
mainfrom
fix/mecatui-assistant-transcript-layout

Conversation

@jbeda

@jbeda jbeda commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Place the reasoning summary directly beneath the mecatl header and add one blank content row before the answer when both are present.
  • Use the existing rose LLM rail beside reasoning and answer text, consistently in comfort and detail modes. Keep user and assistant body columns aligned.
  • Keep rail chrome out of clipboard text and preserve assistant word selections across width changes. Reflow tests exposed whitespace-dependent endpoint identity; bounded semantic context now handles both resize directions while retaining duplicate-match rejection and exact copied-text validation.
  • Correct the contributor guide's stale rail statement and refresh the rendered transcript golden.

Verification

Passed locally on the final implementation:

  • Complete mecatui suite and focused rendering/selection regressions
  • task test
  • task lint
  • task test:race
  • task test:golden
  • task docs
  • task build
  • Offline go run ./cmd/mecademo, including tool call, permission ask/approval, and final result
  • git diff --check

Coverage 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 TestFireProvisionalAdmissionDeadlineKeepsPendingUntilRecovery timing failure; an isolated retry also hit its cleanup gate. A separate clean-baseline five-repeat run passed, and internal/app has no dependency on the changed UI paths. The final full suite and full race suite passed without unrelated changes or gate waivers.

task docs produced 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:

  • Spec: no remaining findings.
  • Standards: stale contributor-guide rule corrected; no remaining findings.
  • Test adequacy: live-event and reflow coverage gaps addressed; one optional advisory remains to add a dedicated bounded-allocation/work regression for selection-context collection. Functional reflow and rejection contracts are covered.
  • Domain: architecture, security, library reuse, and duplication reviews complete. Wide-origin reflow and repeated full-region allocation findings addressed; no remaining domain findings.

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.

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]>
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.

1 participant