Repository navigation
Description
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
- 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. - 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": falsein the config JSON). curl -s -H 'X-Session-API-Key: dev-key' http://127.0.0.1:8000/api/tools/catalog->browser_tool_sethas"usable": false.curl -s http://127.0.0.1:8000/server_info->usable_toolscontainsbrowser_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_infousable_toolsdoes not containbrowser_tool_set, matchingGET /api/tools/catalog. - With
enable_browser: true(local runtime),usable_toolsis unchanged (still decided by the Chromium probe). - A unit test in
tests/agent_server/test_server_details_router.pycovers the disabled case. - The map bullet
F27.server-info-browser-disabledpasses with its# bugmarker 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 tolist_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 seesConfig.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 attool_router.py:57), and launches drop the browser, so only/server_infodisagrees. - The same helper also fixes the browser for
conversation_runtime: dockerfrom the conversation image;/server_infoignores that too (noted in the map'sF27.catalog-docker-runtimebullet).
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
enyst commentedon Oct 14, 2026
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 returnsTruefor the docker runtime when the conversation image has the browser. The PR applies that decision tousable_toolsin both directions, like the catalog, so with the stock docker image/server_infolistsbrowser_tool_seteven when the server process has no Chromium (conversations run in containers that have it). That readsusable_toolsas "usable by this server's conversations". The alternative is to only drop the browser when config disables it and leave docker-modeTrueto the process probe;/server_infowould 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