mirror of
https://github.com/cline/cline.git
synced 2026-09-21 13:21:23 +08:00
* remove inline no-usable-provider sign-in banner; rely on inference-time errors The "Sign in to Cline or set up a provider" banner gated chat input on a parallel provider-usability heuristic that mis-detected BYOK setups (Bedrock profile/IAM, Vertex ADC) and its sign-in button discarded the device code. Remove the component and the hasUsableProvider plumbing. Auth/config problems now surface at inference time, where handling already exists: - cline provider without a token -> emitClineAuthError -> ErrorRow renders the Sign in button with the device-code display - any other misconfigured provider -> say:"error" row Also deletes the now-dead sdk/provider-usability module and adds a test that failed session start emits a plain chat error. * restore debug-harness server deleted in0bfbfb944Commit0bfbfb944("delete unused files") removed src/dev/debug-harness/server.ts as dead code, but it is a dev tool launched directly via `npx tsx src/dev/debug-harness/server.ts` (see its README and .clinerules/debug-harness.md) — no static import graph reaches it, which is why the unused-file analysis flagged it. The README, the .clinerules docs, and the CLINE_CAPTURE_BROWSER / __clineHandleUri hooks in extension.ts and utils/env.ts that exist solely for this harness all survived the deletion, leaving them dangling. Restored verbatim from 0bfbfb944~1; verified it boots and listens on :19229.