You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 27, 2026. It is now read-only.
Errors when developing agent-server-gui on OpenHands Cloud #19
When developing this repo within the OpenHands/OpenHands hosted cloud, it is a common source of errors.
For instance, this is a common one:
Error executing tool 'terminal': ['no server running on /tmp/tmux-10001/openhands']
I expect that this is because if we follow directions in this repo, one of two things is happening:
The frontend that we bring up here is connecting to the agent server powering the openhands cloud, and having two frontends connect to the same agent server (the cloud one, and the one we are developing here) causes issues
The agent server we bring up here is interfering with the conversations/sessions powering the openhands cloud
Read this repo and clone and read the OpenHands/OpenHands repo to fully understand the scope of the problem. Find all problems that could be caused in this case, and if issues don't exist for these potential conflicts, create an issue for them and mark them as sub-issues of this issue. If they already exist, just link them here.
Further, you can also read datadog logs to better understand what is going on (but do not post any sensitive information on this public issue).
I also cross-checked this against OpenHands/software-agent-sdk#2943 and Datadog logs showing no server running on /tmp/tmux-10001/openhands after these collisions.
This comment was created by an AI agent (OpenHands) on behalf of the user.
✅ Read/analyzed this repo and compared relevant upstream behavior
✅ Identified and tracked the likely conflict classes upstream
✅ Added an application-side mitigation/warning
✅ Added a regression test for the code change
✅ Ran tests for the new regression
✅ Created branch, commit, push, and PR as requested
✅ PR description closes #19 and includes the required sections actually used in this repo (there is no .github/pull_request_template.md present here)
Conciseness:
✅ Changes remain focused.
✅ No extra application code beyond the warning/detection path and related docs/test.
✅ The only non-product-code addition outside the direct fix is the AGENTS.md memory update, which is expected by the repo instructions.
✅ I reverted the accidental package-lock.json change, so no unnecessary dependency diff remains.
One caveat:
⚠️ The targeted regression test passes, but repo-wide npm run typecheck still has pre-existing unrelated failures in this checkout, so full green verification for the whole repo was not possible from the current baseline.
Context: We hit the same no server running on /tmp/tmux-<UID>/openhands error in our own deployment — not on OpenHands Cloud, but on OpenShift (Kubernetes with arbitrary UID assignment at runtime). Sharing our root cause and workaround in case it helps others.
Environment:
OpenShift assigns random UIDs at runtime (e.g. 1001320000), GID always 0, UID not present in passwd
tmp mounted as emptyDir: medium: Memory (in-memory tmpfs)
SDK v1.20.1, using agent_runner.py directly (not agent-server)
What was happening:
The tmux server started successfully in the container entrypoint (tmux -L openhands new-session -d -s _keepalive -x 1000 -y 1000 'sleep infinity'), but died between TmuxPanePool.new_session() and the subsequent set_environment() loop in tmux_pane_pool.py. The exact failure:
ValueError: tmux set-environment stderr: ['no server running on /tmp/tmux-1001320000/openhands']
The fix in #2970 (per-process TMUX_TMPDIR) didn't apply to us because we call the SDK directly — api_lifespan is never involved.
Fix:
Force terminal_type="subprocess" via the Tool.params dict, bypassing tmux entirely:
TerminalExecutor.__init__ respects this and skips _is_tmux_available() + TmuxPanePool initialization completely. The SubprocessTerminal backend works correctly under OpenShift's restricted security context.
Activity
openhands-ai commentedon Apr 25, 2026
I'm on it! neubig can track my progress at all-hands.dev
neubig commentedon Apr 25, 2026
I dug through this and split the upstream runtime conflicts into two tracked sub-issues:
agent-serverstarts in the same sandboxagent-serverprocesses can attach to the sameconversations_pathand create split-brain conversation ownership issuesI also cross-checked this against OpenHands/software-agent-sdk#2943 and Datadog logs showing
no server running on /tmp/tmux-10001/openhandsafter these collisions.This comment was created by an AI agent (OpenHands) on behalf of the user.
openhands-ai commentedon Apr 25, 2026
Final summary of work since the last summary:
✅ I completed the Git/PR workflow:
openhands/fix-cloud-dev-conflicts7972504with messageWarn about OpenHands Cloud backend conflicts✅ I also completed the issue-management part requested in Errors when developing agent-server-gui on OpenHands Cloud #19:
OpenHands/software-agent-sdk#2965OpenHands/software-agent-sdk#2966agent-server-gui#19#19Request compliance checklist:
#19and includes the required sections actually used in this repo (there is no.github/pull_request_template.mdpresent here)Conciseness:
AGENTS.mdmemory update, which is expected by the repo instructions.package-lock.jsonchange, so no unnecessary dependency diff remains.One caveat:
npm run typecheckstill has pre-existing unrelated failures in this checkout, so full green verification for the whole repo was not possible from the current baseline.santibonacho commentedon May 6, 2026
Context: We hit the same
no server running on /tmp/tmux-<UID>/openhandserror in our own deployment — not on OpenHands Cloud, but on OpenShift (Kubernetes with arbitrary UID assignment at runtime). Sharing our root cause and workaround in case it helps others.Environment:
1001320000), GID always 0, UID not present in passwdseccompProfile: RuntimeDefault,capabilities: drop: [ALL]emptyDir: medium: Memory(in-memory tmpfs)agent-server)What was happening:
The tmux server started successfully in the container entrypoint (
tmux -L openhands new-session -d -s _keepalive -x 1000 -y 1000 'sleep infinity'), but died betweenTmuxPanePool.new_session()and the subsequentset_environment()loop intmux_pane_pool.py. The exact failure:The fix in #2970 (per-process
TMUX_TMPDIR) didn't apply to us because we call the SDK directly —api_lifespanis never involved.Fix:
Force
terminal_type="subprocess"via theTool.paramsdict, bypassing tmux entirely:TerminalExecutor.__init__respects this and skips_is_tmux_available()+TmuxPanePoolinitialization completely. TheSubprocessTerminalbackend works correctly under OpenShift's restricted security context.