René's URL Explorer Experiment


Title: feat: turn Command Code failures into actionable errors by JoshRob297 · Pull Request #10 · JoshRob297/opencode-commandcode · GitHub

Open Graph Title: feat: turn Command Code failures into actionable errors by JoshRob297 · Pull Request #10 · JoshRob297/opencode-commandcode

X Title: feat: turn Command Code failures into actionable errors by JoshRob297 · Pull Request #10 · JoshRob297/opencode-commandcode

Description: Stacked on #9 (key rotation), which is stacked on #8 (ZDR). Rebase to main once both merge. Context Command Code returns failures like You have insufficient credits..., MODEL_NOT_IN_PLAN... or a bare 429 to OpenCode, which shows them verbatim. The user does not learn the one thing that matters: what to do next. Change New src/hooks/errors.ts: errorHint() and decorateErrorBody(). Hints: 402 -> add credits or another account to COMMANDCODE_API_KEYS; MODEL_NOT_IN_PLAN -> pick another model or upgrade; 401/403 -> replace or rotate the key; 429/window -> wait or rotate; unsupported_model -> Anthropic-shaped, only on /messages. Only JSON error bodies are rewritten. SSE streams, successful responses and unknown envelopes keep their bytes. The HTTP status and the envelope shape are preserved, so OpenCode's retry classification is unaffected. Each decoration is logged to commandcode-errors.log with status, upstream code, message and hint (no secrets). Verify bun test: 128 pass, 3 skip, 0 fail (new tests/errors.test.ts: hint mapping, envelope preservation, flat envelopes, null cases, SSE/success untouched, log written). bunx tsc --noEmit: clean.

Open Graph Description: Stacked on #9 (key rotation), which is stacked on #8 (ZDR). Rebase to main once both merge. Context Command Code returns failures like You have insufficient credits..., MODEL_NOT_IN_PLAN... or a ba...

X Description: Stacked on #9 (key rotation), which is stacked on #8 (ZDR). Rebase to main once both merge. Context Command Code returns failures like You have insufficient credits..., MODEL_NOT_IN_PLAN... or a ba...

Opengraph URL: https://github.com/JoshRob297/opencode-commandcode/pull/10

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:dbbcb03e-658c-7f51-fb94-2eb6b0311d1d
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB612:EDA7A:E32C87:12183FC:6B0108B9
html-safe-nonce1287c6fb4b7a601644f28a8d5679e75c634778756c205678022b086d7d93feee
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNjEyOkVEQTdBOkUzMkM4NzoxMjE4M0ZDOjZCMDEwOEI5IiwidmlzaXRvcl9pZCI6IjY1ODgxMTA4OTE4NzM1MzYxODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac16b1a2ba79f293c1cdfab3dcbe88758470665ef287eab96120a4d6c83d772413
hovercard-subject-tagpull_request:5100349798
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/JoshRob297/opencode-commandcode/pull/10/files
twitter:imagehttps://avatars.githubusercontent.com/u/99092299?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/99092299?s=400&v=4
og:image:altStacked on #9 (key rotation), which is stacked on #8 (ZDR). Rebase to main once both merge. Context Command Code returns failures like You have insufficient credits..., MODEL_NOT_IN_PLAN... or a ba...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonecb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/JoshRob297/opencode-commandcode git https://github.com/JoshRob297/opencode-commandcode.git
octolytics-dimension-user_id99092299
octolytics-dimension-user_loginJoshRob297
octolytics-dimension-repository_id1424717173
octolytics-dimension-repository_nwoJoshRob297/opencode-commandcode
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1424717173
octolytics-dimension-repository_network_root_nwoJoshRob297/opencode-commandcode
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJoshRob297%2Fopencode-commandcode%2Fpull%2F10%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FJoshRob297%2Fopencode-commandcode%2Fpull%2F10%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=JoshRob297%2Fopencode-commandcode
Reloadhttps://github.com/JoshRob297/opencode-commandcode/pull/10/files
Reloadhttps://github.com/JoshRob297/opencode-commandcode/pull/10/files
Reloadhttps://github.com/JoshRob297/opencode-commandcode/pull/10/files
JoshRob297https://github.com/JoshRob297
opencode-commandcodehttps://github.com/JoshRob297/opencode-commandcode
Codehttps://github.com/JoshRob297/opencode-commandcode
Issueshttps://github.com/JoshRob297/opencode-commandcode/issues
Pull requestshttps://github.com/JoshRob297/opencode-commandcode/pulls
Actionshttps://github.com/JoshRob297/opencode-commandcode/actions
Security and qualityhttps://github.com/JoshRob297/opencode-commandcode/security
Insightshttps://github.com/JoshRob297/opencode-commandcode/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FJoshRob297%2Fopencode-commandcode%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FJoshRob297%2Fopencode-commandcode%2Fissues%2Fnew%2Fchoose
JoshRob297https://github.com/JoshRob297
mainhttps://github.com/JoshRob297/opencode-commandcode/tree/main
feat/actionable-errorshttps://github.com/JoshRob297/opencode-commandcode/tree/feat/actionable-errors
Conversation 0 https://github.com/JoshRob297/opencode-commandcode/pull/10
Commits 1 https://github.com/JoshRob297/opencode-commandcode/pull/10/commits
Checks 1 https://github.com/JoshRob297/opencode-commandcode/pull/10/checks
Files changed https://github.com/JoshRob297/opencode-commandcode/pull/10/files
Please reload this pagehttps://github.com/JoshRob297/opencode-commandcode/pull/10/files
feat: turn Command Code failures into actionable errors https://github.com/JoshRob297/opencode-commandcode/pull/10/files#top
Show all changes 1 commit https://github.com/JoshRob297/opencode-commandcode/pull/10/files
67a6e64 feat: turn Command Code failures into actionable errors JoshRob297 Oct 31, 2026 https://github.com/JoshRob297/opencode-commandcode/pull/10/commits/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca
Clear filters https://github.com/JoshRob297/opencode-commandcode/pull/10/files
Please reload this pagehttps://github.com/JoshRob297/opencode-commandcode/pull/10/files
Please reload this pagehttps://github.com/JoshRob297/opencode-commandcode/pull/10/files
CHANGELOG.md https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
README.es.md https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
README.md https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
CONFIGURATION.md https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
configuration.md https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
index.ts https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-dcdc3e0b3362edb8fec2a51d3fa51f8fb8af8f70247e06d9887fa934834c9122
package.json https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
errors.ts https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-1e855fa1b9ea3be9d65a8dda8970b4bdd6dc04f13bd824dc4cf2aa12e00745b1
index.ts https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
errors.test.ts https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-287b94ca07f64adaa83d7ca72a4dcbbf17e6fb51a3a344954d7936c2c8011cdd
CHANGELOG.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/CHANGELOG.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-06572a96a58dc510037d5efa622f9bec8519bc1beab13c9f251e97e657a9d4ed
README.es.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/README.es.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-42010a55cd1784b825a37c762cc91d75421f3ed4515f1047cf5506444949a0c2
README.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
docs/CONFIGURATION.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/docs/CONFIGURATION.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-58f184d7415a8c22e56e4908527cfd1c7c28ea1c5720cf4280b2d511b25f7409
docs/es/configuration.mdhttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/docs/es/configuration.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a745a3a2529f665c4ddf958e81b1e3deb3b1b51f832c0ddb6cc361824017f660
index.tshttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-dcdc3e0b3362edb8fec2a51d3fa51f8fb8af8f70247e06d9887fa934834c9122
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-dcdc3e0b3362edb8fec2a51d3fa51f8fb8af8f70247e06d9887fa934834c9122
package.jsonhttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/package.json
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
src/hooks/errors.tshttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-1e855fa1b9ea3be9d65a8dda8970b4bdd6dc04f13bd824dc4cf2aa12e00745b1
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/src/hooks/errors.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
src/index.tshttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/src/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
https://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-a2a171449d862fe29692ce031981047d7ab755ae7f84c707aef80701b3ea0c80
tests/errors.test.tshttps://github.com/JoshRob297/opencode-commandcode/pull/10/files#diff-287b94ca07f64adaa83d7ca72a4dcbbf17e6fb51a3a344954d7936c2c8011cdd
View file https://github.com/JoshRob297/opencode-commandcode/blob/67a6e6425a9a368bdb77c53e9178d0250aa5c5ca/tests/errors.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/JoshRob297/opencode-commandcode/pull/10/{{ revealButtonHref }}
Please reload this pagehttps://github.com/JoshRob297/opencode-commandcode/pull/10/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.