Skip to content

fix(images): Hermes tools 映像的具名 profile 仍使用 Browser Use CLI #83

Done

Description

@derekhsu

問題

tools 映像把 browser.backend: "off" 寫進 gateway 的 config.yaml 和受管 policy(#80),讓瀏覽器工具改用映像內的 Chromium。但用 hermes profile create 建立的具名 profile 沒有 config.yaml,browser.backend 是空的,Hermes 會改用 Browser Use CLI,也就是執行 uvx browser-use,從 PyPI 下載沒有固定版本的套件。#74 原本要移除的就是這條路。

在 tools 映像裡重現:

  • hermes profile create p1 之後,get_browser_backend() 回 '',is_browser_use_cli_mode() 回 True。
  • 對這個 profile 執行 image-build-probes.py profile-policy 失敗:AssertionError: ('browser.backend', '', 'off')。

原因

基礎映像在 agents/hermes-01x/Dockerfile:902 執行 patch-hermes-profile-policy-defaults.py,讓沒有設定檔的 profile 套用受管 policy 的預設值,但這個修補不涵蓋 browser.backend。agents/hermes-01x/Dockerfile.tools 修改 policy 後也沒有重新執行它。

文件 docs/modification/2026-11-17-hermes-tools-image.md 第 6 節已記載這個限制。

驗收

  • 新建的具名 profile 的 browser.backend 為 off,profile-policy probe 通過。
  • 具名 profile 的瀏覽器工具使用映像內的 Chromium,不執行 uvx。

相關但不在本 issue 範圍

若 tools 映像經由 NemoClaw managed startup 啟動,installHermesManagedPolicy()(src/lib/onboard/managed-startup/image-runtime.ts:1316)會重新產生設定與 policy,兩者都不含 browser.backend,瀏覽器會退回 Browser Use CLI。目前 tools 映像只由 ClawShell 使用,不走這條路。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions