tui3 credit tests read the real OPENROUTER_API_KEY and fail when it is set
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 82/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- go
- Domain
- testing-qa
Research direction
Start in internal/tui3 with TestAFreeCatalogPriceClearsTheWarningWhenTheListArrives and its sibling credit tests. Run the named test with and without OPENROUTER_API_KEY set to reproduce the difference, then inspect how the tests obtain their key or balance source. Done means the affected tests use a controlled source and pass regardless of the process environment.
Written by the indexing model from the issue text.
Description
Since the OpenRouter balance work (#1440), TestAFreeCatalogPriceClearsTheWarningWhenTheListArrives and about nine sibling credit tests in internal/tui3 fail whenever a real OPENROUTER_API_KEY is in the environment, and pass without it.
Repro on santos/dev2 plus #1485's branch:
env -u OPENROUTER_API_KEY go test -count=1 -run TestAFreeCatalogPriceClearsTheWarningWhenTheListArrives ./internal/tui3→ ok- the same test with a real key exported → FAIL
A test run from a shell or agent that has the key set (common on dev machines and in live-check rigs) goes red for reasons unrelated to the change under test. The tests should pin their own key/balance source instead of reading the process environment.
- Dominant language
- Go
- Stars
- 115
- Forks
- 14
- Avg merge
- 9h 38m
- Merged PRs (30d)
- 730
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Agent-Field/CodeAF
-
area:chat bug good first issue sev:papercut
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Agent-Field/CodeAF#1470 ·
Maintainers usually reply within 1 day
-
area:chat bug good first issue sev:papercut
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Agent-Field/CodeAF#1469 ·
Maintainers usually reply within 1 day
-
area:chat bug sev:papercut
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Agent-Field/CodeAF#1468 ·
Maintainers usually reply within 1 day
-
area:tests bug hygiene sev:papercut
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Agent-Field/CodeAF#1460 ·
Maintainers usually reply within 1 day
-
area:chat bug good first issue sev:papercut
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Agent-Field/CodeAF#1454 ·
Maintainers usually reply within 1 day
All issues in Agent-Field/CodeAF
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
GoogleCloudPlatform/k8s-config-connector#13462 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
coder/coder#29955 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
microsoft/TypeScript#64453 ·
Maintainers usually reply within 1 day
-
OpenAI-compatible endpoint: response ids have only 999 possible values (chatcmpl-rand.Intn(999))Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day