fix(terminal): respect config.yaml docker_image and terminal settings…#4350
Closed
devorun wants to merge 1 commit into
Closed
fix(terminal): respect config.yaml docker_image and terminal settings…#4350devorun wants to merge 1 commit into
devorun wants to merge 1 commit into
Conversation
malaiwah
added a commit
to malaiwah/hermes-agent
that referenced
this pull request
Apr 5, 2026
…ge config and invalid workdir bypass - PR NousResearch#4350: Load config.yaml terminal block as fallback before hardcoded defaults - Fixes docker_image in config.yaml not being loaded - Adds cfg.get() fallbacks for all terminal config options - PR NousResearch#4673: Don't clobber already-resolved absolute TERMINAL_CWD - Fixes invalid workdir bypassing terminal.cwd config - Skips config override when env var already has absolute path
malaiwah
added a commit
to malaiwah/hermes-agent
that referenced
this pull request
Apr 11, 2026
…ge config and invalid workdir bypass - PR NousResearch#4350: Load config.yaml terminal block as fallback before hardcoded defaults - Fixes docker_image in config.yaml not being loaded - Adds cfg.get() fallbacks for all terminal config options - PR NousResearch#4673: Don't clobber already-resolved absolute TERMINAL_CWD - Fixes invalid workdir bypassing terminal.cwd config - Skips config override when env var already has absolute path
Contributor
|
Thanks for the contribution, @devorun! This is an automated hermes-sweeper review. After inspecting current
Adding a second config.yaml read directly inside |
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
… (#4344)
What does this PR do?
Fixes #4344
The Issue:
The
_get_env_config()function intools/terminal_tool.pywas exclusively reading from environment variables (os.getenv) and falling back to a hardcoded default image (nikolaik/python-nodejs...). It completely ignored theterminalblock configurations specified inconfig.yaml, causing assigned images likerust:trixieto be bypassed entirely.The Fix:
Updated
_get_env_config()to safely load theterminalblock fromconfig.yamlas the primary fallback before using the hardcoded default values. This ensures that user-defined settings fordocker_image,cwd, and other container configurations are correctly respected across all terminal backends without breaking existing environment variable overrides.Related Issue
Fixes #
Type of Change
Changes Made
How to Test
Checklist
Code
fix(scope):,feat(scope):, etc.)pytest tests/ -qand all tests passDocumentation & Housekeeping
docs/, docstrings) — or N/Acli-config.yaml.exampleif I added/changed config keys — or N/ACONTRIBUTING.mdorAGENTS.mdif I changed architecture or workflows — or N/AFor New Skills
hermes --toolsets skills -q "Use the X skill to do Y"Screenshots / Logs