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
@@ -69,6 +69,7 @@ export interface SendOptions {
|
||||
quotedContext?: string;
|
||||
workspaceScope?: WorkspaceScopePayload | null;
|
||||
sideChannel?: boolean;
|
||||
userShell?: boolean;
|
||||
finalizeActiveTurn?: boolean;
|
||||
/** Append guidance to the running turn without detaching its active answer segment. */
|
||||
continueActiveTurn?: boolean;
|
||||
@@ -1023,9 +1024,11 @@ export function useNanobotStream(
|
||||
delete clientOptions.sideChannel;
|
||||
delete clientOptions.finalizeActiveTurn;
|
||||
delete clientOptions.continueActiveTurn;
|
||||
const delivery = wireMedia?.length
|
||||
? client.sendAttachments(chatId, outboundContent, wireMedia, clientOptions)
|
||||
: undefined;
|
||||
const delivery = options?.userShell
|
||||
? client.sendUserShellCommand(chatId, outboundContent, clientOptions)
|
||||
: wireMedia?.length
|
||||
? client.sendAttachments(chatId, outboundContent, wireMedia, clientOptions)
|
||||
: undefined;
|
||||
if (!delivery) client.sendMessage(chatId, outboundContent, undefined, clientOptions);
|
||||
// Every caller may keep this promise to retain its draft until accepted.
|
||||
// Also observe it here for queued/landing sends without an active composer.
|
||||
|
||||
Reference in new issue
Block a user