google-gemini/gemini-cli
View on GitHubFix unsafe type assertions (Refactoring Plan)
Open
#19708 opened on Feb 20, 2026
area/coreeffort/largehelp wantedkind/bugpriority/p2status/bot-triaged
Description
Tracking issue for removing no-unsafe-type-assertion suppressions introduced in PR #18688.
The goal is to replace as Type casts with runtime validation (Zod, instanceof, type guards).
This is a meta-issue to track the progress of the following sub-tasks.
- #19709 - Phase 1.1: Error Handling (Core Utilities)
- #19710 - Phase 1.2: JSON & Config (Core Utilities)
- #19711 - Phase 2.1: Tool Execution (Core Tools)
- #19712 - Phase 2.2: File System (Core File System)
- #19713 - Phase 3.1: CLI Config
- #19714 - Phase 3.2: CLI Activity Logger
- #19715 - Phase 4.1: A2A Server
- #19717 - Phase 4.2: VS Code Companion (Likely empty/already done)
- #19733 - Phase 5: CLI Commands
- #19734 - Phase 6: CLI UI
- #19735 - Phase 7: Core MCP & Code Assist