Skip to content

Clarify integer-minute timeout flags in CLI help - #79596

Merged
pelikhan merged 4 commits into
mainfrom
copilot/cli-consistency-fix
Nov 21, 2026
Merged

pelikhan merged 4 commits into
mainfrom
copilot/cli-consistency-fix

Conversation

@gh-aw-bot

@gh-aw-bot gh-aw-bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

The --timeout flag accepts integer minutes on logs, forecast, and trial, but Go durations on other commands. Help text now makes the integer-minute format explicit.

  • Help text: Identify integer minutes and give a plain-number example for all three commands.
  • Example:
    gh aw logs --timeout 10
    gh aw logs episode --timeout 5m

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
@gh-aw-bot gh-aw-bot changed the title [WIP] Fix CLI consistency issues for timeout units Clarify integer-minute timeout flags in CLI help Nov 20, 2026
@pelikhan
pelikhan marked this pull request as ready for review November 20, 2026 22:36
Copilot AI adaptive review requested due to automatic review settings November 20, 2026 22:36
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by Ponytail Reviewer for #79596 · codex · routed: gpt61 medium · ~4 AIC · ⌖ ~1 AIC · ⊞ 185 · ◷

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

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

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 6.6K · ◷

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Specification Reviewer completed successfully!

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

Potential security threats were detected in the agent output. Detected threat types: prompt injection.

Review the workflow run logs for details.

PR Specification Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated by PR Specification Reviewer for #79596 · copilot · gpt56 · ~2 AIC · ⌖ ~2 AIC · ⊞ 1.7K · ◷

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

PR Code Quality Reviewer

Outcome: reported_action

The agent completed and reported one or more actions. The no-op output is a completion signal, not a claim that no action was taken.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt56 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K · ◷

@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

🧪 Test quality analysis by Test Quality Sentinel · copilot · routed: haiku55 xhigh · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.2K · ◷

@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.

Reviewed the changed help text and timeout-flag tests. No actionable correctness, performance, security, or maintainability issues found in the diff.

🔎 Code quality review by PR Code Quality Reviewer · copilot · gpt50 · ~2 AIC · ⌖ ~1 AIC · ⊞ 1.6K
Comment /review to run again

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (spec-review-history)
{"id":"ldg-eedb8b77-abc9-44c6-b0db-7d22b6a9bbf4","parents":[],"payload":{"id":"ldg-1c3ffff2-72e1-45c8-9ae2-b1a5cd675d90","operation":"append","value":{"finding_count":0,"head_sha":"3d6c08b690419d81ea54dfbd7e83d595a8ae1529","outcome":"aligned"}},"sha":"sha256:d258cb644e27fdf63e66883f4fb3e49cd0b124ad87d0985a2f77b28d6bf69abb","timestamp":"2026-11-20T22:42:40.319Z","type":"ledger_append","version":1}
History

@github-actions

Copy link
Copy Markdown
Contributor

Comment Memory

Peek at saved memory (review-history)
{"id":"ldg-5afad02f-bb55-4b6a-900d-a7c1839ce7e1","parents":[],"payload":{"id":"ldg-28da3ad5-0ca6-44f8-b6f8-51020c6fdd37","operation":"append","value":{"finding_count":0,"head_sha":"3d6c08b690419d81ea54dfbd7e83d595a8ae1529","outcome":"no_findings"}},"sha":"sha256:5d7a01d45d684e7ef346f690db4440ec275fdb53bc432b0b64eea7be392daa97","timestamp":"2026-11-20T22:43:29.353Z","type":"ledger_append","version":1}
History

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.

🟢 Approval recommended

The review identified no actionable issues in the timeout wording changes or their associated coverage.

No open issues 🎉

What changed in this PR

Clarifies that the --timeout flags for logs, forecast, and trial accept integer minutes, reducing ambiguity with commands that accept Go duration values.

Changes:

  • Updated timeout help text with explicit integer-minute wording and plain-number examples.
  • Added regression coverage for timeout help text and integer flag types across all three commands.
  • No actionable issues found.
File Description
pkg/​cli/​trial_command.go Clarifies that the trial timeout is specified in integer minutes.
pkg/​cli/​logs_command.go Clarifies that the logs timeout is specified in integer minutes.
pkg/​cli/​forecast_test.go Verifies timeout help text and integer flag types across the affected commands.
pkg/​cli/​forecast_command.go Clarifies that the forecast timeout is specified in integer minutes.

Review effort: Lite (adaptive)

@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 (test structure) and /grill-with-docs (help-text consistency). No blocking issues.

📋 Key Themes & Highlights

Key Themes

  • Help text consistency: logs, forecast, and trial now all say "integer minutes" and give a plain-number example. This matches the parsing (GetInt/Int) and the table in docs/src/content/docs/setup/cli.md.
  • Test coverage: the parameterized test checks the usage string and the flag type for all three commands.

Positive Highlights

  • ✅ Help text changes only; no behaviour change.
  • ✅ The stale TestNewForecastCommand_TimeoutFlag was replaced rather than left alongside the new test.
  • ✅ go test for the new test and gofmt/go vet on pkg/cli pass.

Suggestions

  • The test-table default check is special-cased for forecast (inline comment on forecast_test.go). Moving the default into the table would cover logs and trial.
  • logs episode --timeout is a Go duration (flags.DurationVar in logs_episode_retrieval_command.go) but its help does not say so. That is outside this diff, so consider a follow-up.

@copilot please address the review comments above.

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer · copilot · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 6.6K
Comment /matt to run again

Comment thread pkg/cli/forecast_test.go Outdated
require.NotNil(t, timeoutFlag, "%s command should register --timeout", tt.name)
assert.Equal(t, tt.want, timeoutFlag.Usage)
assert.Equal(t, "int", timeoutFlag.Value.Type())
if tt.name == "forecast" {

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.

[/tdd] Branching on tt.name == "forecast" makes the default-value check a special case, so logs (default 0) and trial (default 30) never assert their defaults. Add a wantDefault field to the table and assert it for every row.

💡 Suggested change
tests := []struct {
    name        string
    cmd         *cobra.Command
    want        string
    wantDefault string
}{
    {name: "logs", cmd: NewLogsCommand(), want: "...", wantDefault: "0"},
    {name: "forecast", cmd: NewForecastCommand(), want: "...", wantDefault: "0"},
    {name: "trial", cmd: NewTrialCommand(func(string) error { return nil }), want: "...", wantDefault: "30"},
}
// in the loop
assert.Equal(t, tt.wantDefault, timeoutFlag.DefValue)

Each row then pins its own default, and the loop has no special cases.

@copilot please address this.

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.

Added a per-row wantDefault assertion for logs (0), forecast (0), and trial (30) in edad1da.

@gh-aw-bot

Copy link
Copy Markdown
Collaborator Author

@copilot

🍳 A little prep to help this PR along! Copilot assignment requested for the following outstanding work:

  1. Update this branch with the latest main using make merge-main, resolving any conflicts and preserving the intended changes.
  2. Review (pkg/cli/forecast_test.go:117): address unresolved feedback - Review comment
  3. Fix failing check Unit tests (K-M) (FAILURE): Check run.

Keeping the changes focused; human review and CI get the final taste test. No merging or CI triggering.

Structured data
{
  "completed_task": 0,
  "head": "3d6c08b690419d81ea54dfbd7e83d595a8ae1529",
  "kind": "requested",
  "schema_version": "1",
  "state": "fe19c5b55e1ef571d34388f7aa6566e4960ca16992e7de2eaa3febc6f32c5bf8",
  "work": [
    "0384d253d3410c71a864e41868d2b53514a0546251850d41a7465f9d24f0c2f9",
    "91d8bfe9af1be232f05ad7572c2b99daf6239210422bb414c3a585cb50c2bf16"
  ],
  "workflow": "pr-sous-chef"
}

Generated by 👨🍳 PR Sous Chef · pi · routed: haiku55 xhigh · ~3 AIC · ⌖ ~2 AIC · ⊞ 7K · ◷
Comment /souschef to run again

@pelikhan
pelikhan merged commit eac8e93 into main Nov 21, 2026
86 checks passed
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-11-20

4 participants