From ac30abd89e45f72010f0076980eb0343cf0d2efb Mon Sep 17 00:00:00 2001 From: Hermes Agent Date: Fri, 10 Apr 2026 23:25:11 +0000 Subject: [PATCH] fix(config): bridge container resource settings to env vars Add terminal.container_cpu, container_memory, container_disk, and container_persistent to the _config_to_env_sync dict so that `hermes config set terminal.container_memory 8192` correctly writes TERMINAL_CONTAINER_MEMORY=8192 to ~/.hermes/.env. Previously these YAML keys had no effect because terminal_tool.py reads only env vars and the bridge was missing these mappings. Fixes #7362 (item 2). --- hermes_cli/config.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hermes_cli/config.py b/hermes_cli/config.py index 3b519551..a818ed42 100644 --- a/hermes_cli/config.py +++ b/hermes_cli/config.py @@ -2783,6 +2783,10 @@ def set_config_value(key: str, value: str): "terminal.timeout": "TERMINAL_TIMEOUT", "terminal.sandbox_dir": "TERMINAL_SANDBOX_DIR", "terminal.persistent_shell": "TERMINAL_PERSISTENT_SHELL", + "terminal.container_cpu": "TERMINAL_CONTAINER_CPU", + "terminal.container_memory": "TERMINAL_CONTAINER_MEMORY", + "terminal.container_disk": "TERMINAL_CONTAINER_DISK", + "terminal.container_persistent": "TERMINAL_CONTAINER_PERSISTENT", } if key in _config_to_env_sync: save_env_value(_config_to_env_sync[key], str(value))