Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions apps/staged/src/lib/features/sessions/acpTranscript.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,34 @@ describe('buildAcpTranscriptGroups', () => {
expect(groups).toEqual([]);
});

it('hides session-info updates from the transcript', () => {
const metadata = [
message({
id: 1,
role: 'assistant',
acpEventKind: 'session_info_update',
acpSessionInfo: {
title: 'Fix login flow',
updatedAt: '2026-08-24T09:30:00Z',
_meta: { provider: 'goose' },
},
}),
message({
id: 2,
role: 'assistant',
acpEventKind: 'session_info_update',
acpContent: {
title: 'Fix checkout flow',
updatedAt: '2026-08-24T09:31:00Z',
_meta: { provider: 'goose', revision: 2 },
},
}),
];

const groups = buildAcpTranscriptGroups([], metadata);
expect(groups).toEqual([]);
});

it('hides operational ACP metadata rows from the transcript', () => {
const metadata = [
message({
Expand Down
2 changes: 1 addition & 1 deletion apps/staged/src/lib/features/sessions/acpTranscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ interface TimelineEntry {
const TOOL_EVENT_KINDS = new Set(['tool_call', 'tool_call_update']);
/** Hidden metadata row announcing a `generate_pikchr` child session at start. */
const PIKCHR_SESSION_STARTED_EVENT = 'pikchr_session_started';
const VISIBLE_STANDALONE_EVENT_KINDS = new Set<AcpTranscriptEventKind>(['session_info_update']);
const VISIBLE_STANDALONE_EVENT_KINDS = new Set<AcpTranscriptEventKind>();

export function buildAcpTranscriptGroups(
visibleMessages: SessionMessage[],
Expand Down