tycono 0.3.14-beta.24 → 0.3.14-beta.26
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
CHANGED
|
@@ -124,8 +124,7 @@ export function summarizeEvent(event: SSEEvent, allRoleIds: string[]): StreamLin
|
|
|
124
124
|
const toolName = (event.data.name as string) ?? 'tool';
|
|
125
125
|
// Only show Write/Edit (file changes) + Bash (commands). Hide Read/Grep/Glob (noise).
|
|
126
126
|
const isWrite = ['Write', 'Edit', 'NotebookEdit'].includes(toolName);
|
|
127
|
-
|
|
128
|
-
if (!isWrite && !isBash) return null; // Hide read-only tools
|
|
127
|
+
if (!isWrite) return null; // Only show file writes — hide Read/Grep/Glob/Bash
|
|
129
128
|
|
|
130
129
|
const input = event.data.input;
|
|
131
130
|
let detail = '';
|
|
@@ -70,7 +70,7 @@ function eventLine(ev: SSEEvent): string | null {
|
|
|
70
70
|
catch { t = '--:--:--'; }
|
|
71
71
|
const r = (ev.roleId ?? '').padEnd(12);
|
|
72
72
|
switch (ev.type) {
|
|
73
|
-
case 'text': { const x = ((ev.data.text as string) ?? '').
|
|
73
|
+
case 'text': { const x = ((ev.data.text as string) ?? '').trim(); return x ? `${t} ${r} ${x}` : null; } // keep \n — split later
|
|
74
74
|
case 'thinking': return null; // Hide thinking — noise
|
|
75
75
|
case 'tool:start': {
|
|
76
76
|
const n = (ev.data.name as string) ?? '';
|
|
@@ -195,7 +195,13 @@ const PanelModeInner: React.FC<PanelModeProps> = ({
|
|
|
195
195
|
const visible = filtered.slice(-maxEv);
|
|
196
196
|
for (const ev of visible) {
|
|
197
197
|
const line = eventLine(ev);
|
|
198
|
-
if (line)
|
|
198
|
+
if (!line) continue;
|
|
199
|
+
// Split multi-line text events into separate lines (preserves markdown)
|
|
200
|
+
const sublines = line.split('\n');
|
|
201
|
+
for (const sl of sublines) {
|
|
202
|
+
if (rightContentLines.length >= maxEv) break;
|
|
203
|
+
rightContentLines.push(sl.slice(0, rightWidth));
|
|
204
|
+
}
|
|
199
205
|
}
|
|
200
206
|
if (rightContentLines.length === 0) {
|
|
201
207
|
if (activeRoleId && events.length > 0) {
|