fix(run): canonical credential guidance — hint cloud login / set-key, unhide set-key (BE-3362)#554
fix(run): canonical credential guidance — hint cloud login / set-key, unhide set-key (BE-3362)#554mattmillerai wants to merge 1 commit into
Conversation
… unhide set-key (BE-3362)
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 44 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (6)
✨ Finishing Touches🧪 Generate unit tests (beta)
✨ Simplify code
Comment |
There was a problem hiding this comment.
🔍 Cursor Review — Consolidated panel
Triggered by @mattmillerai.
✅ No high-signal findings.
Panel: 6/8 reviewers contributed findings.
Reviewers that did not contribute: kimi-k2.5:adversarial (empty), kimi-k2.5:edge-case (empty)
ELI-5
When you try to run a workflow that needs a Comfy Cloud / partner-API key and you don't have one, the CLI used to tell you to run
comfy auth set comfy-cloud-api-key --key …. That command only "works" as a side effect —auth setactually rejects the cloud provider and prints a "not a well-known provider; stored anyway" warning. The real, sanctioned command iscomfy cloud set-key(or better,comfy cloud login). Butcomfy cloud set-keywashidden=True, so you couldn't even find it incomfy cloud --help.This PR fixes the steering: the missing-credential hints now point at the canonical path (
comfy cloud login→COMFY_API_KEYenv →comfy cloud set-key), andset-keyis now discoverable in the help output.What changed
comfy_cli/command/run/__init__.py— thepartner_node_requires_credentialhint now reads:run: comfy cloud login (or set COMFY_API_KEY in the environment, or persist a key withcomfy cloud set-key --key …; cloud runs auto-inject via --where cloud). This is the hint comfy-local-mcp passes through verbatim to agents (BE-3344), so it's the primary agent-facing steering — it now names the canonical order.comfy_cli/cloud/command.py— removedhidden=Truefromset-keyso it appears incomfy cloud --help. Help text keeps the "canonical sign-in iscomfy cloud login" / testing-path framing. Not added toSUPPORTED_PROVIDERS/comfy auth list(the store deliberately excludes cloud; OAuth-first percredentials.py).comfy_cli/error_codes.py— the registry entry for the same error code, updated to the canonical order (dropped thecomfy auth set comfy-cloud-api-keyreference).comfy_cli/help_json.py(judgment call) — the agent copy/paste example forcomfy auth setwascomfy auth set comfy-cloud --key sk-…, which is the exact path that ERRORS (auth_use_login_for_cloud). Changed to a real third-party provider (civitai), matching the sibling example on line 33. This is squarely the ticket's "steer away from the rejected back door" intent.comfy_cli/credentials.py(judgment call) — dropped the now-stale word "hidden" from two docstring/comment references tocomfy cloud set-key(accuracy only, tied to unhiding).Tests
test_cloud_set_key_visible_in_help— assertsset-keyappears incomfy cloud --help.test_auth_set_comfy_cloud_rejectedalready assertsauth set comfy-cloudstill errors withauth_use_login_for_cloudand hintscomfy cloud login— left intact (deliberately unchanged; the rejection path is preserved).tests/forcomfy auth set comfy-cloud-api-keywas empty).ruff check+ruff format --checkclean on the touched files.Notes / judgment calls
partner_node_requires_credentialandauth_use_login_for_clouddeny/reject paths already existed; the diff only improves the guidance toward working paths (cloud login/set-key), so there is no dead-end to falsify.set-keyout ofSUPPORTED_PROVIDERS/comfy auth listper the ticket (OAuth-first, deprecation-path stance preserved).