Repository navigation
Set CODEBOX_SESSION in Podman boxes too - #94
Merged
Merged
Conversation
A process inside a Podman box had no way to tell which session it is: the hostname is the launcher's name, and Podman fills /run/.containerenv only for privileged containers. The Apptainer backend already exported the session (container) name as CODEBOX_SESSION. Move it into the runtime-neutral session spec, so both backends set it. Tools that read the name from outside, from the terminal's 'podman run --name', can then match what a process in the box reports: the Herdr cockpit uses it to give each agent in a project its own status file instead of a shared one. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
A process inside a Podman box had no way to tell which session it is: the hostname is the launcher's name, and Podman only fills
/run/.containerenvfor privileged containers. The Apptainer backend already exported the session (container) name asCODEBOX_SESSION; the Podman backend did not.What changes
CODEBOX_SESSIONmoves into the runtime-neutral session spec inlib/box-common.sh, so both backends set it. The Apptainer-only export is removed; its rendered command line is unchanged.docs/architecture.mdand in the Multi-Session entry ofAGENTS.md.Why now
The Herdr cockpit gives each agent its own status file, named after the container, which it reads from outside in the terminal's
podman run --name. Without the name inside the box, two agents in the same project both wrote the same file and neither was shown. The matching cockpit change is guimou/herdr-cockpit#11.Tested
tests/render-test.shpasses (50 scenarios). The 31 Podman golden files are re-recorded with the one added-e CODEBOX_SESSION=...line each; the Apptainer golden files did not change.Not run here: shellcheck (not installed in this environment, left to CI), and a real box.
Generated by Claude Code