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 }}
Repository navigation
hosted chat sandbox has no package manager or build tools, and operators cannot add any #2940
area:sessionThe engine — turns, tasks, the toolbelt, checkpointsfeatureWork that adds a capability; developers break it into tasksneeds groomingShape and scope are still being decided — the approach is not settled
A hosted chat's sandbox has python3, git, curl and openssh-client, and nothing else a project usually needs to run its own tests: no pip, pytest, go, node, make or gcc. A chat's user is not root, so the chat cannot install them either. Seen in a production-style run on the hosted org line: a chat was asked to run a Python project's tests and could not, because there was no way to get pytest or any third-party dependency into the sandbox.
Today an operator has no setting that changes this. The tools come from the sessionhost image, and the only way to add one is to build a different image.
This is documented as a known limit (docs/organizations.md, "Known limits", and the operator README); this issue is for removing the limit.
What to do
Pick one, or both:
A way for operators to extend the image. For example a documented FROM line for the sessionhost image plus the one directory the sandbox fence must allow for added tools, or a supported build argument listing extra packages. The operator keeps control of what is installed; the default stays small.
A fuller default. A second, larger image tag (pip, a C toolchain, make, Node and Go) that an operator can choose with one variable, so "my team's chats can run tests" is a setting and not a fork.
Whichever is picked has to keep the fence as it is: tools live in a read-only location the chat can execute but not write, and the chat still cannot reach another chat's files or any token.
Acceptance
In a hosted chat on the compose stack with the chosen setting applied, the chat runs pytest on a small project that imports one third-party package, and the run passes. The manual page for hosted chats names the setting and the default's contents, and the "no pip, pytest, go, node, make or gcc" limit is removed from the docs in the same change.
area:sessionThe engine — turns, tasks, the toolbelt, checkpointsfeatureWork that adds a capability; developers break it into tasksneeds groomingShape and scope are still being decided — the approach is not settled
Activity