Skip to content

fix(cli): repair doctor's Google ping target after a merge race - #666

Merged
LinuxDevil merged 1 commit into
mainfrom
fix/doctor-google-ping
Oct 16, 2026
Merged

LinuxDevil merged 1 commit into
mainfrom
fix/doctor-google-ping

Conversation

@LinuxDevil

Copy link
Copy Markdown
Owner

Problem

npx tsc --noEmit fails on main: src/cli/doctorChecks.ts(315): 'base' does not exist in type 'PingTarget'. #662 added the Google ping target with base while #663 changed PingTarget to url + checksKey; the doctor test still expected the old finding text.

Fix

Google target uses url: .../v1beta/models and checksKey: true (Gemini's /models rejects a bad key); test expects reachable, key accepted (HTTP 200).

Verification

npx tsc --noEmit clean; npx vitest run src/cli/doctorCore.test.ts 73 passed.

🤖 Generated with Claude Code

#662 added a Google ping target with a 'base' field while #663 changed
PingTarget to a full 'url' plus 'checksKey', so main stopped type-checking.
Gemini's /models needs the key, so a 200 proves it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LinuxDevil
LinuxDevil merged commit da5de5f into main Oct 16, 2026
3 of 7 checks passed
@LinuxDevil
LinuxDevil deleted the fix/doctor-google-ping branch October 16, 2026 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant