fix: re-throw hub error for non-markdown hub slugs#9270
Conversation
When hub loading fails for a path that looks like a hub slug (owner/agent) and is NOT a markdown file, re-throw the hub error instead of showing "Not a markdown file". This preserves the actual error from the hub (e.g., network error, auth error, not found) instead of a confusing generic message. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
1 similar comment
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
|
✅ Review Complete Code Review SummaryTroubleshooting
|
|
🎉 This PR is included in version 1.38.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.37.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.8.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |

Summary
Fixes issue where hub loading errors were being swallowed and replaced with "Not a markdown file" error message.
When hub loading fails for a path that looks like a hub slug (e.g.,
continuedev/default-hub-cloud-agent) and is NOT a markdown file, the code now re-throws the actual hub error instead of showing "Not a markdown file". This preserves the real error (e.g., network error, auth error, not found) instead of a confusing generic message.Test plan
🤖 Generated with Claude Code
Summary by cubic
Fixes error handling for hub slugs by re-throwing the actual hub error for non-markdown paths instead of showing "Not a markdown file", so users see the real network/auth/not-found error.
Written for commit f644c88. Summary will update automatically on new commits.