Closes the Phase 5 audit partial: the inline card's prop interface now matches SamplingRequestPanel's, accepting an optional CreateMessageResult draft instead of a flat scalar. Lets future hook-layer wiring share a single draft store between the inline card and the full panel. Rendering: - No draft → existing layout (request preview, model hints, action buttons), with the readonly placeholder textarea removed. - Text draft → 2-line preview of draftResult.content.text (lineClamp 2). - Image / audio draft → "[Image content]" / "[Audio content]" label, matching the ContentViewer fallback convention. Updates the three consumer stories that threaded responseText="" through (PendingClientRequests, ToolsScreen) — no callback signatures changed. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f1d6fbd704
commit
c04f96ffb8
1 changed files with 56 additions and 28 deletions
|
|
@ -287,7 +287,6 @@ export const WithPendingRequests: Story = {
|
|||
maxTokens: 1024,
|
||||
}}
|
||||
queuePosition="1 of 2"
|
||||
responseText=""
|
||||
onAutoRespond={fn()}
|
||||
onEditAndSend={fn()}
|
||||
onReject={fn()}
|
||||
|
|
|
|||
Loading…
Reference in a new issue