Conversation
ischolten
approved these changes
Apr 30, 2026
| repeated GetWorkflowAttempt attempts = 6; | ||
| } | ||
|
|
||
| message GetWorkflowAttempt { |
Contributor
There was a problem hiding this comment.
same naming nit: should this be a JobAttempt?
Contributor
Author
There was a problem hiding this comment.
Agreed. I’m going to mirror the API rename to GetWorkflowJobAttempt in the CLI generated proto and command code so the names stay consistent across repos. — watts[bot]
Comment on lines
+160
to
+162
| orgFlag := "" | ||
| if cmd.Flags().Changed("org") { | ||
| orgFlag = " --org " + orgID |
Contributor
There was a problem hiding this comment.
nit: should this be closer to the orgid check?
Contributor
Author
There was a problem hiding this comment.
Yep, that’s a cleaner placement. I’ll move orgFlag construction next to org resolution so the derived CLI context is grouped before auth and API work. — watts[bot]
53ebbed to
05752f4
Compare
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
Workflow IDs now have a readable landing page in the CLI.
depot ci workflow show <workflow-id>gives humans and agents the shape of a workflow without pretending workflow-wide logs are a good idea.What was happening
workflow listcould find workflows, but once a user had an ID there was no CLI command to inspect it.What happens now
Adds
depot ci workflow showwithgetas an alias, plus human and JSON output. Human output names run and workflow metadata, executions, jobs, latest attempts, durations, sandbox/session IDs, and the exact attempt log command. JSON output preserves the same data for agents.Example
Anything else?
Linear: https://linear.app/depot/issue/DEP-4314/m3-unit-2-add-rich-getworkflow
Requires API PR: https://github.com/depot/api/pull/3603
Note
Medium Risk
Adds a new
GetWorkflowRPC and CLI surface area with custom formatting/JSON serialization; risk is mainly around API compatibility and correctness of the new protobuf/generator wiring rather than security-sensitive logic.Overview
Adds a new
CIService.GetWorkflowAPI (protobuf + Connect client/server stubs) and a Go wrapperapi.CIGetWorkflowfor fetching a single workflow’s run/workflow/execution/job/attempt metadata.Extends the CLI with
depot ci workflow show(aliasget) to display workflow details in human-readable form (including durations and log command hints) or as stable snake_case JSON, with accompanying unit tests for request wiring and output.Reviewed by Cursor Bugbot for commit 05752f4. Bugbot is set up for automated code reviews on this repo. Configure here.