feat(inbox): render markdown context + link the producing run in the header - #326
Merged
Conversation
…header Agents put whole Markdown documents in inbox context fields (the competitor digest most visibly); the detail page rendered them as raw text. String values that clearly use markdown syntax now go through the shared <Markdown> renderer; plain text keeps whitespace-pre-wrap so its literal line breaks survive (markdown would collapse them). The item header now links to the run that produced the item (produced_by_run_id joined to the run's agent_name), next to the created time. Co-Authored-By: Claude Fable 5 <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.
Two inbox-item-detail improvements from dogfooding the competitor digest:
Markdown context
Agents put whole Markdown documents in
contextfields; the detail page rendered them raw. String values that clearly use markdown syntax (headings, bold, lists, links, fences, quotes) now render through the shared<Markdown>component. Plain strings keepwhitespace-pre-wrap— markdown collapses single newlines, which would mangle ordinary multiline values — via a smalllooksLikeMarkdownheuristic (unit-tested).Run link in the header
inbox_item.produced_by_run_idexisted but was never surfaced. The item query now left-joinsrunfor the agent name, and the header showsCreated 2h ago · competitor-monitoring-digest runwith the run name linking to the run detail page. Human/source-created items are unchanged (null join).Verification
npx vitest run— 198 passed (196 + 2 new)npx tsc --noEmit— cleanCOLUMNSquery sites carry the new join (list, get, upsert-returning, unconsumed-signals which already joinedrun r)🤖 Generated with Claude Code