feat(webui): complete bang commands and literal output (NAN-291) (#6173)
* feat(webui): complete direct bang shell commands Reuse the gateway user-shell side channel, retain failed drafts without reconnect replay, and preserve literal output across live delivery and history. Highlight the bang prefix before and after sending. NAN-291 * fix(clients): preserve literal shell output through display metadata
This commit is contained in:
1 parent
f23a6d1485
commit
7e5dcb79e0
43 files changed
+805
-100
No files matched your search
@@ -28,9 +28,13 @@ export function InlineReferencesFixture() {
|
||||
<main className="mx-auto h-full max-w-[var(--content-column-width)] space-y-6 overflow-y-auto p-4">
|
||||
{[answer, ...sent].map(message => <MessageBubble key={message.id} message={message} slashCommands={commands} />)}
|
||||
<ThreadComposer compactWhenIdle sessions={[session]} modelLabel="Fixture" persistDraft={false} slashCommands={commands}
|
||||
onSend={text => setSent(current => [...current, {
|
||||
onSend={(text, _media, options) => setSent(current => [...current, {
|
||||
id: `sent-${current.length}`, role: "user", content: text, createdAt: current.length + 2,
|
||||
}])} />
|
||||
}, ...(options?.userShell ? [{
|
||||
id: `shell-${current.length}`, role: "assistant" as const, renderAs: "text" as const,
|
||||
content: " __pycache__\n```mermaid\nflowchart LR\n```\n\n<b>raw</b>\n",
|
||||
createdAt: current.length + 3,
|
||||
}] : [])])} />
|
||||
</main>
|
||||
</ThemeProvider>;
|
||||
}
|
||||
Reference in new issue
Block a user