You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix 'todos.filter is not a function' runtime error (#66)
Fix runtime crash where todos.filter is not a function error occurred when input.todos was a non-array truthy value (e.g., a string or object). The previous pattern (input.todos || []) only guards against falsy values but doesn't ensure the value is actually an array.
Replace unsafe fallback pattern(value || []) as Array<T> with explicit Array.isArray() checks across all 4 occurrences in ToolCard.tsx and TodoWriteToolView.tsx, ensuring .filter() and .length are only called on actual arrays.