Open
Conversation
Add execution management features to runbox, enabling observation and control of running jobs while maintaining the core reproducibility focus. Key changes: - Extended Run struct with status, runtime, log_ref, timeline, exit_code fields - Added RunStatus enum: Pending, Running, Exited, Failed, Killed - Added Runtime enum: Background, Tmux, Zellij - Implemented new CLI commands: - `runbox ps` - list running and recent runs with status filtering - `runbox logs <run_id>` - view logs with -f for tail mode - `runbox stop <run_id>` - stop a running job - `runbox attach <run_id>` - attach to tmux/zellij session - `runbox _on-exit` - internal command for exit detection - Extended `runbox run` with --runtime option (bg, tmux, zellij) - Added atomic run updates and logs directory to storage layer - Updated JSON schema for Run with new fields 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <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.
Summary
runbox ps- list running and recent runs with status filteringrunbox logs <run_id>- view logs with-ffor tail moderunbox stop <run_id>- stop a running jobrunbox attach <run_id>- attach to tmux/zellij sessionrunbox _on-exit- internal command for exit detection (hidden)runbox runwith--runtimeoption (bg, tmux, zellij)Test Plan
runbox run -t <template> --runtime bgstarts in backgroundrunbox run -t <template> --runtime tmuxcreates tmux windowrunbox psshows running jobs with statusrunbox logs <run_id>shows log outputrunbox stop <run_id>stops running jobRelated
Implements ISSUE-005: Run Execution Management
🤖 Generated with Claude Code