[bug] Make user-message attachment chips clickable to open the doc
The chip in the user bubble (e.g. "sek-1300000000-eur-..." next to a prompt) showed the filename but had no affordance - clicking did nothing. Now renders as a button when document_id is present and an onOpenDocument handler is wired, opening the doc in the side-panel viewer (same path as the assistant's "Read <filename>" block uses). versionId is left null at the chip level - DocView resolves to the document's current version. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
| Repository | nwhitehouse/mike |
|---|---|
| Author | Nick Whitehouse <nick.whitehouse@mccarthyfinch.com> |
| Authored | |
| Parents | 6bf6d52d |
| Stats | 2 files changed , +51 , -9 |
| Part of | User-message attachment chips clickable to open doc |
Capture this commit into my fork
Download a Markdown prompt that tells Claude how to port this
exact commit into your working tree. Run it via
claude -p < capture-commit-e67b072f.md
from inside the repo you want the change in.