Skip to content

Handle links to room explorer artifacts (Playground)#2779

Merged
kzsb03 merged 8 commits intodevfrom
ck-message-links-to-room
Mar 9, 2026
Merged

Handle links to room explorer artifacts (Playground)#2779
kzsb03 merged 8 commits intodevfrom
ck-message-links-to-room

Conversation

@ckelly17
Copy link
Copy Markdown
Contributor

@ckelly17 ckelly17 commented Mar 1, 2026

Description

Creates a pathway and handling mechanism for playground model to create clickable links to artifacts in room explorer. This is most useful for citations and linking to generated outputs.

Changes Made

  • Override URL sanitization in libs/ui/src/next/markdown.tsx to allow passing a custom prefix ("room://")
  • Add custom link handling in packages/playground/src/components/message/response-message-text.tsx and packages/playground/src/components/message/response-message.tsx to allow links starting with room:// to open side panel instead of navigating out

How to Test

  1. Upload a file to room explorer
  2. Instruct model on how to create a link to that location. Ideally, this would be in a system prompt or some generalized instructions, but you can reproduce with a manual prompt (e.g., Provide citations in your response by prefixing "room://" to the hyperlink you create to the file path)
  3. Click on link in chat. It should open the file explorer to the cited artifact.

Prompt
image

Result
image

Notes

This feature relies on specific prompting instructions to the LLM. It is not a generic solution. If links are rendered without the room:// prefix, current click behavior should not change

image

@ckelly17 ckelly17 marked this pull request as ready for review March 1, 2026 23:51
@ckelly17 ckelly17 requested a review from a team as a code owner March 1, 2026 23:51
@ckelly17 ckelly17 changed the title Ck message links to room Handle links to room explorer artifacts (Playground) Mar 1, 2026
@kzsb03 kzsb03 merged commit bab8ccf into dev Mar 9, 2026
3 checks passed
@kzsb03 kzsb03 deleted the ck-message-links-to-room branch March 9, 2026 14:29
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 9, 2026

@CodiumAI-Agent /update_changelog

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.

3 participants