mirror of
https://github.com/di-sukharev/opencommit.git
synced 2026-04-20 03:02:51 -04:00
fix(cli): tighten proxy and setup behavior
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.
This commit is contained in:
@@ -249,7 +249,9 @@ ${chalk.grey('——————————————————')}`
|
||||
|
||||
const errorConfig = getConfig();
|
||||
const provider = errorConfig.OCO_AI_PROVIDER || 'openai';
|
||||
const formatted = formatUserFriendlyError(error, provider);
|
||||
const formatted = formatUserFriendlyError(error, provider, {
|
||||
baseURL: errorConfig.OCO_API_URL
|
||||
});
|
||||
outro(printFormattedError(formatted));
|
||||
|
||||
process.exit(1);
|
||||
|
||||
Reference in New Issue
Block a user