fix(proxy): terminal workdir should be /opt/data, not empty /workspace - #50
Merged
johnson7788 merged 1 commit intoJun 30, 2026
Merged
Conversation
…pace The runtime container mounts a data volume at /workspace (holds only platform-runtime.json) and HERMES_HOME at /opt/data (profiles/skills/sessions/.env). Starting the PTY shell in /workspace lands users in an empty dir; /opt/data is where their files live, so use it as the terminal cwd. Co-Authored-By: Claude <noreply@anthropic.com>
johnson7788
pushed a commit
that referenced
this pull request
Jul 6, 2026
johnson7788
pushed a commit
that referenced
this pull request
Jul 6, 2026
johnson7788
pushed a commit
that referenced
this pull request
Jul 6, 2026
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.
Problem
The frontend terminal (
docker execPTY into the user's dedicated runtime container) starts withworkdir=/workspace. But/workspaceonly holdsplatform-runtime.json— it's an essentially empty data volume. The user's actual files (profiles, skills, sessions,.env) live in/opt/data(HERMES_HOME). Opening the terminal drops the user into an empty directory, forcing acd /opt/dataevery time.Fix
Set the terminal
workdirto/opt/dataso users land in their real data directory.def _start_hermes_terminal_socket(container_id_or_name: str, command: str): container = get_docker_container(container_id_or_name) result = container.exec_run( ["sh", "-lc", command], stdin=True, stdout=True, stderr=True, tty=True, socket=True, - workdir="/workspace", + workdir="/opt/data", )Verification
On a running container:
/opt/datacontainsprofiles/,skills/,sessions/,.env, etc.;/workspacecontains onlyplatform-runtime.json. After the fix the terminal opens in/opt/dataand the user sees their files immediately.One-line change, no behavior change beyond the starting directory.
🤖 Generated with Claude Code