Skip to content

fix: CLI help text consistency across 5 commands - #25147

Merged
pelikhan merged 2 commits into
mainfrom
copilot/cli-consistency-issue-fix
Apr 7, 2026
Merged

pelikhan merged 2 commits into
mainfrom
copilot/cli-consistency-issue-fix

Conversation

Copilot AI commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

Automated CLI inspection found 8 inconsistencies across help text — misleading descriptions, informal language, ambiguous wording, and internal implementation details leaking into user-facing flags.

Changes

  • pr: Bullet for transfer subcommand now matches its Short description ("Transfer a pull request to another repository" vs. former "Transfer a PR from one repository to another")
  • logs --last: Removed implication it only applies to cross-run reports; it's an alias for --count in all contexts
  • logs --no-staged: Removed internal artifact reference (exclude runs with staged: true in aw_info.json) from flag description
  • logs Long: Replaced internal filename aw_info.json with user-facing label Workflow metadata in artifact list
  • trial Short: Changed from using "trial" as a verb ("Trial one or more...") to "Run one or more agentic workflows in trial mode against a simulated repository"
  • init Long: Removed documentation-style instruction about loading .github/agents/agentic-workflows.agent.md — not CLI help content
  • compile --stats / validate --stats: Clarified "sorted by file size" → "sorted by workflow file size"
  • logs_patch_test.go: Updated assertion to match new artifact label

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • https://api.github.com/graphql
    • Triggering command: /usr/bin/gh /usr/bin/gh api graphql -f query=query($owner: String!, $name: String!) { repository(owner: $owner, name: $name) { hasDiscussionsEnabled } } -f owner=github -f name=gh-aw pkg/mod/github.crev-parse /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/[email protected] /usr/bin/git /tmp/go-build215git -trimpath /usr/bin/git git (http block)
  • https://api.github.com/orgs/test-owner/actions/secrets
    • Triggering command: /usr/bin/gh gh api /orgs/test-owner/actions/secrets --jq .secrets[].name -c=4 -nolocalimports -importcfg /tmp/go-build1626033568/b410/importcfg -pack /home/REDACTED/work/gh-aw/gh-aw/pkg/fileutil/fileutil.go /home/REDACTED/work/gh-aw/gh-aw/pkg/fileutil/tar.go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/actions/ai-inference/git/ref/tags/v1
    • Triggering command: /usr/bin/gh gh api /repos/actions/ai-inference/git/ref/tags/v1 --jq .object.sha /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq /usr/bin/git rity395143020/00git GO111MODULE .test git rev-�� --show-toplevel .test /usr/bin/git -json CHrYwEuIi k git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v3
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v3 --jq .object.sha /tmp/gh-aw-test-runs/20260407-194614-32536/test-4068029233 rev-parse /usr/bin/infocmp -json GO111MODULE 64/bin/go infocmp -1 xterm-color go /usr/bin/gh -json GO111MODULE x_amd64/compile gh (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v5
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha 0WwFclSTV GO111MODULE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x^remote\..*\.gh-resolved$ ortc�� 2/001/inlined-b.md d/gh-aw-wasm/main.go ache/go/1.25.8/x64/pkg/tool/linux_amd64/link GOINSECURE GOMOD 6266071/b036/sym--show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /usr/bin/git ortcfg GO111MODULE .cfg git rev-�� --show-toplevel ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /usr/bin/git ExpressionCompilgit GO111MODULE ache/go/1.25.8/x--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v5 --jq .object.sha --show-toplevel git /usr/bin/git runs/20260407-19git Test User /usr/bin/infocmp--show-toplevel git rev-�� --show-toplevel infocmp /usr/bin/git xterm-color go /opt/hostedtoolc--show-toplevel git (http block)
  • https://api.github.com/repos/actions/checkout/git/ref/tags/v6
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha github.actor 64/pkg/tool/linux_amd64/asm /usr/bin/infocmp ned-imports-enabgit GO111MODULE 64/pkg/tool/linu--show-toplevel infocmp -1 xterm-color 64/pkg/tool/linux_amd64/compile /usr/bin/git g_.a rotocol/go-sdk@vrev-parse 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha --show-toplevel 64/pkg/tool/linu-trimpath /usr/bin/git -json GO111MODULE 64/pkg/tool/linu--show-toplevel /usr/bin/git conf�� --get-regexp ^remote\..*\.gh-resolved$ /usr/bin/git 1653004808/.githgit 0/internal/formarev-parse 64/pkg/tool/linu--show-toplevel git (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/checkout/git/ref/tags/v6 --jq .object.sha tags/v4 ache/go/1.25.8/x64/pkg/tool/linux_amd64/vet /usr/bin/git YHLh/BOY-j7o0lOpgit -pack /opt/hostedtoolc--show-toplevel git rev-�� --show-toplevel /opt/hostedtoolcache/go/1.25.8/x64/pkg/tool/linux_amd64/compile /usr/bin/git /tmp/go-build162git 6033568/b431/_terev-parse 6033568/b442/vet--show-toplevel git (http block)
  • https://api.github.com/repos/actions/github-script/git/ref/tags/v8
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha go1.25.8 -c=4 -nolocalimports -importcfg /tmp/go-build2156266071/b223/importcfg -pack /home/REDACTED/go/pkg/mod/github.com/segmentio/[email protected]/ascii/equal_fold.go -o /tmp/go-build410-p -trimpath 64/bin/go -p main -lang=go1.25 go (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha -json GO111MODULE 64/bin/go GOINSECURE GOMOD wasm.s go env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/actions/github-script/git/ref/tags/v8 --jq .object.sha 01 GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go env -json GO111MODULE x_amd64/asm GOINSECURE GOMOD GOMODCACHE x_amd64/asm (http block)
  • https://api.github.com/repos/actions/setup-go/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-go/git/ref/tags/v4 --jq .object.sha --show-toplevel x_amd64/compile /usr/bin/git g_.a GO111MODULE 64/pkg/tool/linu--show-toplevel /usr/bin/git conf�� --get-regexp ^remote\..*\.gh-resolved$ /usr/bin/git g_.a verutil.go 64/pkg/tool/linu--show-toplevel git (http block)
  • https://api.github.com/repos/actions/setup-node/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/setup-node/git/ref/tags/v4 --jq .object.sha --show-toplevel x_amd64/vet /usr/bin/infocmp g_.a GO111MODULE 64/pkg/tool/linu--show-toplevel infocmp -1 xterm-color 64/pkg/tool/linurev-parse /usr/bin/git 3497814789/.githgit ik_mNb6yT 64/pkg/tool/linu--show-toplevel git (http block)
  • https://api.github.com/repos/actions/upload-artifact/git/ref/tags/v4
    • Triggering command: /usr/bin/gh gh api /repos/actions/upload-artifact/git/ref/tags/v4 --jq .object.sha /tmp/go-build1626033568/b424/_pkg_.a -trimpath /usr/bin/git -p github.com/githurev-parse -lang=go1.25 git rev-�� ons-test3792657467 -goversion 64/pkg/tool/linux_amd64/vet l -nolocalimports -importcfg 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v0.1.2
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v0.1.2 --jq .object.sha --show-toplevel go /usr/bin/git tmatter-with-envgit GO111MODULE 64/pkg/tool/linu--show-toplevel /usr/bin/git remo�� -v 64/pkg/tool/linuTest User /usr/bin/git 1346711677/.githgit [email protected]/ascrev-parse 64/pkg/tool/linu--show-toplevel git (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.0.0 --jq .object.sha 6033568/b442/_pkg_.a --revs 1/x64/bin/node --thin b/gh-aw/pkg/timerev-parse -q 1/x64/bin/node -C mrfP/Z8h6TsDdn-6ztjpMmrfP rev-parse /usr/bin/git -json GO111MODULE 64/bin/go 6033568/b442/importcfg (http block)
  • https://api.github.com/repos/github/gh-aw-actions/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw-actions/git/ref/tags/v1.2.3 --jq .object.sha t0 git-receive-pack '/tmp/TestParseDefaultBranchFromLsRemoteWithRealGitmaster_branch3269958268/001'rev-parse 1/x64/bin/node m0s --ignore-path (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/1/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/1/artifacts --jq .artifacts[].name 0/internal/language/common.go 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD abis 64/pkg/tool/linux_amd64/compile env 3614936689 KjIdi_zAe x_amd64/link GOINSECURE gset GOMODCACHE x_amd64/link (http block)
    • Triggering command: /usr/bin/gh gh run download 1 --dir test-logs/run-1 glpNKSOQr 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuTest User env g_.a bt7zDc9ZF ache/go/1.25.8/x64/pkg/tool/linu-nilfunc GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-tests (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12345/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12345/artifacts --jq .artifacts[].name rotocol/[email protected]/internal/xcontext/xcontext.go 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/compile env ithub/workflows GO111MODULE 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuorigin (http block)
    • Triggering command: /usr/bin/gh gh run download 12345 --dir test-logs/run-12345 GO111MODULE 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/[email protected] env g_.a LZuHOSZyr /opt/hostedtoolcache/go/1.25.8/x-test.short=true GOINSECURE GOMOD GOMODCACHE go (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/12346/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/12346/artifacts --jq .artifacts[].name @v1.1.3/cpu/cpu.go 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/compile env ithub/workflows go /opt/hostedtoolcache/go/1.25.8/x64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run download 12346 --dir test-logs/run-12346 0/internal/tag/tag.go 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/compile env e-analyzer.md kLZAPaMu6 x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/2/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/2/artifacts --jq .artifacts[].name 0/internal/stringset/set.go 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD abis 64/pkg/tool/linux_amd64/compile env 3614936689 sNGC5r73k x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
    • Triggering command: /usr/bin/gh gh run download 2 --dir test-logs/run-2 GO111MODULE 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD abis 64/pkg/tool/linux_amd64/compile env g_.a NG8R67gve x_amd64/vet GOINSECURE GOMOD GOMODCACHE x_amd64/vet (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/3/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/3/artifacts --jq .artifacts[].name ohNRO1y8b 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linuTest User env 3614936689 3GMM57Ps3 ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE go-sdk/internal/rev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linuremote.origin.url (http block)
    • Triggering command: /usr/bin/gh gh run download 3 --dir test-logs/run-3 GO111MODULE 64/pkg/tool/linux_amd64/compile GOINSECURE mic_wasm.o 64/src/internal/user.email 64/pkg/tool/[email protected] env g_.a cuiX4cYAj k GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linu-extld=gcc (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/4/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/4/artifacts --jq .artifacts[].name rotocol/[email protected]/internal/json/json.go 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/[email protected] env g_.a LamLkoYmy ache/go/1.25.8/x64/pkg/tool/linux_amd64/asm GOINSECURE go-sdk/internal/rev-parse GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linuremote.origin.url (http block)
    • Triggering command: /usr/bin/gh gh run download 4 --dir test-logs/run-4 0/message/catalog/catalog.go 64/pkg/tool/linux_amd64/compile GOINSECURE al_wasm.o 64/src/internal//home/REDACTED/work/gh-aw/gh-aw/.github/workflows/api-consumption-report.md 64/pkg/tool/linux_amd64/compile env g_.a Bzwz7Kv-X 64/pkg/tool/linux_amd64/compile GOINSECURE (http block)
  • https://api.github.com/repos/github/gh-aw/actions/runs/5/artifacts
    • Triggering command: /usr/bin/gh gh api --paginate repos/{owner}/{repo}/actions/runs/5/artifacts --jq .artifacts[].name rotocol/[email protected]/internal/jsonrpc2/conn.go 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD abis 64/pkg/tool/linux_amd64/compile 64/s�� g_.a GO111MODULE x_amd64/compile GOINSECURE age/compact GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run download 5 --dir test-logs/run-5 0/message/catalog.go 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/compile env 1011427894/.github/workflows YfB4YDUdE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile GOINSECURE chema/v6/kind GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path /tmp/go-build410-p -trimpath 64/bin/go -p github.com/githu-o -lang=go1.25 go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 100 GOMOD GOMODCACHE go env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh run list --json databaseId,number,url,status,conclusion,workflowName,createdAt,startedAt,updatedAt,event,headBranch,headSha,displayTitle --workflow nonexistent-workflow-12345 --limit 6 GOMOD GOMODCACHE 64/pkg/tool/linuremote.origin.url env til.go o 64/pkg/tool/linux_amd64/compile GOINSECURE GOMOD abis 64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v0.47.4
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v0.47.4 --jq .object.sha --show-toplevel ache/go/1.25.8/x64/pkg/tool/linuorigin /usr/bin/git eutil.go eutil_test.go 64/pkg/tool/linu--show-toplevel git rev-�� --show-toplevel 64/pkg/tool/linux_amd64/compile /usr/bin/git ai-moderator.md IPxV/l55902s4ayDrev-parse e/git git (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.0.0 --jq .object.sha rity395143020/001 GO111MODULE .test GOINSECURE GOMOD GOMODCACHE .test 6260�� -json CHrYwEuIi k GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linuremote.origin.url (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v1.2.3
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v1.2.3 --jq .object.sha -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile _bra�� -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v2.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha -json GO111MODULE x_amd64/asm GOINSECURE GOMOD GOMODCACHE x_amd64/asm env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v2.0.0 --jq .object.sha -json GO111MODULE x_amd64/compile GOINSECURE lang/pkg/flatted-C GOMODCACHE x_amd64/compile env -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
  • https://api.github.com/repos/github/gh-aw/git/ref/tags/v3.0.0
    • Triggering command: /usr/bin/gh gh api /repos/github/gh-aw/git/ref/tags/v3.0.0 --jq .object.sha -json GO111MODULE x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile env Gitmaster_branch3269958268/001' Gitmaster_branch3269958268/001' x_amd64/compile GOINSECURE GOMOD GOMODCACHE x_amd64/compile (http block)
  • https://api.github.com/repos/nonexistent/action/git/ref/tags/v999.999.999
    • Triggering command: /usr/bin/gh gh api /repos/nonexistent/action/git/ref/tags/v999.999.999 --jq .object.sha g_.a Cy4PJHJpH stants.test GOINSECURE GOMOD GOMODCACHE stants.test 6260�� ortcfg S-MkVro-o 64/pkg/tool/linux_amd64/vet GOINSECURE GOMOD GOMODCACHE 64/pkg/tool/linux_amd64/vet (http block)
  • https://api.github.com/repos/nonexistent/repo/actions/runs/12345
    • Triggering command: /usr/bin/gh gh run view 12345 --repo nonexistent/repo --json status,conclusion GOINSECURE GOMOD GOMODCACHE x_amd64/vet env XMdlm1J_w GO111MODULE k GOINSECURE GOMOD GOMODCACHE ache/go/1.25.8/x64/pkg/tool/linux_amd64/compile (http block)
  • https://api.github.com/repos/owner/repo/actions/workflows
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go -p github.com/githu-o -lang=go1.25 go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)
    • Triggering command: /usr/bin/gh gh workflow list --json name,state,path --repo owner/repo 64/bin/go -p main -lang=go1.25 go env -json GO111MODULE 64/bin/go GOINSECURE GOMOD GOMODCACHE tomic_wasm.s (http block)
  • https://api.github.com/repos/owner/repo/contents/file.md
    • Triggering command: /tmp/go-build1626033568/b396/cli.test /tmp/go-build1626033568/b396/cli.test -test.testlogfile=/tmp/go-build1626033568/b396/testlog.txt -test.paniconexit0 -test.v=true -test.parallel=4 -test.timeout=10m0s -test.run=^Test -test.short=true -nolocalimports -importcfg /tmp/go-build2156266071/b187/importcfg -pack -o /tmp/go-build410-p -trimpath 64/bin/go -p main -lang=go1.25 go (http block)
  • https://api.github.com/repos/test-owner/test-repo/actions/secrets
    • Triggering command: /usr/bin/gh gh api /repos/test-owner/test-repo/actions/secrets --jq .secrets[].name /tmp/go-build410-p -trimpath 64/bin/go -p github.com/githu-o -lang=go1.25 go env -json son/json.go 64/bin/go GOINSECURE GOMOD GOMODCACHE go (http block)

If you need me to access, download, or install something from one of these locations, you can either:

- pr transfer: align bullet in pr Long with pr transfer Short description
- logs --last: remove implication that it only works for cross-run reports
- trial: avoid using 'trial' as a verb in the Short description
- init: remove documentation-style 'load the .github/agents/...' sentence
- compile/validate --stats: clarify 'workflow file size' vs ambiguous 'file size'
- logs --no-staged: remove internal aw_info.json reference from flag description
- logs Long: replace aw_info.json internal name with 'Workflow metadata'
- Update logs_patch_test.go to match new help text

Agent-Logs-Url: https://github.com/github/gh-aw/sessions/6adaa012-4934-4a49-a746-84f5edda9812

Co-authored-by: pelikhan <[email protected]>
Copilot AI changed the title [WIP] Fix inconsistencies in CLI command help text fix: CLI help text consistency across 5 commands Apr 7, 2026
Copilot AI requested a review from pelikhan April 7, 2026 19:49
@pelikhan
pelikhan marked this pull request as ready for review April 7, 2026 20:32
Copilot AI review requested due to automatic review settings April 7, 2026 20:32
@pelikhan
pelikhan merged commit cb28f8c into main Apr 7, 2026
51 of 52 checks passed
@pelikhan
pelikhan deleted the copilot/cli-consistency-issue-fix branch April 7, 2026 20:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes and clarifies user-facing CLI help text across multiple commands, removing ambiguous wording and internal implementation details from flag/command descriptions.

Changes:

  • Aligns help text phrasing for pr transfer, trial, logs, and init to be more consistent and user-focused.
  • Clarifies --stats descriptions for compile and validate to specify “workflow file size”.
  • Updates logs help text (and a related test) to remove internal artifact/file references and correct --last / --no-staged wording.
Show a summary per file
File Description
pkg/cli/validate_command.go Clarifies --stats help text to specify workflow file size.
pkg/cli/trial_command.go Updates trial short help text for clearer wording.
pkg/cli/pr_command.go Aligns transfer subcommand bullet with the command’s Short description.
pkg/cli/logs_patch_test.go Updates help-text assertions to match the new logs help text.
pkg/cli/logs_command.go Removes internal references and refines logs artifact list and flag descriptions.
pkg/cli/init_command.go Removes non-CLI-help instructional content from init long description.
cmd/gh-aw/main.go Clarifies compile --stats help text to specify workflow file size.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 7/7 changed files
  • Comments generated: 4

Comment thread pkg/cli/logs_command.go

Downloaded artifacts include:
- aw_info.json: Engine configuration and workflow metadata
- Workflow metadata: Engine configuration and run metadata

Copilot AI Apr 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The logs command help is listing downloaded files (e.g., safe_output.jsonl, agent-stdio.log, summary.json), but this entry was changed to a conceptual label ("Workflow metadata") instead of the actual output filename. The downloaded run directory still contains aw_info.json (e.g., filepath.Join(result.LogsPath, "aw_info.json") in pkg/cli/logs_orchestrator.go), so the help text is now less actionable for users trying to locate the file.

Consider documenting the real filename while keeping the user-friendly description (e.g., aw_info.json: Workflow/run metadata ...) or rename the emitted file to match the label if the intent is to hide the internal name.

Suggested change
- Workflow metadata: Engine configuration and run metadata
- aw_info.json: Workflow/run metadata and engine configuration

Copilot uses AI. Check for mistakes.
Comment on lines 87 to 92
// Verify the help text mentions all expected artifacts
expectedArtifacts := []string{
"aw_info.json",
"Workflow metadata",
"safe_output.jsonl",
"aw-{branch}.patch",
}

Copilot AI Apr 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test now asserts the logs help mentions "Workflow metadata". If the CLI help is updated to include the actual on-disk filename (aw_info.json) for discoverability (the run directory still contains aw_info.json), the test should be adjusted accordingly (e.g., assert aw_info.json is mentioned, or assert both the filename and the human-friendly description).

See below for a potential fix:

	// Verify the help text mentions all expected artifacts, including the
	// discoverable on-disk workflow metadata filename.
	expectedArtifacts := []string{
		"Workflow metadata",
		"aw_info.json",

Copilot uses AI. Check for mistakes.
Comment thread pkg/cli/trial_command.go
Use: "trial <workflow-spec>...",
Short: "Trial one or more agentic workflows as if they were running in a repository",
Short: "Run one or more agentic workflows in trial mode against a simulated repository",
Long: `Trial one or more agentic workflows as if they were running in a repository.

Copilot AI Apr 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Short was updated to avoid using “Trial” as a verb, but the first sentence of Long still starts with "Trial one or more…". To keep the help text consistent and avoid mixed terminology, consider updating the opening sentence of Long to match the new phrasing (e.g., "Run one or more… in trial mode …").

Suggested change
Long: `Trial one or more agentic workflows as if they were running in a repository.
Long: `Run one or more agentic workflows in trial mode as if they were running in a repository.

Copilot uses AI. Check for mistakes.
Comment thread pkg/cli/logs_command.go
addRepoFlag(logsCmd)
logsCmd.Flags().Bool("tool-graph", false, "Generate Mermaid tool sequence graph from agent logs")
logsCmd.Flags().Bool("no-staged", false, "Filter out staged workflow runs (exclude runs with staged: true in aw_info.json)")
logsCmd.Flags().Bool("no-staged", false, "Filter out staged workflow runs")

Copilot AI Apr 7, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new --no-staged description (“Filter out staged workflow runs”) is quite ambiguous now that the parenthetical definition was removed. Elsewhere in the repo, “staged” is described as safe-output staged/preview mode (e.g., .github/aw/github-agentic-workflows.md notes it as “safe output staged true”).

Consider updating the flag help to briefly define “staged” in user-facing terms (e.g., preview-only / safe outputs staged mode) without referencing internal files.

Suggested change
logsCmd.Flags().Bool("no-staged", false, "Filter out staged workflow runs")
logsCmd.Flags().Bool("no-staged", false, "Filter out staged (preview-only/safe-output) workflow runs")

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[cli-consistency] CLI Consistency Issues - 2026-04-07

3 participants