Skip to content

fix: address 7 CLI consistency issues from automated inspection#43802

Merged
pelikhan merged 9 commits into
mainfrom
copilot/cli-consistency-fix-broken-url
Jul 7, 2026
Merged

fix: address 7 CLI consistency issues from automated inspection#43802
pelikhan merged 9 commits into
mainfrom
copilot/cli-consistency-fix-broken-url

Conversation

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Automated CLI consistency checker found 8 issues across help text and documentation. Addresses 7 of them (H1 is a false positive — github.github.com is the intentional configured docs host, validated by existing tests).

Changes

M3 — add-wizard missing --append and --no-security-scanner flags

  • Added both flags to add-wizard, matching their counterparts in add
  • Added AppendText and DisableSecurityScanner fields to AddInteractiveConfig
  • add_interactive_git.go now passes these through to AddOptions instead of hardcoding empty/false

M2 — upgrade --pre-releases example wording

  • "prerelease""pre-release" (matches flag name spelling)
  • "self-upgrading the extension""upgrading the extension" (matches flag description wording)

M1 — audit/logs --artifacts default mismatch undocumented

  • logs: "default: usage — compact summary for faster downloads" (also fixes L2 terminology gap)
  • audit + audit-diff: "default: all, because auditing requires comprehensive artifacts for analysis"

M4 — env get/env update file.yml placeholder ambiguity

  • "writes to file.yml""writes to file.yml in the current directory" (literal, not a placeholder)

L1/L3 — Cosmetic

  • init --codespaces "" example column alignment (off by one space vs aligned column)
  • Trailing whitespace after # Create org project in project new examples

Generated by 👨‍🍳 PR Sous Chef · 7.29 AIC · ⌖ 7.3 AIC · ⊞ 7.1K ·
Comment /souschef to run again


Generated by 👨‍🍳 PR Sous Chef · 6.99 AIC · ⌖ 5.55 AIC · ⊞ 7.1K ·
Comment /souschef to run again


Generated by 👨‍🍳 PR Sous Chef · 5.92 AIC · ⌖ 5.55 AIC · ⊞ 4.7K ·
Comment /souschef to run again


Generated by 👨‍🍳 PR Sous Chef · 3.96 AIC · ⌖ 5.65 AIC · ⊞ 7.1K ·
Comment /souschef to run again

…, fix wording

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix broken URL in CLI help text fix: address 7 CLI consistency issues from automated inspection Jul 6, 2026
Copilot AI requested a review from pelikhan July 6, 2026 15:36
@pelikhan pelikhan marked this pull request as ready for review July 6, 2026 15:41
Copilot AI review requested due to automatic review settings July 6, 2026 15:41

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 updates gh aw CLI help text and interactive add-wizard wiring to resolve consistency findings from an automated checker, primarily by aligning flag documentation/defaults and ensuring add-wizard exposes the same relevant flags as add.

Changes:

  • Added --append and --no-security-scanner flags to add-wizard, and threaded them through AddInteractiveConfig into AddOptions.
  • Standardized help text wording/formatting across commands (upgrade, audit, audit-diff, logs, env, init, project).
  • Clarified artifact default behavior in audit/logs help output.
Show a summary per file
File Description
pkg/cli/upgrade_command.go Aligns --pre-releases example wording with flag spelling and description intent.
pkg/cli/project_command.go Removes trailing whitespace in examples.
pkg/cli/logs_command.go Clarifies --artifacts default meaning in help text.
pkg/cli/init_command.go Fixes column alignment in examples.
pkg/cli/env_command.go Clarifies that file.yml default is in the current directory.
pkg/cli/audit.go Clarifies --artifacts default behavior/rationale in help text.
pkg/cli/audit_diff_command.go Same as audit.go for audit-diff help text consistency.
pkg/cli/add_wizard_command.go Adds --append / --no-security-scanner flags and passes values into interactive config.
pkg/cli/add_interactive_orchestrator.go Extends AddInteractiveConfig to carry append/scanner settings through the wizard flow.
pkg/cli/add_interactive_git.go Threads AppendText and DisableSecurityScanner from wizard config into AddOptions.

Review details

Tip

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

  • Files reviewed: 8/10 changed files
  • Comments generated: 1
  • Review effort level: Low

Comment thread pkg/cli/add_interactive_git.go
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Test Quality Sentinel completed test quality analysis.

No test files were added or modified in this PR. Test Quality Sentinel skipped.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

PR Code Quality Reviewer completed the code quality review.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Design Decision Gate 🏗️ completed the design decision gate check.

No ADR enforcement needed: PR #43802 does not have the 'implementation' label and has only 41 new lines of code in business logic directories (threshold: 100).

@github-actions github-actions Bot mentioned this pull request Jul 6, 2026

@github-actions github-actions Bot 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.

Skills-Based Review 🧠

Applied /tdd, /diagnosing-bugs, and /codebase-design — requesting changes on two issues, one of which (the DisableSecurityScanner override) is a functional correctness concern.

📋 Key Themes & Highlights

Key Themes

  • Incomplete fix (functional): add_workflow_pr.go hard-codes prOpts.DisableSecurityScanner = false, silently nullifying the new --no-security-scanner flag in the wizard's PR-creation path. The flag will appear to work in add but do nothing in add-wizard. This is the most important issue.
  • Test coverage gap: The new flags are wired up correctly but have zero test assertions. The previous bug — hardcoded "" / false — is exactly the category of regression that flag-presence tests catch. Two small tests would close this gap.
  • Flag description parity: Descriptions are identical right now (✅), but there's no test to keep them in sync as the codebase evolves.

Positive Highlights

  • ✅ Clean struct extension with well-placed comments in AddInteractiveConfig
  • ✅ All documentation changes are accurate and improve clarity (artifact defaults, file path wording, pre-release spelling)
  • ✅ Cosmetic fixes are surgical and don't risk regressions
  • ✅ Good discipline in excluding the H1 false positive with an explanation

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · 57.6 AIC · ⌖ 5.5 AIC · ⊞ 6.7K
Comment /matt to run again

Comment thread pkg/cli/add_interactive_git.go
Comment thread pkg/cli/add_wizard_command.go

@github-actions github-actions Bot 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.

The changes are clean and correct. All 7 consistency fixes are well-scoped and properly implemented.

M3 (add-wizard --append and --no-security-scanner): The most substantive change — correctly adds both fields to AddInteractiveConfig and wires them through both the wizard command (flag reads → struct init) and add_interactive_git.go (pass-through to AddOptions). Parity with the add command is exact. The wizard intentionally omits the --disable-security-scanner legacy alias, which is appropriate since this is a new flag surface.

M1/M2/M4/L1/L3 (doc/cosmetic): All accurate and self-consistent:

  • Audit --artifacts default clarifications are identical in both audit.go and audit_diff_command.go
  • Logs --artifacts gains a descriptive reason phrase ✓
  • env_command.go "current directory" additions correctly placed in both get/update ✓
  • upgrade pre-releases wording now matches the flag name spelling ✓
  • Alignment and trailing-whitespace fixes ✓

No issues found.

🧵 Reviewed using Impeccable skills by Impeccable Skills Reviewer · 62.5 AIC · ⌖ 5.79 AIC · ⊞ 4.9K

@github-actions github-actions Bot 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.

Must fix before merging

The flag propagation in M3 is incomplete — --no-security-scanner is dead code for add-wizard.

🔍 Blocking issue and non-blocking note

Blocking — --no-security-scanner is silently nullified (add_interactive_git.go:47)

add-wizard always creates a PR (CreatePR: true is hardcoded). AddResolvedWorkflows therefore always calls addWorkflowsWithPR, which unconditionally resets prOpts.DisableSecurityScanner = false before calling addWorkflowsWithTracking. The user flag is accepted, wired through the struct, but thrown away at exactly the point it would have mattered. This is not a theoretical risk — anyone using --no-security-scanner with add-wizard gets no indication the flag was ignored.

Fix: either propagate opts.DisableSecurityScanner in addWorkflowsWithPR, or reject the flag early with an explicit error (add-wizard always scans when creating a PR).

Non-blocking — new flags absent from Example block (add_wizard_command.go:130)

--append and --no-security-scanner are not illustrated in the Example field. --help output and doc generators miss them; add has examples for both. Straightforward fix.


The doc-copy, wording, and whitespace changes in the other files (M1, M2, M4, L1, L3) are fine.

🔎 Code quality review by PR Code Quality Reviewer · 105.5 AIC · ⌖ 5.7 AIC · ⊞ 5.5K
Comment /review to run again

Comment thread pkg/cli/add_interactive_git.go
Comment thread pkg/cli/add_wizard_command.go
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Triage

Field Value
Category bug
Risk 🟡 medium
Score 60 / 100 (impact 25 · urgency 20 · quality 15)
Action fast_track

Summary: 7 CLI consistency fixes (missing flags on add-wizard, help text, stale references). 10 files, CI 29/30 passing, well described.

Promote to human review — high confidence, targeted fixes, low blast radius.

Generated by 🔧 PR Triage Agent · 136.6 AIC · ⌖ 9.03 AIC · ⊞ 5.5K ·

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot please run the pr-finisher skill, address these unresolved review threads first:

Generated by 👨‍🍳 PR Sous Chef · 7.3 AIC · ⌖ 5.83 AIC · ⊞ 7.1K ·
Comment /souschef to run again

Copilot AI commented Jul 6, 2026

Copy link
Copy Markdown
Contributor Author

@copilot please run the pr-finisher skill, address unresolved review comments, and rerun checks once the branch is up to date.

Unresolved review feedback:...

No additional code changes were needed. I replied directly on the unresolved github-actions review threads, the branch is already up to date on a00817e (base 9babb63), and local make fmt, make lint, make test-unit, make test, and make recompile all passed on this HEAD. The last PR workflow runs for a00817e are still action_required with no failed jobs exposed, so a maintainer still needs to re-trigger CI on the current HEAD before merge.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot please run the pr-finisher skill, verify the branch is up to date, rerun any needed checks, and finish the PR for maintainer review.

Generated by 👨‍🍳 PR Sous Chef · 9.53 AIC · ⌖ 5.42 AIC · ⊞ 4.7K ·
Comment /souschef to run again

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🤖 PR Triage — Run §28834001067

Field Value
Category bug
Risk 🟡 Medium
Priority Score 60 / 100
Recommended Action fast_track

Score Breakdown:

  • Impact: 30 / 50 — 7 CLI consistency fixes, 12 files, user-facing
  • Urgency: 15 / 30 — carry-over from prior run, no security angle
  • Quality: 15 / 20 — bot APPROVED (dismissed), latest swe-agent comments

CI: CHANGES_REQUESTED → APPROVED (dismissed) by github-actions[bot]. Agent engaged again (23:49Z).

Rationale: 7 user-visible CLI fixes. Non-breaking. Fast-track for human review.

Labels: already applied from prior run.

Generated by 🔧 PR Triage Agent · 96.3 AIC · ⌖ 8.74 AIC · ⊞ 5.5K ·

Copilot AI commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@copilot please run the pr-finisher skill, verify the branch is up to date, rerun any needed checks, and finish the PR for maintainer review.

...

I verified the remaining review threads are resolved and reran local validation on a00817e: make fmt, make lint, make test-unit, make test, and make recompile all passed. Last-known PR CI on this HEAD has one failed CWI Windows Integration run (context deadline exceeded in TestMCPServer_WindowsSmokeCommands), while the same workflow was green on 5f8f51a, and main now contains newer commits likely relevant to that failure. The branch is not up to date with current main, but I could not complete the required update because git fetch --unshallow origin hung on three attempts in this sandbox, so I stopped before merge/rebase as required. This is ready for maintainer follow-up: update the branch from current main and re-trigger CI on the refreshed HEAD.

@pelikhan

pelikhan commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

Copilot AI and others added 2 commits July 7, 2026 02:34
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>

Copilot AI commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@copilot review failure https://github.com/github/gh-aw/actions/runs/28830202566/job/85505975279#step:9:1

Fixed in 0e63660. The Windows CWI failure was caused by the MCP integration test reusing a single 30s context for both client.Connect and all subsequent tool calls, so a slower Windows runner could exhaust the deadline before the later calls ran. The test now uses a dedicated connect timeout and a separate session timeout, and local targeted MCP integration tests plus make agent-report-progress passed.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot please run the pr-finisher skill, address unresolved review comments, and rerun checks once the branch is up to date.

Generated by 👨‍🍳 PR Sous Chef · 5.92 AIC · ⌖ 5.55 AIC · ⊞ 4.7K ·
Comment /souschef to run again

Copilot AI commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@copilot please run the pr-finisher skill, address unresolved review comments, and rerun checks once the branch is up to date.

...

No additional code changes were needed. On current HEAD 8367868, all in-scope review threads are already resolved, the branch is up to date with main (23829db is the second parent of the merge commit), and local make fmt, make lint, make test-unit, make test, make recompile, and make agent-report-progress all passed. The earlier CWI failure on a00817e was fixed by 0e63660; CI on the current agent-pushed HEAD is still unverified/action-required and needs a maintainer re-trigger before merge.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator

@copilot please run the pr-finisher skill, address unresolved review comments, refresh the branch if needed, and rerun checks once ready.
Unresolved review feedback to address:

  • github-actions: unresolved review feedback remains

Generated by 👨‍🍳 PR Sous Chef · 3.96 AIC · ⌖ 5.65 AIC · ⊞ 7.1K ·
Comment /souschef to run again

Copilot AI commented Jul 7, 2026

Copy link
Copy Markdown
Contributor Author

@copilot please run the pr-finisher skill, address unresolved review comments, refresh the branch if needed, and rerun checks once ready.
Unresolved review feedback to address:

  • github-actions: unr...

No further code changes were needed on 8367868. I verified all in-scope github-actions review threads are already replied to and resolved, and the branch is up to date with main (23829db is the merge parent of the current HEAD). Local make fmt, make lint, make test-unit, make test, make recompile, and make agent-report-progress all passed on this HEAD. The earlier Windows CWI failure from run 28830202566 was already fixed in 0e63660/8d623be; the current PR workflows on 8367868 are still stale action_required runs with no failed jobs exposed, so a maintainer needs to re-trigger CI on the current HEAD before merge.

@pelikhan pelikhan merged commit ee218e9 into main Jul 7, 2026
31 checks passed
@pelikhan pelikhan deleted the copilot/cli-consistency-fix-broken-url branch July 7, 2026 06:36
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.82.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

4 participants