feat(console): autolink bare entity ids so a printed tsk_/goal_ is clickable (v0.334.0) - #609
Merged
Merged
Conversation
…they're displayed
Agents reference rows by id in prose ("tsk_dcde91f9e81af705 is in progress"),
which leaves the reader with a token they can only follow by hand-searching a
list. One shared resolver (web/src/lib/entity-links.ts) maps a prefixed id to
its console route, and all three display paths use it:
- remarkWikiLinks: bare ids in rendered markdown, plus an id written as an
inline `code` span (wrapped, so it keeps its monospace look). Also added the
plugin to the four chat/answer surfaces that only had remark-gfm.
- InlineLinks: raw-text surfaces (Inbox cards, memory notes).
- Xterm link provider: a new first matcher, so an id printed in the live pane
is clickable like a URL.
Only prefixes whose route detail IS the id are included; a session's route is
keyed by its tmux name, so ses_ is deliberately absent. mdComponents links to
in-app `#/…` targets now route in place instead of opening a new tab.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015ZUfffxY4hKv7M6wMCcaTz
vikasprogrammer
added a commit
that referenced
this pull request
Aug 11, 2026
…they're displayed (#609) Agents reference rows by id in prose ("tsk_dcde91f9e81af705 is in progress"), which leaves the reader with a token they can only follow by hand-searching a list. One shared resolver (web/src/lib/entity-links.ts) maps a prefixed id to its console route, and all three display paths use it: - remarkWikiLinks: bare ids in rendered markdown, plus an id written as an inline `code` span (wrapped, so it keeps its monospace look). Also added the plugin to the four chat/answer surfaces that only had remark-gfm. - InlineLinks: raw-text surfaces (Inbox cards, memory notes). - Xterm link provider: a new first matcher, so an id printed in the live pane is clickable like a URL. Only prefixes whose route detail IS the id are included; a session's route is keyed by its tmux name, so ses_ is deliberately absent. mdComponents links to in-app `#/…` targets now route in place instead of opening a new tab. Claude-Session: https://claude.ai/code/session_015ZUfffxY4hKv7M6wMCcaTz Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.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.
Agents write ids in prose —
tsk_dcde91f9e81af705 is in progress with an engineer— and until now that was a dead token: you had to copy it and hunt for the row. Now every displayed entity id is a link.One resolver, three display paths (
web/src/lib/entity-links.ts— prefix → console route):remarkWikiLinks(rendered markdown): bare ids, plus an id written as an inline`code`span — backticks are how agents usually write one, so the span is wrapped in a link rather than unwrapped, keeping its monospace look. The four chat/answer surfaces that only hadremark-gfmgot the plugin too.InlineLinks(raw-text surfaces): Inbox cards, memory notes.Scope guard: only prefixes whose route detail IS the id —
tsk_→#/tasks/<id>,goal_→#/goals/<id>,art_→#/artifacts/<id>. A session's route detail is its tmux name, notses_…, so sessions are deliberately absent.False-positive guard:
\b+ a ≥4-hex tail, sogoal_id,x_tsk_…,atsk_…and uppercase lookalikes don't match.Also: markdown links to in-app
#/…targets now route in place instead of opening a pointless new tab.Verified with
npm run typecheck,cd web && npm run build, andnpm run test:governance(all green).🤖 Generated with Claude Code
https://claude.ai/code/session_015ZUfffxY4hKv7M6wMCcaTz