Skip to content

armgit / alook

Public Imported from GitHub
0

Multi-Agent Collaboration for Team and Friends

fix: remove log type from cli

Gusab42b2c01adf
diff --git a/src/cli/daemon/session-runner.ts b/src/cli/daemon/session-runner.ts
index 88c10b3a5..0765b1bc0 100644
--- a/src/cli/daemon/session-runner.ts
+++ b/src/cli/daemon/session-runner.ts
@@ -413,6 +413,16 @@ export async function runSession(input: SessionRunnerInput): Promise<void> {
const msg = iterResult.value;
seq++;
+
+ if (msg.type === "tool-use") toolCount++;
+ if (msg.type === "tool-result" && msg.output && msg.output.length > 500) {
+ log.info(JSON.stringify({ role: "assistant", ...msg, output: msg.output.slice(0, 500) + `... (${msg.output.length} chars)` }));
+ } else {
+ log.info(JSON.stringify({ role: "assistant", ...msg }));
+ }
+
+ if (msg.type === "status" || msg.type === "log") continue;
+
pendingMessages.push({
seq,
type: msg.type,
@@ -423,13 +433,6 @@ export async function runSession(input: SessionRunnerInput): Promise<void> {
output: msg.output,
});
- if (msg.type === "tool-use") toolCount++;
- if (msg.type === "tool-result" && msg.output && msg.output.length > 500) {
- log.info(JSON.stringify({ role: "assistant", ...msg, output: msg.output.slice(0, 500) + `... (${msg.output.length} chars)` }));
- } else {
- log.info(JSON.stringify({ role: "assistant", ...msg }));
- }
-
// Timeline — record assistant text messages
if (msg.type === "text" && msg.content) {
updateEntry(timelineDir, task.id, (entry) => {