shadok-ai 0.19.8 → 0.19.9
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/package.json +1 -1
- package/public/index.html +7 -3
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -8868,7 +8868,8 @@
|
|
|
8868
8868
|
Tool traffic is grouped instead of stacked. A *block* is a run of tool
|
|
8869
8869
|
events between two pieces of assistant text; inside it, consecutive calls
|
|
8870
8870
|
to the same tool condense into a *run*; each call hides its own output.
|
|
8871
|
-
|
|
8871
|
+
Every block is born folded (one "N operations" line) and stays that way;
|
|
8872
|
+
the reader expands it on demand.
|
|
8872
8873
|
|
|
8873
8874
|
All fold state lives on `tab.act` (current block) and `tab.turnBlocks`
|
|
8874
8875
|
(blocks awaiting the end-of-turn fold). */
|
|
@@ -8898,10 +8899,13 @@
|
|
|
8898
8899
|
function openBlock(tab) {
|
|
8899
8900
|
const turn = document.createElement("div");
|
|
8900
8901
|
turn.className = "turn claude activity";
|
|
8901
|
-
turn
|
|
8902
|
+
// Folded from the start, not only at turn-done: while the agent works the
|
|
8903
|
+
// chat shows "N operations" on one line, and the reader opens it on demand.
|
|
8904
|
+
// An error shows on that line ("· N errors"), and expanding lands on it.
|
|
8905
|
+
turn.dataset.folded = "true";
|
|
8902
8906
|
const head = document.createElement("button");
|
|
8903
8907
|
head.className = "act-head";
|
|
8904
|
-
head.innerHTML = '<span class="caret"
|
|
8908
|
+
head.innerHTML = '<span class="caret">▸</span><span class="count"></span>';
|
|
8905
8909
|
head.addEventListener("click", () => toggleFold(turn));
|
|
8906
8910
|
const body = document.createElement("div");
|
|
8907
8911
|
body.className = "act-body";
|