Any reason we set all these paths to relative rath...
# proj-sdk
w
Any reason we set all these paths to relative rather than absolute? https://github.com/All-Hands-AI/agent-sdk/blob/main/openhands/agent_server/config.py#L126
s
I opened a PR yesterday will replace this code: https://openhands-ai.slack.com/archives/C09FJAZSP9N/p1758924028830269
Not sure what you mean by relative - the reference you posted is to environment variables?
w
Sorry I meant stuff like
default=Path("workspace/bash_events"),
I'd expect
default=Path("/workspace/bash_events"),
s
I think the core question is : "What should the default storage directory be?" • An absolute path
/workspace/
is invalid on a lot of environments • We could use
$HOME/.openhands
, but this may not be what people want in the CLI. • So we use
cwd/workspace
w
yeah makes sense
maybe we should set the proper env vars in the Dockerfile? since we create /workspace
not a huge deal, I was just curious
s
Xingyao was talking about using the openhands user and using their home directory
👍 1
(As the default)
c
right now I set WORKDIR for docker to /, so that relative workspace will still map to /workspace
But I guess we can also set it via env var if we want
w
setting workdir to / works for me