Skip to content

armgit / avibe

Public Imported from GitHub
0

Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.

fix(chat): restore realtime tool-call activity (#1138)

Call White2d47aa469d0e
diff --git a/ui/src/lib/agentActivity.test.ts b/ui/src/lib/agentActivity.test.ts
index ff66f70b5..505ae99d7 100644
--- a/ui/src/lib/agentActivity.test.ts
+++ b/ui/src/lib/agentActivity.test.ts
@@ -247,9 +247,9 @@ describe('shouldShowRunningCard', () => {
});
describe('isActivityMessageType', () => {
- it('recognizes only Message-backed assistant activity', () => {
+ it('recognizes Message-backed assistant rows and synthetic tool events', () => {
expect(isActivityMessageType('assistant')).toBe(true);
- expect(isActivityMessageType('tool_call')).toBe(false);
+ expect(isActivityMessageType('tool_call')).toBe(true);
expect(isActivityMessageType('result')).toBe(false);
expect(isActivityMessageType('user')).toBe(false);
});
diff --git a/ui/src/lib/agentActivity.ts b/ui/src/lib/agentActivity.ts
index a18d1b6cf..b9743185f 100644
--- a/ui/src/lib/agentActivity.ts
+++ b/ui/src/lib/agentActivity.ts
@@ -150,9 +150,11 @@ export const liveActivityReducer = (
}
};
-// Process-log rows for the Activity panel — the catalog's ``activity`` render kind.
+// Process-log rows for the Activity panel. Assistant rows are real Messages and
+// therefore use the catalog. Tool calls are synthetic live envelopes backed by
+// ``agent_events``; they intentionally do not exist in the Message catalog.
export const isActivityMessageType = (type: string): boolean =>
- specFor(type).render === 'activity';
+ type === 'tool_call' || specFor(type).render === 'activity';
// ``format_toolcall`` stores "🔧 `ToolName` `{json params}`" (one string, backend
// formatter output). Parse the tool name (first backtick token, else first word
diff --git a/ui/src/lib/messageTypes.test.ts b/ui/src/lib/messageTypes.test.ts
index 588b623a1..1fe255942 100644
--- a/ui/src/lib/messageTypes.test.ts
+++ b/ui/src/lib/messageTypes.test.ts
@@ -101,9 +101,9 @@ describe('catalog-derived predicates match the communication-record boundary', (
}
});
- it('activity-step identity (isActivityMessageType)', () => {
+ it('activity-step identity includes synthetic tool events', () => {
for (const type of PROBE_TYPES) {
- expect(isActivityMessageType(type), type).toBe(wasActivity(type));
+ expect(isActivityMessageType(type), type).toBe(type === 'tool_call' || wasActivity(type));
}
});