test(native-chat): type the stand-in roster decoder without a cast

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Brennan Benson
2026-09-25 00:29:21 -07:00
co-authored by Claude
parent d0f4dae350
commit faececed48
@@ -20,7 +20,9 @@ import { openAgentSessionJournal } from './journal-store-factory'
import type { AgentSessionJournal } from './journal-store'
// No shipped decoder emits a subagent roster, so the roster bounds are reached by standing one in.
const decodedClaudeOverride = vi.hoisted(() => ({ message: null as NativeChatMessage | null }))
const decodedClaudeOverride = vi.hoisted((): { message: NativeChatMessage | null } => ({
message: null
}))
vi.mock('../transcript-line-decoders', async (importOriginal) => {
const actual = await importOriginal<typeof TranscriptLineDecoders>()