fix(cli): register -c as BoolP shorthand for --continue
Summary
- Help documents
[-c|--continue], butBoolVar(cont, \"c\")registeredcas a long flag name, not a shorthand. - Bare
reasonix -c/reasonix run -ctherefore failed with exit 2 and no output;--continueworked. - Switch both interactive and
runflag sets toBoolP(\"continue\", \"c\", …), matching-r/--resume.
Issues
Fixes #7156
Verification
go test ./internal/cli/ -run 'TestContinueShorthandParses|TestRunRoutesBareInteractiveFlagsToSession'
Cache impact
Cache-impact: none — CLI flag registration only. Cache-guard: N/A System-prompt-review: N/A
Thanks for the careful fix and regression coverage. The runtime fix for #7156 was merged through #7223 shortly after this PR opened, so this branch is now conflicting and should not be merged independently.
The bare reasonix -c case you added was still valuable because it was not explicitly covered in the top-level routing regression matrix on main-v2. I adapted that test contribution into #7348. Commit 61f6e2cad0bda4c2c3b458fef1942d9f93c4854c records @skyzhao1223 as a GitHub co-author through the contributor's public noreply identity, and the follow-up PR links back to this work.
I have left this PR open for now; once #7348 reaches a terminal state, it can be closed as superseded. Thank you for the contribution.
Closing as already satisfied on main-v2.
Disposition: superseded by existing code
Evidence: internal/cli/cli.go registers BoolP("continue", "c", …) for the interactive resume path (present on current main).
No remaining behavioral gap for -c / --continue under the CLI feedback plan. Thank you @skyzhao1223.