Navigate Rose-internal links in the app, not a new tab

↗ view on GitHub · Peter Dombkins · 2026-08-02 · 23d1752d

Every markdown link in an assistant message rendered with target="_blank",
including relative ones. So the K&S matter link the assistant now returns after
every write opened a new tab and reloaded the entire app, dropping the user out
of the shell - the precise thing /workspace was built to avoid.

Relative hrefs now go through next/link: same tab, client-side, sidebar intact.
External links keep _blank and noopener.

Checked while investigating a reported truncation of that link: the stored
messages are complete, closing bracket and all, and nothing in the renderer
clamps. The truncation was in copying out of the browser.
Repository pdombkins/rose_lawyer
Author Peter Dombkins <pdombkins@gmail.com>
Authored
Parents 5ad66527
Stats 2 files changed , +34
Part of Guardrails on AI-agent writes to K&S

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-23d1752d.md from inside the repo you want the change in.

⬇ Download capture-commit-23d1752d.md