Improve CLI test coverage and harden proxy configuration behavior#552
Merged
di-sukharev merged 4 commits intomasterfrom Apr 10, 2026
Merged
Improve CLI test coverage and harden proxy configuration behavior#552di-sukharev merged 4 commits intomasterfrom
di-sukharev merged 4 commits intomasterfrom
Conversation
Support explicit proxy disabling and ambient proxy fallback without leaking env state into config. Improve first-run detection, endpoint-specific error messaging, diff exclusions, and runtime helper boundaries covered by unit tests.
Split smoke, core, and prompt-module suites and make test:e2e self-contained with an explicit build step and version-check bypass. Move core CLI coverage to a process-based harness with mock OpenAI boundary checks, add user-path scenarios, refresh CI jobs, and commit the rebuilt out/cli.cjs artifact.
Replace the createRequire fallback with a direct Mistral import so the CJS build stops emitting the import.meta warning. Refresh the bundled out/cli.cjs artifact after the change.
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
smoke,core, andprompt-modulesuites and maketest:e2ebuild the CLI before runningOCO_PROXY=nullsupport, ambient proxy fallback, improved first-run detection, and clearer endpoint-aware errorsTesting
npm run test:unitnpm run test:e2e:smokenpm run test:e2e:corenpm run test:e2e:prompt-modulenpm run test:e2e