@bubblebrain-ai/bubble 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/tui-ink/app.js +2 -4
- package/dist/tui-ink/input-box.js +3 -1
- package/package.json +1 -1
package/dist/tui-ink/app.js
CHANGED
|
@@ -6,7 +6,7 @@ import { isHiddenToolMetadata } from "../agent/discovery-barrier.js";
|
|
|
6
6
|
import { SessionManager } from "../session.js";
|
|
7
7
|
import { registry as slashRegistry } from "../slash-commands/index.js";
|
|
8
8
|
import { UserConfig, maskKey } from "../config.js";
|
|
9
|
-
import {
|
|
9
|
+
import { InputBox, isCtrlCInput, } from "./input-box.js";
|
|
10
10
|
import { MessageList } from "./message-list.js";
|
|
11
11
|
import { appendTextPart, appendToolPart, compactDisplayMessages, contentFromParts, latestCompactionSummary, moveStatusMessageToEnd, nextDisplayMessageKey, setUserInputStatus, snapshotDisplayParts, stripInterruptedAssistantMarker, toolCallsFromParts, } from "./display-history.js";
|
|
12
12
|
import { AgentRunInputQueue } from "../agent/input-controller.js";
|
|
@@ -84,9 +84,7 @@ function reconstructDisplayMessages(agentMessages) {
|
|
|
84
84
|
result.push({
|
|
85
85
|
key: nextDisplayMessageKey("user"),
|
|
86
86
|
role: "user",
|
|
87
|
-
content: typeof m.content === "string"
|
|
88
|
-
? (shouldCollapsePastedContent(m.content) ? createPastedContentMarker(m.content) : m.content)
|
|
89
|
-
: "(multimedia)",
|
|
87
|
+
content: typeof m.content === "string" ? m.content : "(multimedia)",
|
|
90
88
|
});
|
|
91
89
|
}
|
|
92
90
|
else if (m.role === "assistant") {
|
|
@@ -585,8 +585,10 @@ export function InputBox({ onSubmit, onQueue, onPasteNotice, disabled, cursorRes
|
|
|
585
585
|
return;
|
|
586
586
|
const deliver = target === "queue" && onQueue ? onQueue : onSubmit;
|
|
587
587
|
const payload = {
|
|
588
|
+
// The pasted-content marker is a composer-only affordance. Submit the
|
|
589
|
+
// fully-expanded text so the transcript shows what was actually sent —
|
|
590
|
+
// the agent already receives the expanded text — rather than the marker.
|
|
588
591
|
text: expandedText,
|
|
589
|
-
displayText: expandedText === submittedText ? undefined : submittedText,
|
|
590
592
|
images: attachments,
|
|
591
593
|
imageDisplayStart: attachments.length > 0 ? (imageLabelStartOverride ?? nextImageLabelStart) : undefined,
|
|
592
594
|
};
|