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
{{ message }}
Repository navigation
[deep-report] Add GitHubMCPMode string enum and reduce githubTool any params in mcp_github_config.go #38868
The Typist analysis flagged a small type-safety cluster in pkg/workflow/mcp_github_config.go: ~19 githubTool any parameters that always immediately assert to map[string]any, plus a missing GitHubMCPMode string enum for the MCP mode values that are currently passed as bare strings. Stronger types here remove repeated type assertions and make valid modes self-documenting.
Fix
Introduce a GitHubMCPMode string type with named constants for the accepted modes.
Replace the githubTool any params with a concrete map[string]any (or a small typed struct) to drop the per-call assertions.
Expected Impact
Fewer runtime type assertions, compile-time-checked MCP mode values, clearer API.
Activity
github-actions commentedon Jun 14, 2026
This issue was automatically closed because it expired on 2026-06-14T15:56:01.415Z.