DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

fix(cli): register -c as BoolP shorthand for --continue

Open skyzhao1223 opened this issue 4 months ago • 1 comments

Summary

  • Help documents [-c|--continue], but BoolVar(cont, \"c\") registered c as a long flag name, not a shorthand.
  • Bare reasonix -c / reasonix run -c therefore failed with exit 2 and no output; --continue worked.
  • Switch both interactive and run flag sets to BoolP(\"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

skyzhao1223 avatar Aug 03 '26 10:08 skyzhao1223

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.

SivanCola avatar Aug 03 '26 16:08 SivanCola

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.

SivanCola avatar Aug 06 '26 11:08 SivanCola