Skip to content

feat(inbox): render markdown context + link the producing run in the header - #326

Merged
ryw merged 1 commit into
mainfrom
feat/inbox-markdown-run-link
Jul 20, 2026
Merged

feat(inbox): render markdown context + link the producing run in the header#326
ryw merged 1 commit into
mainfrom
feat/inbox-markdown-run-link

Conversation

@ryw

@ryw ryw commented Jul 20, 2026

Copy link
Copy Markdown
Member

Two inbox-item-detail improvements from dogfooding the competitor digest:

Markdown context

Agents put whole Markdown documents in context fields; 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 keep whitespace-pre-wrap — markdown collapses single newlines, which would mangle ordinary multiline values — via a small looksLikeMarkdown heuristic (unit-tested).

Run link in the header

inbox_item.produced_by_run_id existed but was never surfaced. The item query now left-joins run for the agent name, and the header shows Created 2h ago · competitor-monitoring-digest run with 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 — clean
  • All four COLUMNS query sites carry the new join (list, get, upsert-returning, unconsumed-signals which already joined run r)

🤖 Generated with Claude Code

…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>
@ryw
ryw merged commit bdcd438 into main Jul 20, 2026
9 checks passed
@ryw
ryw deleted the feat/inbox-markdown-run-link branch July 20, 2026 19:47
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