Conversation
Use the effective read path for review, scan, and preview, and pass the saved path to provider wizard connection tests. Add regression coverage and document the override.
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 4 selected item(s). |
|
@dvd233 Thanks for the fix, and for the clear write-up. The wizard part is right and I want to keep it: having On the direction, though, I'm going with option (b) from #1484 — dropping It was never a public interface. It is not in the README (any locale), not on the docs site, not in Its only two callers do not need it. Both Widening it has a cost I don't want to pay. Making Would you like to revise the PR along those lines? Concretely:
Either way is fine — if you would rather not, say so and I will take it from here; the wizard fix stays yours. One housekeeping item: the CLA checkbox is still unchecked, and that needs signing before I can merge. |
Description
Closes #1484.
OCR_CONFIG_PATHalready controlsocr llm test, but review, scan, andpreview loaded app settings from the default home config instead. Provider
wizards also saved to their explicit config path and then invoked the
environment-based test command, so a set
OCR_CONFIG_PATHcould test adifferent file from the one just saved.
This change:
resolveConfigPath()for review/scan runtime setup and preview token resolution;ocr config setand provider wizard writes ondefaultConfigPath();OCR_CONFIG_PATHin the English configuration guide.Type of Change
How Has This Been Tested?
CC=gcc CGO_ENABLED=1 go test -v -race -count=1 ./...CC=gcc CGO_ENABLED=1 go vet ./...gofmton all changed Go files andgit diff --checkbash scripts/verify-license.shgo run scripts/verify-english-only.gogo test -count=1 -coverprofile=... ./...— 91.1% total coveragego build ./cmd/opencodereviewmake check— equivalent checks pass; the local BusyBoxmakeinvokes the Bash license script with an incompatible/bin/shChecklist
gofmt,go vet)AI disclosure
Prepared with OpenAI Codex through pi using model
gpt-5.6-luna. The generatedcode and text were reviewed manually, and the commit contains no AI attribution
trailer.
Related Issues
Closes #1484.