Skip to content

fix(google-workspace): detect disabled_client in --check and add --check-live#19643

Closed
ygd58 wants to merge 2 commits into
NousResearch:mainfrom
ygd58:fix/google-workspace-check-disabled-client
Closed

fix(google-workspace): detect disabled_client in --check and add --check-live#19643
ygd58 wants to merge 2 commits into
NousResearch:mainfrom
ygd58:fix/google-workspace-check-disabled-client

Conversation

@ygd58

@ygd58 ygd58 commented May 4, 2026

Copy link
Copy Markdown
Contributor

Problem

setup.py --check only validated token shape/expiry but did not detect when Google had disabled the OAuth client or account. Users got AUTHENTICATED even when actual API calls failed with disabled_client.

Fix

  • Catch disabled_client and invalid_client in check_auth() refresh path with actionable guidance
  • Add check_auth_live() that performs a real Calendar API call to detect disabled errors
  • Add --check-live CLI flag

Fixes #19570

…eck-live

setup.py --check only validated token shape/expiry but did not detect
when Google had disabled the OAuth client or account. Users got
AUTHENTICATED even when actual API calls failed with disabled_client.

Changes:
- Catch disabled_client and invalid_client in check_auth() refresh
  path with actionable guidance (check Cloud Console, check account
  status, do not retry)
- Add check_auth_live() that performs a real Calendar API call to
  detect disabled_client errors that survive token refresh
- Add --check-live CLI flag backed by check_auth_live()

Fixes NousResearch#19570
@alt-glitch alt-glitch added type/bug Something isn't working tool/skills Skills system (list, view, manage) P3 Low — cosmetic, nice to have labels May 4, 2026
@ygd58

ygd58 commented May 4, 2026

Copy link
Copy Markdown
Contributor Author

Fixed the docstring syntax error in check_auth_live() — 143 skill tests pass locally including all 15 google-workspace tests. The remaining CI failures (Nix, Supply Chain, Tests) are pre-existing and unrelated to this change.

teknium1 added a commit that referenced this pull request May 8, 2026
Small follow-ups on top of #19643:
- check_auth() takes quiet kwarg to suppress its AUTHENTICATED print
  when called from check_auth_live(), so the final status line reflects
  the live-call outcome only.
- Drop redundant _ensure_deps() call in check_auth_live() (check_auth()
  already calls it).
- Add AUTHOR_MAP entry for ygd58 so release attribution script works.
@teknium1

teknium1 commented May 8, 2026

Copy link
Copy Markdown
Contributor

Merged via PR #21826 (#21826) — your commits were cherry-picked onto current main with authorship preserved via rebase-merge. Added a small follow-up: check_auth() gained a quiet kwarg so check_auth_live() doesn't print AUTHENTICATED before its own status line, and dropped the redundant _ensure_deps() call. Thanks for the fix!

RationallyPrime pushed a commit to RationallyPrime/hermes-agent that referenced this pull request May 8, 2026
Small follow-ups on top of NousResearch#19643:
- check_auth() takes quiet kwarg to suppress its AUTHENTICATED print
  when called from check_auth_live(), so the final status line reflects
  the live-call outcome only.
- Drop redundant _ensure_deps() call in check_auth_live() (check_auth()
  already calls it).
- Add AUTHOR_MAP entry for ygd58 so release attribution script works.
JZKK720 pushed a commit to JZKK720/hermes-agent that referenced this pull request May 11, 2026
Small follow-ups on top of NousResearch#19643:
- check_auth() takes quiet kwarg to suppress its AUTHENTICATED print
  when called from check_auth_live(), so the final status line reflects
  the live-call outcome only.
- Drop redundant _ensure_deps() call in check_auth_live() (check_auth()
  already calls it).
- Add AUTHOR_MAP entry for ygd58 so release attribution script works.
rmulligan pushed a commit to rmulligan/hermes-agent that referenced this pull request May 11, 2026
Small follow-ups on top of NousResearch#19643:
- check_auth() takes quiet kwarg to suppress its AUTHENTICATED print
  when called from check_auth_live(), so the final status line reflects
  the live-call outcome only.
- Drop redundant _ensure_deps() call in check_auth_live() (check_auth()
  already calls it).
- Add AUTHOR_MAP entry for ygd58 so release attribution script works.
JinyuID pushed a commit to JinyuID/hermes-agent that referenced this pull request May 11, 2026
Small follow-ups on top of NousResearch#19643:
- check_auth() takes quiet kwarg to suppress its AUTHENTICATED print
  when called from check_auth_live(), so the final status line reflects
  the live-call outcome only.
- Drop redundant _ensure_deps() call in check_auth_live() (check_auth()
  already calls it).
- Add AUTHOR_MAP entry for ygd58 so release attribution script works.
jsboige pushed a commit to jsboige/hermes-agent that referenced this pull request May 14, 2026
Small follow-ups on top of NousResearch#19643:
- check_auth() takes quiet kwarg to suppress its AUTHENTICATED print
  when called from check_auth_live(), so the final status line reflects
  the live-call outcome only.
- Drop redundant _ensure_deps() call in check_auth_live() (check_auth()
  already calls it).
- Add AUTHOR_MAP entry for ygd58 so release attribution script works.
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
Small follow-ups on top of NousResearch#19643:
- check_auth() takes quiet kwarg to suppress its AUTHENTICATED print
  when called from check_auth_live(), so the final status line reflects
  the live-call outcome only.
- Drop redundant _ensure_deps() call in check_auth_live() (check_auth()
  already calls it).
- Add AUTHOR_MAP entry for ygd58 so release attribution script works.
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
Small follow-ups on top of NousResearch#19643:
- check_auth() takes quiet kwarg to suppress its AUTHENTICATED print
  when called from check_auth_live(), so the final status line reflects
  the live-call outcome only.
- Drop redundant _ensure_deps() call in check_auth_live() (check_auth()
  already calls it).
- Add AUTHOR_MAP entry for ygd58 so release attribution script works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low — cosmetic, nice to have tool/skills Skills system (list, view, manage) type/bug Something isn't working

Projects

None yet

3 participants