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:
chengyongru authored and GitHub committed 2026-10-26 23:35:26 +08:00
1 parent f23a6d1485
commit 7e5dcb79e0
43 files changed
+805 -100

No files matched your search

+3 -1
View File
@@ -770,7 +770,7 @@ export class NanobotTui {
if (this.modelCommandTurns.delete(event.turn_id)) {
void this.refreshSessionMetadata(event.chat_id)
}
if (!silent) this.transcript.assistant(event.text)
if (!silent) this.transcript.assistant(event.text, event.render_as)
if (!this.activeTurn) this.status.content = "Ready"
return
}
@@ -780,6 +780,8 @@ export class NanobotTui {
this.activeLabel = event.kind === "tool_hint" ? "Working" : "Thinking"
this.transcript.progress(event.text, event.tool_events)
this.setActive(true)
} else if (event.render_as === "text") {
this.transcript.assistant(event.text, event.render_as)
} else {
this.finalMessage = event.text
}