You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(assistant): surface confirmed tool results via a host renderer (fix lost API key) (#179)
* feat(assistant): surface confirmed tool results via a host renderer, fix lost API key
A confirmed create_api_key returns its one-time secret in output.key, but the
client dropped it: describeOutcome read only the prefix and told the user to
"copy it from the API Keys page" — impossible, since a key's secret is shown
only once at creation. Retain a confirmed tool's output on the resolving status
message and render it prominently via a new host `renderConfirmedResult` slot
(threaded through AssistantDock/Panel/transcript, mirroring toolRenderers), so a
host can show a one-time reveal card. Correct the create_api_key status text.
The secret lives only in the in-memory transcript (never cached, never sent back
to the model), so it is shown once and gone on reload — matching the dedicated
create-key page. Unlike toolRenderers' collapsed detail, the result card is
expanded so a one-time secret is visible without a click.
* fix(assistant): don't wrap a null confirmed-result in a margin box
renderConfirmedResult returns null for a tool the host doesn't render a card
for; the transcript still wrapped that null in `<div class="mt-3">`, leaving an
empty spacer under every other confirmed tool's status line. Compute the node
first and only wrap when it is non-null.
0 commit comments