Add hidden reach-continue-on-* flags for Coana v15#1251
Merged
Martin Torp (mtorp) merged 2 commits intov1.xfrom Apr 22, 2026
Merged
Add hidden reach-continue-on-* flags for Coana v15#1251Martin Torp (mtorp) merged 2 commits intov1.xfrom
Martin Torp (mtorp) merged 2 commits intov1.xfrom
Conversation
Coana v15 introduces four new halt-by-default behaviors in socket mode and corresponding --reach-continue-on-* opt-outs. Expose them as hidden flags on `socket scan create` and `socket scan reach` so the Socket CLI is ready to forward them when Coana v15 becomes the default. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Benjamin Barslev Nielsen (barslev)
approved these changes
Apr 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Preparation for the upcoming Coana CLI v15 major release.
Coana v15 changes the default halt behavior in socket mode for four different failure conditions, and introduces matching
--reach-continue-on-*flags to opt out of each halt. This PR adds those four flags to the Socket CLI (as hidden flags onsocket scan createandsocket scan reach) and wires them through to thecoana runinvocation inperformReachabilityAnalysis. Nothing changes for users today — these flags are no-ops against the current default Coana version — but the Socket CLI is now ready to forward them the moment Coana v15 becomes the default.New flags (all hidden)
--reach-continue-on-analysis-errors--reach-continue-on-analysis-errors--reach-continue-on-install-errors--reach-continue-on-install-errors--reach-continue-on-missing-lock-files--reach-continue-on-missing-lock-files--reach-continue-on-no-source-files--reach-continue-on-no-source-filesWhen any of these are set on the Socket CLI, the corresponding flag is appended to the
coana runargv; when they're unset, nothing is appended and Coana applies its own default.Files touched
src/commands/scan/reachability-flags.mts— declarations (allhidden: true)src/commands/scan/perform-reachability-analysis.mts—ReachabilityOptionstype + argv forwardingsrc/commands/scan/cmd-scan-reach.mts— destructure, type, pass throughsrc/commands/scan/cmd-scan-create.mts— destructure, type, include inisUsingAnyReachabilityFlagsgate, pass throughsrc/commands/ci/handle-ci.mts+src/commands/scan/create-scan-from-github.mts— default values for internal callersTest plan
pnpm check:tscpasses cleanlycmd-scan-create.test.mts+cmd-scan-reach.test.mtspass--helpoutput (verified against the help-snapshot tests)🤖 Generated with Claude Code
Note
Low Risk
Low risk plumbing change that only introduces new hidden CLI flags and threads them into Coana argv; behavior is unchanged unless these flags are explicitly provided (and depends on Coana version).
Overview
Prepares the CLI for Coana v15 by adding four hidden reachability flags (the
--reach-continue-on-*family) tosocket scan createandsocket scan reach.These new booleans are wired through internal scan entrypoints (including CI/GitHub scan flows) into
performReachabilityAnalysis, which conditionally appends the correspondingcoana runarguments when set, and includes them in the--reachgating logic so they can’t be used without reachability enabled.Reviewed by Cursor Bugbot for commit 1b6eca6. Configure here.