quickshell: render subconscious surfacing once
This commit is contained in:
parent
6e21c50dcc
commit
cf2ba25089
1 changed files with 9 additions and 5 deletions
|
|
@ -124,6 +124,9 @@ Singleton {
|
|||
// ── Streaming message shaping ────────────────────────────────────────
|
||||
property AiMessageData streamingMessage
|
||||
property bool inThinkBlock: false
|
||||
// Raw N+1 output is diagnostic material. The normal chat renders its
|
||||
// parsed surfacing exactly once below; this buffer remains separate from
|
||||
// the chat stream for a future inspector to subscribe to.
|
||||
property string subconsciousBuffer: ""
|
||||
|
||||
function appendToStreaming(text) {
|
||||
|
|
@ -133,10 +136,7 @@ Singleton {
|
|||
}
|
||||
|
||||
function flushSubconscious() {
|
||||
if (root.subconsciousBuffer.length > 0) {
|
||||
root.addMessage(Translation.tr("**Subconscious**\n\n%1").arg(root.subconsciousBuffer), root.interfaceRole);
|
||||
root.subconsciousBuffer = "";
|
||||
}
|
||||
root.subconsciousBuffer = "";
|
||||
}
|
||||
|
||||
function finishStreaming() {
|
||||
|
|
@ -192,7 +192,11 @@ Singleton {
|
|||
: `\n\n*${event.text}*\n\n`);
|
||||
break;
|
||||
case "souveraine_surfacing":
|
||||
root.addMessage(Translation.tr("**Aster surfaces** (%1, %2)\n\n%3").arg(event.source).arg(event.priority).arg(event.content), root.interfaceRole);
|
||||
// Aster is Annie's name for her subconscious; this surface may
|
||||
// be speaking with Souveraine, Vanguard, or another agent. One
|
||||
// canonical surfacing is shown instead of the raw N+1 token
|
||||
// stream plus a second, agent-specific label.
|
||||
root.addMessage(Translation.tr("**Subconscious surfaces** (%1, %2)\n\n%3").arg(event.source).arg(event.priority).arg(event.content), root.interfaceRole);
|
||||
break;
|
||||
case "souveraine_reflection":
|
||||
root.addMessage(Translation.tr("**Reflection**\n\n%1").arg(event.content), root.interfaceRole);
|
||||
|
|
|
|||
Loading…
Reference in a new issue