Title: feat(incident): add --title alias for incident list (fix doc-vs-code drift) by ysyneu · Pull Request #40 · flashcatcloud/flashduty-cli · GitHub
Open Graph Title: feat(incident): add --title alias for incident list (fix doc-vs-code drift) by ysyneu · Pull Request #40 · flashcatcloud/flashduty-cli
X Title: feat(incident): add --title alias for incident list (fix doc-vs-code drift) by ysyneu · Pull Request #40 · flashcatcloud/flashduty-cli
Description: What Adds a --title flag to fduty incident list. It is a convenience alias for the existing --query flag — both write to the same query (full-text search) field of ListIncidentsRequest. --query stays authoritative when both are passed, so this is fully non-breaking. The skill reference doc is reconciled to list both flags and explain the alias relationship. Root cause The skill reference skills/flashduty-incident/references/flashduty-incident-list.md documented (line 18) and exemplified (line 35: --title "database") a --title flag that did not exist on the incident list command — only --query did (internal/cli/incident.go). An agent that follows the skill types fduty incident list --title "...", cobra rejects it with unknown flag: --title, and the agent falls back to dumping the full incident list and grepping client-side. Note the audit proposal's original premise ("no server-side filter, so it dumps-then-greps") was inaccurate: a server-side title/content filter already exists via --query. The real, contained bug is the doc-vs-code drift on the flag name — fixed here by making the documented --title real rather than removing it from the docs (so existing skill text and any muscle-memory keep working). Evidence Audit run: audit-2026-06-11 Sessions: sess_JUm6ZDTmUmdUGE2bH4nFLz — incident list --since 24h returned 61778 chars / 1918 lines for a one-incident-by-title lookup (the dump-then-grep fallback after the missing flag). sess_a77jGy9XzY2GQLDnUcd3xf — the --tool-spec probing half of the proposal is already shipped on main (cli#34, commit 8cad69d: --tool-spec dropped, --data/stdin only, heredoc example in monit_agent.go Long help). That transcript is from a runner on an old CLI; no code change here addresses it. Verification $ env -u GOROOT go build ./... === BUILD OK === $ env -u GOROOT go test ./internal/cli/ -run 'TestIncidentList' -v --- PASS: TestIncidentListNumsReachesWire (0.00s) --- PASS: TestIncidentListTitleReachesWireAsQuery (0.00s) # --title -> query body field --- PASS: TestIncidentListQueryWinsOverTitle (0.00s) # --query wins when both set PASS ok github.com/flashcatcloud/flashduty-cli/internal/cli 0.830s $ env -u GOROOT go test ./... ok github.com/flashcatcloud/flashduty-cli/cmd/flashduty ok github.com/flashcatcloud/flashduty-cli/internal/cli ok github.com/flashcatcloud/flashduty-cli/internal/config ok github.com/flashcatcloud/flashduty-cli/internal/output ok github.com/flashcatcloud/flashduty-cli/internal/timeutil ok github.com/flashcatcloud/flashduty-cli/internal/update $ env -u GOROOT go run ./cmd/flashduty incident list --help | grep -E -- '--title|--query' --query string Free-text search across title/labels/content (...) --title string Search by title/content keyword (alias of --query; --query wins if both set) $ env -u GOROOT gofmt -l internal/cli/incident.go internal/cli/incident_short_id_test.go (no output — no formatting diffs)
Open Graph Description: What Adds a --title flag to fduty incident list. It is a convenience alias for the existing --query flag — both write to the same query (full-text search) field of ListIncidentsRequest. --query sta...
X Description: What Adds a --title flag to fduty incident list. It is a convenience alias for the existing --query flag — both write to the same query (full-text search) field of ListIncidentsRequest. --query sta...
Opengraph URL: https://github.com/flashcatcloud/flashduty-cli/pull/40
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:e80b508f-4583-00e4-a354-acfa2eab334c |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AD96:1E92:15470BA:1E45145:6A4F5922 |
| html-safe-nonce | 5cf4ba44375e78138eb93d6866db788532f846e1a1426ef5000eb5faa970a95d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRDk2OjFFOTI6MTU0NzBCQToxRTQ1MTQ1OjZBNEY1OTIyIiwidmlzaXRvcl9pZCI6IjIxODk3MzYxODA4MzE5Njc1MjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 55e2b3ec8bad2a52428ed0a568423604bc7d8515a706d2ce9cb7962835979789 |
| hovercard-subject-tag | pull_request:3844844528 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/flashcatcloud/flashduty-cli/pull/40/files |
| twitter:image | https://avatars.githubusercontent.com/u/9045284?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/9045284?s=400&v=4 |
| og:image:alt | What Adds a --title flag to fduty incident list. It is a convenience alias for the existing --query flag — both write to the same query (full-text search) field of ListIncidentsRequest. --query sta... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/flashcatcloud/flashduty-cli git https://github.com/flashcatcloud/flashduty-cli.git |
| octolytics-dimension-user_id | 90465697 |
| octolytics-dimension-user_login | flashcatcloud |
| octolytics-dimension-repository_id | 1209147161 |
| octolytics-dimension-repository_nwo | flashcatcloud/flashduty-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1209147161 |
| octolytics-dimension-repository_network_root_nwo | flashcatcloud/flashduty-cli |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width