diff --git a/backend/src/bridge/session-bridge.ts b/backend/src/bridge/session-bridge.ts index e1330f8a..c7f418f5 100644 --- a/backend/src/bridge/session-bridge.ts +++ b/backend/src/bridge/session-bridge.ts @@ -29,11 +29,8 @@ export class SessionBridge { this.fan({ type: "text_delta", text: m.assistantMessageEvent.delta ?? "" }); } else if (m.type === "text_delta") { this.fan({ type: "text_delta", text: m.text ?? "" }); - } else if (m.type === "tool_execution_start") { - this.fan({ type: "info", level: "info", text: `▶ ${m.toolName ?? "tool"}: ${JSON.stringify(m.args ?? {}).slice(0, 200)}` }); - } else if (m.type === "tool_execution_end") { - const summary = m.result?.content?.[0]?.text?.slice(0, 200) ?? ""; - this.fan({ type: "info", level: "info", text: summary ? `✓ ${m.toolName ?? "tool"}: ${summary}` : `✓ ${m.toolName ?? "tool"}` }); + // tool_execution_* events are intentionally NOT forwarded: they clutter + // the UI with raw bash/read output the user did not ask for. } else if (m.type === "system_event") { this.fan(m as ClientEvent); } else if (m.type === "agent_end") { diff --git a/docker/core.Dockerfile b/docker/core.Dockerfile index f61811c2..fe323113 100644 --- a/docker/core.Dockerfile +++ b/docker/core.Dockerfile @@ -43,6 +43,8 @@ RUN python -m venv /opt/venv \ && /opt/venv/bin/pip install --no-cache-dir --upgrade pip \ && (cd /app/harness && /opt/venv/bin/pip install --no-cache-dir .) \ && cp /app/harness/workflow.yaml /opt/venv/lib/python3.12/site-packages/workflow.yaml +# tht cerca config/tht.yaml relativo al CWD (ignora THT_CONFIG env). Symlink al workspace attivo. +RUN mkdir -p /app/harness/config && ln -sf /app/harness/workspaces/local.yaml /app/harness/config/tht.yaml # PiProcessManager (backend) prepende harnessDir/.venv/bin al PATH del child Pi → symlink al venv reale RUN ln -s /opt/venv /app/harness/.venv