Skip to content

fix(markdown): preserve wrapped HTTP link destinations - #1114

Merged
vastsa merged 2 commits into
mainfrom
fix/chat-markdown-link-context-menu
Sep 26, 2026
Merged

vastsa merged 2 commits into
mainfrom
fix/chat-markdown-link-context-menu

Conversation

@vastsa

@vastsa vastsa commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Normalize the malformed nested linked-host wrapper around HTTP(S) Markdown destinations before rehype sanitization, restoring the anchor and existing click/context-menu actions without enabling other protocols.
  • Add parser, production-render, and real Electron/Chromium click + right-click regressions.
  • Update E2E-196 with the wrapped-link acceptance case and current partial E2E coverage.

Validation

  • pnpm build:js
  • pnpm --filter @pi-desktop/desktop typecheck
  • node --test --test-concurrency=1 apps/desktop/test/*.test.mjs — 2,957 passed
  • pnpm test:e2e:transcript — passed, including wrapped-link href, click route, and context-menu options
  • Targeted link/menu/open-URL tests — 19 passed
  • pnpm check:pr-base — passed

Settings persistence, browser-action activation, and keyboard menu navigation remain outside this targeted regression and are still marked Draft in E2E-196.

Normalize nested linked-host HTTP(S) destinations before rehype sanitation so transcript anchors retain a usable href and existing click and context-menu actions stay reachable.

Add parser and production-render regressions and update E2E-196.
Exercise the production Markdown renderer in Chromium so wrapped links prove their destination, plain-click route, and pointer context-menu actions.

Record the partial E2E coverage while leaving unrelated settings and keyboard journeys marked Draft.
Copilot AI lite review requested due to automatic review settings September 26, 2026 16:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@vastsa
vastsa merged commit 0433e7c into main Sep 26, 2026
4 checks passed
@vastsa
vastsa deleted the fix/chat-markdown-link-context-menu branch September 26, 2026 17:00
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.

2 participants