wormclaude 1.0.222 → 1.0.223
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/theme.js +1 -1
- package/dist/tui.js +12 -2
- package/package.json +1 -1
package/dist/theme.js
CHANGED
package/dist/tui.js
CHANGED
|
@@ -506,8 +506,18 @@ export async function runTui() {
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
flushStream(true); // kalan yarım satırı bas
|
|
509
|
-
if (turnAbort?.signal.aborted)
|
|
510
|
-
|
|
509
|
+
if (turnAbort?.signal.aborted) {
|
|
510
|
+
// Blackbox gibi: iptal edilince modelin ürettiği KISMİ yanıtı transcript'e koru.
|
|
511
|
+
// (Ekranda akmıştı ama history/displayItems'a girmemişti → resize/redraw'da kaybolur
|
|
512
|
+
// ve sonraki tur model bu bağlamı göremez.) Araçları çalıştırma, turu bitir.
|
|
513
|
+
const partial = stripEchoBlocks(stripInlineToolCalls(cleanModelText(answer))).trim();
|
|
514
|
+
if (partial) {
|
|
515
|
+
history.push({ role: 'assistant', content: partial });
|
|
516
|
+
displayItems.push({ kind: 'assistant', text: partial });
|
|
517
|
+
lastAnswer = partial;
|
|
518
|
+
}
|
|
519
|
+
break;
|
|
520
|
+
}
|
|
511
521
|
// Reactive compact: bağlam taştıysa bir kez özetle ve turu tekrarla → "token bitti, yazılmıyor" olmaz.
|
|
512
522
|
if (gotCtxErr && !reactiveRetried) {
|
|
513
523
|
reactiveRetried = true;
|