web: hide tool entries in Sybil Agent transcript

This commit is contained in:
2026-10-14 15:29:50 -07:00
parent 153aa5d2fa
commit 56279fba7f
4 changed files with 100 additions and 111 deletions
+5
View File
@@ -1,6 +1,11 @@
import type { AgentRoomEvent, AgentRoomState } from './agent-room';
import type { Message } from './api';
/** Select transcript rows only; keep tool entries in room state for replay and activity. */
export function agentTranscriptMessages(messages: readonly Message[]): Message[] {
return messages.filter(message => message.role !== 'system' && message.role !== 'tool');
}
type Scheduler = {
now(): number;
schedule(callback: () => void, delay: number): unknown;