fix(agent-gui): render pasted text mentions in conversation#1519
Draft
chovy-ai wants to merge 1 commit into
Draft
fix(agent-gui): render pasted text mentions in conversation#1519chovy-ai wants to merge 1 commit into
chovy-ai wants to merge 1 commit into
Conversation
Signed-off-by: chovy <zweybn@gmail.com>
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
Long pasted text is stored as a canonical
mention://pasted-text/...reference. The read-only rich-text conversation renderer did not recognize that built-in resource, so it fell back to ordinary text and exposed the complete Markdown URL in consuming applications such as TSH.This change promotes
pasted-textto a first-class Agent GUI mention, preserves its href/path through parsing and attribute round-trips, and renders it through the existing fileMentionPillpresentation. It also adds parser and read-only conversation regression coverage to ensure the canonical URL is no longer shown.Verification
pnpm --filter @tutti-os/agent-gui exec vitest run --environment jsdom --maxWorkers=3 shared/AgentRichTextReadonly.spec.tsx agent-gui/agentGuiNode/agentRichText/agentFileMentionExtension.spec.ts— 2 files and 56 tests passed, including the pasted-text conversation regression.pnpm --filter @tutti-os/agent-gui test— 246 files and 2092 tests passed.pnpm --filter @tutti-os/agent-gui typecheck— passed.pnpm check:changed --tail-lines 100— 11 lanes passed; the pre-push push-ready check passed 12 lanes.Checklist