Skip to content

feat(web): open Docs Cloud links from chat in the Docs panel - #93

Merged
riccardovandra merged 1 commit into
mainfrom
feat/docs-cloud-link-open
Nov 5, 2026
Merged

riccardovandra merged 1 commit into
mainfrom
feat/docs-cloud-link-open

Conversation

@riccardovandra

Copy link
Copy Markdown
Owner

Problem

A Docs Cloud link that an agent writes in a chat message (for example https://docs.upliftedconsulting.com/d/...) opened in the external browser. Only the Docs Cloud card that appears after create_doc opened the doc inside T3 Code.

Fix

Chat markdown links whose origin matches this environment's configured Docs Cloud now open in the Docs panel on a plain click, using the same openDocsCloudInPanel path as the card. These links show a cloud icon in place of the favicon so they read as in-app. Cmd/Ctrl/Shift/Alt-click and the right-click menu still open externally. Links to any other origin are unchanged.

Verification

  • New browser test in ChatMarkdown.browser.test.tsx: plain click opens the panel at the doc's path; Cmd-click and other origins do not.
  • vp lint, vp fmt, tsc --noEmit for apps/web.
  • ChatMarkdown streaming > runs only a complete single-line shell block after a click fails on origin/main too; unrelated.

Assumptions

  • Web and desktop only. Mobile has no Docs Cloud panel.
  • The origin match uses the Docs Cloud URL from the environment's MCP hub, so nothing is hard-coded.

Model: Claude Opus 5.5, Claude Code harness in T3 Code.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@riccardovandra
riccardovandra merged commit 8a16b90 into main Nov 5, 2026
1 check passed
@riccardovandra
riccardovandra deleted the feat/docs-cloud-link-open branch November 5, 2026 08:22
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.

1 participant