From 65d3081d80b0d043661288599f1e6a4b703b61fb Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Sat, 3 Jan 2026 00:00:05 +0100 Subject: [PATCH] fix(coding-agent): fix Theme type cast in todo hook example --- packages/coding-agent/examples/hooks/todo/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/coding-agent/examples/hooks/todo/index.ts b/packages/coding-agent/examples/hooks/todo/index.ts index 352bfc6e..ecd9bfff 100644 --- a/packages/coding-agent/examples/hooks/todo/index.ts +++ b/packages/coding-agent/examples/hooks/todo/index.ts @@ -127,7 +127,8 @@ export default function (pi: HookAPI) { const todos = getTodos(ctx); await ctx.ui.custom((_tui, theme, done) => { - return new TodoListComponent(todos, theme, () => done()); + // Cast: Theme.fg uses ThemeColor union type, but we only use standard colors + return new TodoListComponent(todos, theme as { fg: (color: string, text: string) => string }, () => done()); }); }, });