Repository navigation
Description
Summary
When a plugin renders the SDK's ThreadChat component on a full-page plugin route, message-body link routing for workspace-local content is missing. Inline code spans holding workspace-relative .md paths render as inert code instead of clickable file-preview links, @thread: mentions are not clickable, and workspace-relative images do not resolve. The same message in the main thread pane renders all three correctly. The SDK's Markdown component, used in the very same plugin surface, links everything correctly, which shows the routing data is reachable from plugin surfaces; ThreadChat just does not get it.
Versions and environment
- bb 0.44.0 (desktop app), macOS 26 / arm64
@get-bb/plugin-sdk0.5.29- focus-board 0.5.3 as the repro consumer (source: https://github.com/cristoslc/bb-plugin-focus-board, installed from a local path, not yet on the bb-community marketplace); any plugin embedding
ThreadChaton a full-page route should behave the same - No agent CLI involved; this is app-shell rendering, not provider behavior
- Setup notes: plugin full-page route (
/plugins/focus-board/board), not a docked panel; no remote machine or custom ports
Steps to reproduce
- Install focus-board 0.5.3 from https://github.com/cristoslc/bb-plugin-focus-board (or a minimal plugin that renders
<ThreadChat threadId={…} variant="full" …/>on a full-page plugin route). - Have an agent post a message in any thread that contains:
- an inline code span with a workspace-relative markdown path, e.g.
`docs/rfcs/rfc-support-triage-process.md` - an
@thread:mention of another thread - a workspace-relative image reference
- an inline code span with a workspace-relative markdown path, e.g.
- Open that thread in the main thread pane and note the rendering.
- Open the same thread's chat in the plugin's full-page board route and compare.
Minimal-repro shape: the smallest plugin that mounts ThreadChat on a full-page route and displays a thread whose last message contains one .md inline code span is enough; no provider-specific behavior is involved.
Did not involve / not needed: external https:// links (they route fine), and the .md-only linkify gate itself (that filter is by design).
Expected vs actual
Expected: the full-page ThreadChat renders the same local-file routing as the main pane: .md inline code spans become clickable file-preview links (underline + external-link icon), @thread: mentions open the referenced thread, and workspace-relative images resolve against the workspace root.
Actual: in the full-page route the .md code span renders as plain dead code with no link affordance, the @thread: mention is not clickable, and the workspace-relative image does not resolve. Side-by-side, the main pane is fully wired and the plugin surface is fully inert for local content.
Workarounds: focus-board 0.5.3 ships a plugin-side stopgap: decorate rendered code spans in the chat DOM and capture clicks, then call the plugin's own file-open surface. It works but duplicates host routing logic and does not cover mentions or images. The clean fix is upstream.
Evidence
From reverse-engineering the shipped 0.44.0 desktop bundle (app asar extracted; evidence is minified identifiers as shipped, so no repo permalink; I can re-verify against main and supply a commit SHA if useful):
- The SDK
Markdowncomponent reads the app-panel context unconditionally, so it receivesonOpenLocalFileLink,workspaceRootPath, andresolveMentionLinkwherever it is used, including plugin surfaces. This is why local-file links work fromMarkdownin the same full-page route. ThreadChataccepts no routing props at all and derives its timeline link routing from the app-panel context, gated onpanel.environmentId === thread.environmentId. Docked panels therefore only route correctly for threads in the docked panel's environment. On a full-page plugin route the app-panel context has noonOpenLocalFileLink, so the internal timeline link-routing builder (thePVbuilder in the workspace-checkout-display chunk) omitslocalFilerouting entirely, so those spans never become links, rather than becoming broken links.- Repro consumer and investigation thread: bb thread
thr_sdmg6j5iqt(focus-board), verified 2026-09-28 against bb 0.44.0 desktop.
What you ruled out
- Related to Relative markdown links in plugin-embedded ThreadChat open as broken URLs against the app origin #4438 but not a duplicate: Relative markdown links in plugin-embedded ThreadChat open as broken URLs against the app origin #4438 covers relative markdown anchor links keeping their raw
hrefand navigating to broken app-origin URLs. Here the routing is omitted entirely (dead text, no navigation), and@thread:mentions and images are also affected. Relative markdown links in plugin-embedded ThreadChat open as broken URLs against the app origin #4438 attributes its cause to the thread-timeline navigation context being null in plugin surfaces; this report adds thatThreadChat's app-panel context read is additionally gated on an environment match thatMarkdowndoes not apply, so the same surface has two different gates. Triage may prefer to merge; either fix should cover both symptoms. - Not Markdown file preview: external links do nothing on click — MarkdownPreview gets no linkRouting.onOpenLink, so the target="_blank" default is swallowed #3395: that is the
MarkdownPreviewfile-preview chain droppingonOpenLinkfor external links; different component and symptom. - Not Embedded ThreadChat should inherit compatible provider features #2967: that asks for embedded
ThreadChatto inherit provider features (actions, context usage); this is about workspace link routing, independent of provider. - Not the plugin's markup or DOM: the same message renders fully wired in the main pane, and the plugin stopgap proves the DOM receives the spans undecorated.
- Not the
.md-only linkify gate: the gate is by design and the same gate passes in the main pane. - Not version staleness: reproduced on the current stable desktop 0.44.0 on the report date.
Suggested priority and effort (optional)
Medium priority, low-to-moderate effort. Hits every plugin embedding ThreadChat on a full-page route; the same embedding pattern is public in focus-board (https://github.com/cristoslc/bb-plugin-focus-board), Pins, and Cascade. A workaround exists (plugin-side click capture) and no data is lost.
Recommendation: either
- Accept explicit routing props on
ThreadChat(onOpenLocalFileLink,workspaceRootPath,resolveMentionLink) so embedding plugins (or the host) can supply them without relying on ambient context, or - Un-gate
ThreadChat's app-panel context read the wayMarkdownalready does, so local-file routing follows the same availability rule everywhere.
Option 2 has a working precedent in the shipped Markdown component; focus-board 0.5.3's stopgap shows the data the host needs is already present in the panel context. Happy to attempt a PR after contributor approval (per CONTRIBUTING.md, joining #contributors first).
Checks
- I reproduced this on the latest release or on
main, or I say above that I could not. (Verified on bb 0.44.0 desktop, latest stable, on 2026-09-28; not yet re-verified onmain.) - I searched open and closed issues for the same problem. (Searches run:
ThreadChat,onOpenLocalFileLink,local file link,mention link thread,inline code file link,workspace image plugin,PluginAppPanelContext,environmentId panel context,ThreadChat props file preview,localFile routing markdown,plugin full page route markdown, plusThreadChatfiltered to closed. Only overlaps: Relative markdown links in plugin-embedded ThreadChat open as broken URLs against the app origin #4438, Embedded ThreadChat should inherit compatible provider features #2967, Markdown file preview: external links do nothing on click — MarkdownPreview gets no linkRouting.onOpenLink, so the target="_blank" default is swallowed #3395, addressed above.) - If an agent wrote this, the body ends with
> AGENT GENERATEDand links the thread or report.
AGENT GENERATED
Activity
SawyerHood commentedon Sep 30, 2026
Verified report: https://get-bb.github.io/reports/issues/4466.html
PARTIALLY REPRODUCED: two clean same-SHA fixtures show inert inline .md paths without the local-file callback, with working file-link controls. Thread resolver navigation succeeds and synthetic workspace images load in these scoped tests; actual mention UI/full plugin-page integration remains untested. Includes genuine screenshots and preserves #4438’s narrower report.
SawyerHood commentedon Oct 19, 2026
Consolidated into #4438 at the maintainer's request. Added the source context, evidence links and any distinct/unverified follow-up scope to the canonical tracker: #4438 (comment)
Closing this report for tracking consolidation, not as fixed. Please continue investigation and updates in #4438; this report remains linked as original evidence.