fix(terminal): add docker_extra_args to all three config-to-env bridge maps (#28863) - #28888
fix(terminal): add docker_extra_args to all three config-to-env bridge maps (#28863)#28888zccyman wants to merge 1 commit into
Conversation
…aps (NousResearch#28863) The `terminal.docker_extra_args` setting from config.yaml was silently dropped because none of the three bridge paths included it: 1. gateway/run.py `_terminal_env_map` — gateway/messaging startup 2. cli.py `env_mappings` — CLI/TUI startup 3. hermes_cli/config.py `_config_to_env_sync` — `hermes config set` one-shot The terminal tool reads `TERMINAL_DOCKER_EXTRA_ARGS` (terminal_tool.py L1093) but the env var was never populated from config.yaml, making the documented setting completely non-functional.
|
Thanks @alt-glitch. Agreed that #28891 is a superset — it adds both docker_extra_args and docker_forward_env. This PR (+3 lines) is a minimal alternative for cases where only docker_extra_args is needed. Will close if #28891 merges first. |
|
Closing as obsolete — the (Note for maintainers: the consumer-side gap where |
Summary
Add
docker_extra_argsto all three config→env bridge maps soterminal.docker_extra_argsfrom config.yaml actually reaches the terminal tool.Fixes #28863
Problem
terminal.docker_extra_argsin config.yaml is silently dropped. The terminal tool readsTERMINAL_DOCKER_EXTRA_ARGS(terminal_tool.py L1093), but none of the three bridge paths populated it:_terminal_env_map— gateway/messaging platform startupenv_mappings— CLI/TUI startup_config_to_env_sync—hermes config setone-shotThis is the same class of bug as
docker_run_as_host_useranddocker_mount_cwd_to_workspacebefore it — a new config key added to the terminal defaults (config.py L654) without updating all bridge maps.Fix
Add
"docker_extra_args": "TERMINAL_DOCKER_EXTRA_ARGS"to all three dicts. Three files, one line each.Testing
test_terminal_config_env_sync.py::test_cli_and_gateway_env_maps_agree) now passes (was failing before this fix)