carry of #26682: fix(setup): report actionable harness authentication checks

Merged
TE
6d ago
+319-12

Carry of #26682: fix(setup): report actionable harness authentication checks.

Original purpose: provider configuration and protocol failures in cmux setup harness report explicit typed authentication status and recovery actions instead of state: "ok" with no recovery. Signed-out profiles retain profile-specific login commands; verification failures become actionable needs_user diagnostics while setup performs no writes.

This carry preserves the source implementation and tests, and merges current feat-cmux-next to refresh the crash-class/base comparison. #26682 remains the source PR; this PR supersedes it for landing.

No capture: CLI JSON only; no UI surface changes.

agent-identity footer --repo manaflow-ai/cmux


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Carry of #26682: cmux setup harness now reports typed authentication statuses and recovery actions instead of state: "ok" with no recovery. Verification failures become actionable needs_user diagnostics, and signed-out harnesses keep profile-specific login commands; setup itself still performs no writes. This PR merges current feat-cmux-next to refresh the base comparison, and #26682 remains the source PR.

  • Adds auth_status (detected, signed_out, needs_action, unknown, not_installed) and recovery to each setup harness row; recovery mirrors user_action.
  • Routes provider, network, and protocol failures to cmux harness doctor ID --no-prompt --json without sending a model turn; disabled-launch and keychain cases keep prior behavior.
  • CLI JSON only; no UI surface changes.