Skip to content

fix: refuse --pr in offline mode - #162

Closed
Sakibpedia wants to merge 1 commit into
TMHSDigital:mainfrom
Sakibpedia:fix/offline-pr
Closed

Sakibpedia wants to merge 1 commit into
TMHSDigital:mainfrom
Sakibpedia:fix/offline-pr

Conversation

@Sakibpedia

Copy link
Copy Markdown

Fixes #150 — #150

--offline promises no traffic that leaves the machine, but [fix] pr still pushed a branch and called gh. Config.Validate now refuses the combination with exit code 2 and an explicit message, so the run stops before any fix work or outbound call.

Also added --pr to the offline-mode exceptions in docs/PRIVACY.md and told readers not to combine it with --offline for a no-traffic run.

Test: added a validation case for offline = true with [fix] pr = true; go test -short ./internal/config — ok. AI-assisted: I traced the PR step and existing offline refusals before writing the rule.

@Sakibpedia

Copy link
Copy Markdown
Author

Closing as superseded. Upstream main has since merged the same changes (#150 for the offline --pr refusal, and #152-#156 for the documentation corrections), which is why these PR branches now conflict. No action needed from maintainers.

@Sakibpedia Sakibpedia closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--offline does not stop --pr from pushing a branch and calling gh

1 participant