gh agent-task view: add --web flag - #11704
Merged
Merged
Conversation
Signed-off-by: Babak K. Shandiz <babakks@github.com>
Signed-off-by: Babak K. Shandiz <babakks@github.com>
Signed-off-by: Babak K. Shandiz <babakks@github.com>
Signed-off-by: Babak K. Shandiz <babakks@github.com>
Signed-off-by: Babak K. Shandiz <babakks@github.com>
babakks
temporarily deployed
to
cli-automation
September 10, 2025 10:07 — with
GitHub Actions
Inactive
Signed-off-by: Babak K. Shandiz <babakks@github.com>
babakks
marked this pull request as ready for review
September 10, 2025 10:50
babakks
temporarily deployed
to
cli-automation
September 10, 2025 10:50 — with
GitHub Actions
Inactive
Signed-off-by: Babak K. Shandiz <babakks@github.com>
BagToad
reviewed
Sep 10, 2025
BagToad
reviewed
Sep 10, 2025
BagToad
reviewed
Sep 10, 2025
BagToad
reviewed
Sep 10, 2025
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.
This PR adds
--webtoagent-task view.Note that the
/agent-sessionspage of PRs, is only available (i.e. not returningHTTP 404) when there's at least one session attached to the PR. This means, even in--webmode we have to fetch the sessions associated with a PR to make sure navigating user to the/agent-sessionspage does not show any error. I've added an A/C for this at the end.A/C verification
Directly open named session ID
Confirmed:

Require no disambiguation with
--weband PR numberNote
Since
https://github.com/foo/bar/pull/1234/agent-sessions/is a valid PR specific page requiring no session ID, we can simply open that page, expecting the user to disambiguate which session in the UI. Thus, we do not need to prompt for it. This flow deviates from the non--webflow.Confirmed (PR with only one session attached):
Confirmed (PR with more than one sessions attached):
No sessions associated with a PR
Given I have PR (1234) without any sessions attached to it
When I run
gh agent-task view 1234 --webThen I get the same error as running in non-web mode
Confirmed:
