fix: use baseURL (not baseUrl) when constructing Honcho SDK client#4
fix: use baseURL (not baseUrl) when constructing Honcho SDK client#4strictlyskyler wants to merge 1 commit into
Conversation
The @honcho-ai/sdk's HonchoConfigSchema expects `baseURL` (acronym casing), but cursor-honcho passes `baseUrl` (camelCase). Zod silently strips the unrecognized key, causing the SDK to fall back to the production API URL (https://api.honcho.dev) instead of the configured custom endpoint. This breaks all self-hosted / custom endpoint configurations: the client connects to production instead of the user's server, and any non-production API key is rejected with a 401. Affected call sites: - getHonchoClientOptions() in config.ts - Inline Honcho() constructors for linked workspaces in session-start.ts and before-submit-prompt.ts
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
WalkthroughUpdated Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
The @honcho-ai/sdk's HonchoConfigSchema expects
baseURL(acronym casing), but cursor-honcho passesbaseUrl(camelCase). Zod silently strips the unrecognized key, causing the SDK to fall back to the production API URL (https://api.honcho.dev) instead of the configured custom endpoint.This breaks all self-hosted / custom endpoint configurations: the client connects to production instead of the user's server, and any non-production API key is rejected with a 401.
Affected call sites:
Summary by CodeRabbit