Add compact runtime status CLI#22
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a top-level agent007 status command to provide compact local runtime/session visibility, including optional JSON output for tooling.
Changes:
- Registers the new
statusCLI subcommand and dispatch path. - Adds runtime status snapshot building, JSON output, and compact table rendering.
- Adds parser and formatting helper tests for the new command.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
crates/cli/src/main.rs |
Adds the Status command variant, dispatch handling, and CLI parse test. |
crates/cli/src/commands/runtime_status.rs |
Implements status snapshot generation, workflow/session summarization, JSON output, and table formatting. |
crates/cli/src/commands/mod.rs |
Exposes the new runtime_status command module. |
Comments suppressed due to low confidence (2)
crates/cli/src/commands/runtime_status.rs:187
- This only emits workflow-specific hints when a step is already running (or blocked/failed). Hosted workflows can also be waiting with no running step but with one or more ready/pending steps whose dependencies are satisfied; the existing runtime API handles that as
ready/host should submit ready steps. Those sessions will fall through tomonitor run, which is misleading because nothing is actually running and the host needs to submit the next step.
if !workflow.running_steps.is_empty() {
return "monitor running steps";
}
crates/cli/src/commands/runtime_status.rs:249
- Errors are truncated but not normalized like
taskandoutput_preview, so a multi-line workflow error can spill out of the compact row format and make the status table hard to parse. Replace embedded newlines before truncating here as well.
println!(" error: {}", truncate(error, 88));
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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
agent007 statusfor compact local runtime/session visibility--jsonoutput for tooling/automationValidation
cargo fmt --all -- --checkcargo test -p agent007 runtime_statuscargo test -p agent007 parse_status_subcommandcargo check -p agent007cargo run -p agent007 -- status --limit 3cargo run -p agent007 -- status --limit 1 --json