Repository navigation
refactor(mecatui): prepare conversation cards functionally - #1744
Merged
jbeda merged 19 commits intoSep 23, 2026
Merged
Conversation
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
Co-Authored-By: mecatl <[email protected]>
jbeda
force-pushed
the
impl/mecatui-functional-conversation-card-rendering
branch
from
September 22, 2026 23:57
c7118c4 to
8ee0c30
Compare
Co-Authored-By: mecatl <[email protected]>
jbeda
marked this pull request as ready for review
September 23, 2026 00:17
Co-Authored-By: mecatl <[email protected]>
jbeda
deleted the
impl/mecatui-functional-conversation-card-rendering
branch
September 23, 2026 00:39
This was referenced Sep 23, 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.
Summary
Implements the approved functional conversation-block rendering contract from #1739, keeping cache ownership and document-local frame state in the mecatui renderer while moving stateless structured-block preparation to a pure boundary.
cmd/mecatui/ui/internal/blocks, which prepares user, notice, hook, turn-stat, error, delivery, and styled tool blocks as final lines plus lockstep provenance rows.blocks.Theme; UI owns stylesheet-role mapping and block-to-input adapters.blockRenderCache, including whole-block output, Markdown, fallback provenance, and the incremental prefix. Cache validity now uses real production inputs: block revision, width, and expansion state.cmd/mecatui/internal/terminaltext, with distinct layout-preserving and single-line sanitation paths used by UI and customization rendering.Follow-up
#1789 tracks the intentionally deferred typed runtime conversation-block model. This PR only adds explicit UI-to-block-preparation adapters as the migration seam.
Validation
task lintgo test ./cmd/mecatui/ui/...go test ./cmd/mecatui/ui ./cmd/mecatui/customizationcd sdk/typescript && pnpm test(59 files / 332 tests)cd sdk/typescript/examples/slack-bot && pnpm test(78 tests)git diff --check