Kanshō/Markdown block

Markdown block

A scoped style sheet for rendered markdown — used inside assistant message bubbles, run summaries, and reference cards. Does not parse; pass already-rendered HTML or JSX.

Included in the single kansho full pack. Components are not offered as separate installs.

All elements

Audit log review

The audit-log branch is mostly safe. There is one risky change — the addition of a new event type to the persistence enum. Open the diff.

Findings

  • Three commits are doc-only and can be merged immediately.
  • One commit touches the database schema. It should be reviewed against the existing idx_audit_log_event index.
  • The last commit only renames test fixtures.

Suggested order

  1. Land the doc commits today.
  2. Hold the schema commit for review.
  3. Land the test fixture rename last.

Note

The schema change does not include a backfill migration. New rows will carry the new event type; older rows will not. That is probably fine, but worth confirming with the platform team.

Reproduction

The failing assertion, for reference:

test("sum adds", () => {
  expect(sum(2, 2)).toBe(4); // received 1 — the impl subtracts
});

Commits

SHAAuthorRisk
a31bf02Daisylow
4e8c1a9Daisymedium
9b22d33Carsonlow

Inline in an assistant message

Assistant

Here's the short version, sir. The change is almost entirely cosmetic, with one exception worth flagging:

  • 4e8c1a9 — adds a new event type, no backfill.

Shall I draft a follow-up commit with the missing migration?

Compact density

Compact

Tighter line height for high-density surfaces like inspectors and trace blocks.

  • Slightly less leading.
  • Everything else identical.

Component documentation

Markdown Block

components/agent/markdown-block.tsx

Purpose

Applies scoped typography and overflow treatment to already-rendered markdown content.

Appropriate use

Use around trusted rendered markdown nodes in assistant messages or compact summaries.

Example

components/agent/markdown-block.tsx has a representative live example in the "All elements" section on /components/markdown-block.

States

Supports comfortable and compact density; other meaningful states come from the semantic child elements supplied by the caller.

API and props

MarkdownBlock extends native div attributes with density and ref.

Dependencies

Direct imports are React and cn.

Accessibility

It preserves the semantics of supplied headings, lists, code, quotes, and tables and contains wide content horizontally.

Limitations

It does not parse or sanitise markdown; callers must supply safe React content and accessible table structure.

Source

Source: components/agent/markdown-block.tsx.

Full pack

components/agent/markdown-block.tsx is documented at /components/markdown-block and installs only through the single Kansho full pack; no individual component install is offered.