feat(compare): side-by-side A/B/C compare tool (#23) - #149
Merged
Conversation
Adds a standalone `compare` MCP tool alongside confirm/ask/form/gallery: render 2+ full-content variants (Markdown text and/or image/video) as equal-width panes and let the user click one to pick, instead of a small thumbnail (ask) or an independent per-item verdict (gallery). - New Compare.svelte widget with sync_scroll (locked scroll across panes) and a shared max_height so panes stay visually equal. - Rust: compare case in the spec validator (>=2 variants, non-empty value) and the window-size estimator (scales with variant count, grows for image/video variants). - Mirrored compare tool in the Python aiui-mcp package for remote/headless sessions. - Extracted the Markdown-to-sanitized-HTML renderer out of Form.svelte into companion/src/lib/markdown.ts so both widgets share one DOMPurify allowlist instead of drifting. - docs/skill.md and CHANGELOG.md updated.
iret77
force-pushed
the
feat/issue-23-side-by-side-compare
branch
from
July 31, 2026 21:39
c9739dd to
b52e2ba
Compare
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.
Neues
compare-MCP-Tool: A/B- bzw. A/B/C-Vergleich in voll-Panes (Markdown + Bild/Video pro Variante), Klick wählt eine aus →{selected}. Optionalsync_scroll. Zieht den Markdown→sanitized-HTML-Renderer ausForm.sveltein ein geteiltesmarkdown.ts(eine DOMPurify-Allowlist statt Duplikat).Build: Rust 143✓, clippy✓, FE grün, Python 36✓. Mac-E2E offen: Rendering, Klick-vs-Textselektion-Guard, sync-scroll.
Closes #23
Batch-Kontext: Teil eines 6-PR-Sets (#141, #146, #23, #24, #25, #17) aus parallelen Sub-Sessions, das zusammen einen Release ergibt.
mainrebased (Hotspots:mcp.rs,http.rs,skill.md,CHANGELOG.md,server.py).main; Merge via PR (AGENTS.md). CI baut/testet; interaktives Dialog-E2E nur am Mac verifizierbar.Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.