Skip to content

[Feature] Seams for UI customization (refactors only, no behavior change) #314

Closed

Description

@patrickab

Problem

Some rendering lives only inside large files (ChatWindow.tsx, MarkdownBody.tsx). A fork that customizes it has to patch those files, and the patches break silently on rebase.

  • Turn rendering is inline in CommittedTranscript
  • The running turn's live tail (streaming reply, pending tool rows, !command output) is inline in ChatWindow's JSX
  • Markdown link, image and table handling is locked inside MarkdownBody

Proposal

Move existing code into small modules a fork can wrap. No behavior change, no new dependencies, one commit per item:

  1. MarkdownBody: export its rendering setup as useMarkdownBodyRendering
  2. ChatWindow: extract CommittedTranscript's group-row rendering (renderTranscriptGroupRow)
  3. ChatWindow: extract the live tail (ChatLiveTail)
  4. MessageView: class names on the footers and the model label, like message-copy-actions

These are internal seams that move with the code they wrap, not a stable API.

Out of scope

  • The ChatInput submit path. It is interwoven with uploads, the outbox and draft recovery, so a hook would have to expose those internals
  • A slots/context registry: more flexible, but a public API to maintain

Activity

  1. added
    enhancement
    on Oct 27, 2026
  2. added 20 commits that reference this issue on Oct 29, 2026
  3. changed the title [-][Feature] Stable seams for UI customization (refactors only, no behavior change)[/-] [+][Feature] Seams for UI customization (refactors only, no behavior change)[/+] on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions