mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-25 09:41:04 +01:00
preserve thinking delta whitespace in runlog streaming
This commit is contained in:
1 parent
34d9122b45
commit
d37e1d3dc3
4 files changed
+20
-7
No files matched your search
@@ -100,8 +100,8 @@ function parseStdoutChunk(
|
||||
const summarized: Array<{ text: string; tone: FeedTone; thinkingDelta?: boolean }> = [];
|
||||
const appendSummary = (entry: TranscriptEntry) => {
|
||||
if (entry.kind === "thinking" && entry.delta) {
|
||||
const text = entry.text.trim();
|
||||
if (!text) return;
|
||||
const text = entry.text;
|
||||
if (!text.trim()) return;
|
||||
const last = summarized[summarized.length - 1];
|
||||
if (last && last.thinkingDelta) {
|
||||
last.text += text;
|
||||
|
||||
@@ -111,8 +111,8 @@ function parseStdoutChunk(
|
||||
const summarized: Array<{ text: string; tone: FeedTone; thinkingDelta?: boolean }> = [];
|
||||
const appendSummary = (entry: TranscriptEntry) => {
|
||||
if (entry.kind === "thinking" && entry.delta) {
|
||||
const text = entry.text.trim();
|
||||
if (!text) return;
|
||||
const text = entry.text;
|
||||
if (!text.trim()) return;
|
||||
const last = summarized[summarized.length - 1];
|
||||
if (last && last.thinkingDelta) {
|
||||
last.text += text;
|
||||
|
||||
Reference in new issue
Block a user