Skip to content

fix(config): remove OCR_CONFIG_PATH - #1537

Merged
lizhengfeng101 merged 1 commit into
alibaba:mainfrom
hyy321:fix/remove-ocr-config-path
Sep 23, 2026
Merged

lizhengfeng101 merged 1 commit into
alibaba:mainfrom
hyy321:fix/remove-ocr-config-path

Conversation

@hyy321

@hyy321 hyy321 commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Description

This follows the maintainer's decision to remove OCR_CONFIG_PATH instead of extending it to review and scan.

The change removes resolveConfigPath() and makes ocr llm test use defaultConfigPath() again. The provider wizards now test the exact config file they just wrote through the runLLMTestPath seam.

The VS Code and IntelliJ extensions no longer pass a separate configPath when testing a draft configuration. They continue to use an isolated HOME / USERPROFILE, which is enough for defaultConfigPath() to resolve the temporary config.

This follows the option (b) direction requested by the maintainer in the discussion on #1509.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update
  • CI / Build / Tooling

How Has This Been Tested?

  • go test -count=1 ./cmd/opencodereview
  • make check
  • make test
  • make coverage — 90.8% total coverage
  • VS Code: corepack yarn test — 88/88 tests passed
  • VS Code: corepack yarn lint
  • VS Code: corepack yarn compile
  • IntelliJ: .\gradlew.bat test -PskipFrontend=true
  • IntelliJ: .\gradlew.bat verifyPluginStructure -PskipFrontend=true
  • git diff --check

Checklist

  • My code follows the project's coding style
  • I have performed a self-review of my code
  • I have added tests for the fix
  • New and existing tests pass locally
  • I used AI/LLM assistance and disclose it below

AI disclosure

Used Codex (GPT-6) for implementation assistance. I reviewed all changes and ran the tests locally.

Related Issues

@github-actions

Copy link
Copy Markdown
Contributor

✅ OpenCodeReview: Review complete: 0 finding(s) across 7 selected item(s).

@lizhengfeng101 lizhengfeng101 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lizhengfeng101
lizhengfeng101 merged commit 6fdfb91 into alibaba:main Sep 23, 2026
15 checks passed
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.

ocr llm test and the provider wizards check a different config file than review/scan use

2 participants