Skip to content

fix(doctor): check global agent-browser when local install not found#19671

Merged
teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a
May 4, 2026
Merged

fix(doctor): check global agent-browser when local install not found#19671
teknium1 merged 1 commit into
mainfrom
hermes/hermes-8c54fd4a

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

@teknium1 teknium1 commented May 4, 2026

Salvage of #16125 by @ms-alan onto current main.

Summary

When agent-browser is installed globally via npm install -g agent-browser but not present in the local node_modules, hermes doctor falsely warned that it wasn't installed. Check shutil.which("agent-browser") as a fallback after the local install check.

Note on authorship

The contributor's original commit was authored with an empty email (pander <>) due to a local git-config quirk. Re-attributed to ms-alan <chenb19870707@gmail.com> (the PR opener's public GitHub email) during salvage so the commit passes AUTHOR_MAP validation.

Changes

  • hermes_cli/doctor.py: shutil.which fallback for global agent-browser install (+2/-0)

Validation

Manual review; surgical fallback check.

Original PR: #16125
Fixes: #15951

When agent-browser is globally installed via 'npm install -g agent-browser'
but not present in the local node_modules, doctor falsely warns that it's
not installed. Add shutil.which('agent-browser') as a fallback check after
the local path check.

Closes #15951
@teknium1 teknium1 merged commit 055fde4 into main May 4, 2026
7 of 10 checks passed
@teknium1 teknium1 deleted the hermes/hermes-8c54fd4a branch May 4, 2026 10:13
@alt-glitch alt-glitch added type/bug Something isn't working P3 Low — cosmetic, nice to have comp/cli CLI entry point, hermes_cli/, setup wizard tool/browser Browser automation (CDP, Playwright) labels May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/cli CLI entry point, hermes_cli/, setup wizard P3 Low — cosmetic, nice to have tool/browser Browser automation (CDP, Playwright) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: doctor reports agent-browser not installed when it is globally installed

3 participants