Skip to content

[Bug]: /server_info usable_tools lists browser_tool_set while enable_browser is false #5915

Closed

Description

@enyst

I'm an AI agent (Claude Code) helping Engel Nyst (@enyst) with project maintenance.

Is there an existing issue for the same bug?

  • I have searched existing issues and this is not a duplicate.

Bug Description

On an agent server started with enable_browser: false, GET /server_info still lists browser_tool_set in usable_tools whenever the server process can find a Chromium. The tool catalog on the same server (GET /api/tools/catalog) correctly reports browser_tool_set with usable: false, and conversations launched there never get the browser. A client that reads usable_tools therefore offers a tool the server will not give to any conversation.

Expected Behavior

With enable_browser: false, /server_info usable_tools agrees with the catalog and leaves out browser_tool_set. Other tools are unchanged.

Actual Behavior

usable_tools contains browser_tool_set (when Chromium is present), while the catalog entry says "usable": false.

Steps to Reproduce

  1. On a machine with a Chromium the server can find (e.g. a Playwright Chromium in ~/.cache/ms-playwright), in a checkout of main: uv sync.
  2. Start the server with the browser disabled, e.g. OH_ENABLE_BROWSER=false SESSION_API_KEY=dev-key uv run python -m openhands.agent_server --host 127.0.0.1 --port 8000 (or "enable_browser": false in the config JSON).
  3. curl -s -H 'X-Session-API-Key: dev-key' http://127.0.0.1:8000/api/tools/catalog -> browser_tool_set has "usable": false.
  4. curl -s http://127.0.0.1:8000/server_info -> usable_tools contains browser_tool_set.

With the verify-agent-server skill: control-agent-server map run --file F27 --only F27.browser-probe,F27.browser-disabled,F27.server-info-browser-disabled --fresh reports the known-bug bullet as an expected failure while the bug lasts (the two setup bullets link the Chromium and restart with enable_browser: false).

Acceptance Criteria

  • With enable_browser: false, GET /server_info usable_tools does not contain browser_tool_set, matching GET /api/tools/catalog.
  • With enable_browser: true (local runtime), usable_tools is unchanged (still decided by the Chromium probe).
  • A unit test in tests/agent_server/test_server_details_router.py covers the disabled case.
  • The map bullet F27.server-info-browser-disabled passes with its # bug marker removed.

Installation Method

uv sync in a checkout of main

Version

main at 6e7a853

Additional Context

Root cause:

  • ServerInfo.usable_tools (openhands-agent-server/openhands/agent_server/server_details_router.py:58) defaults to list_usable_tools() (openhands-sdk/openhands/sdk/tool/registry.py:230), which runs only each tool's usability check (for the browser, the Chromium probe) and never sees Config.enable_browser. get_server_info (server_details_router.py:152) does not pass the config's browser decision either.
  • The catalog route applies configured_browser_available(config) (openhands-agent-server/openhands/agent_server/launch.py:103, used at tool_router.py:57), and launches drop the browser, so only /server_info disagrees.
  • The same helper also fixes the browser for conversation_runtime: docker from the conversation image; /server_info ignores that too (noted in the map's F27.catalog-docker-runtime bullet).

Related: #5899 (Chromium probe ignores PLAYWRIGHT_BROWSERS_PATH; a separate probe problem).

Found by the first full agentic run of verify-agent-server; tracked in #5653.

Activity

  1. added
    bug
    on Oct 14, 2026
  2. enyst commented on Oct 14, 2026

    @enyst
    MemberAuthor

    I'm an AI agent (Claude Code) helping Engel Nyst (@enyst) with project maintenance.

    Fix proposed in #5924.

    Decision needed (maintainer): configured_browser_available(config) also returns True for the docker runtime when the conversation image has the browser. The PR applies that decision to usable_tools in both directions, like the catalog, so with the stock docker image /server_info lists browser_tool_set even when the server process has no Chromium (conversations run in containers that have it). That reads usable_tools as "usable by this server's conversations". The alternative is to only drop the browser when config disables it and leave docker-mode True to the process probe; /server_info would then keep disagreeing with the catalog for the stock docker image. I implemented the first because it makes the two views agree, which is the point of this issue. Other tools in docker mode still come from the process probe either way.


    Generated by Claude Code

  3. added
    ready-for-dev
    on Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugready-for-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions