Open
Conversation
Add execution management features to runbox for observing and controlling running jobs while maintaining reproducibility (code_state) as the core. Changes: - Extend Run struct with status, runtime, session_ref, log_ref, timeline, exit_code, and pid fields - Add RunStatus enum (Pending, Running, Exited, Failed, Killed) - Add Runtime enum (Background, Tmux, Zellij, Foreground) - Add LogRef struct for log file references - Add Timeline struct for tracking run lifecycle timestamps - Implement atomic save/update methods in Storage - Add logs directory to storage New CLI commands: - `runbox ps` - List running and recent runs with status filtering - `runbox logs <run_id>` - Show run logs - `runbox logs -f <run_id>` - Follow log output (tail -f style) - `runbox stop <run_id>` - Stop a running run - `runbox attach <run_id>` - Attach to tmux/zellij session - `runbox _on-exit <run_id> <exit_code>` - Internal exit callback Enhanced `runbox run` command: - Add --runtime flag (bg, tmux, zellij, foreground) - Capture stdout/stderr to log files - Track process lifecycle with status updates - Support tmux session management with shared session + window pattern - Support zellij session management All changes maintain backward compatibility with existing JSON format. 🤖 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
ps,logs,stop,attach,_on-exitrunbox runwith--runtimeflag for background, tmux, zellij, or foreground executionKey Features
Run Structure Extensions
New CLI Commands
runbox ps [--status <status>]runbox logs <run_id>runbox logs -f <run_id>runbox stop <run_id>runbox attach <run_id>Enhanced
runbox runReferences
Test plan
🤖 Generated with Claude Code