Skip to content

Quality: Hardcoded empty GrowthBook key returns#277

Open
tuanaiseo wants to merge 1 commit intoNanmiCoder:mainfrom
tuanaiseo:contribai/improve/quality/hardcoded-empty-growthbook-key-returns
Open

Quality: Hardcoded empty GrowthBook key returns#277
tuanaiseo wants to merge 1 commit intoNanmiCoder:mainfrom
tuanaiseo:contribai/improve/quality/hardcoded-empty-growthbook-key-returns

Conversation

@tuanaiseo
Copy link
Copy Markdown

Problem

The getGrowthBookClientKey function returns empty strings for both dev and production keys, making the function useless. The conditional logic always results in returning an empty string.

Severity: high
File: src/constants/keys.ts

Solution

Either implement proper key retrieval or remove this function. Currently it always returns empty strings regardless of conditions.

Changes

  • src/constants/keys.ts (modified)

Testing

  • Existing tests pass
  • Manual review completed
  • No new warnings/errors introduced

The getGrowthBookClientKey function returns empty strings for both dev and production keys, making the function useless. The conditional logic always results in returning an empty string.

Affected files: keys.ts

Signed-off-by: tuanaiseo <221258316+tuanaiseo@users.noreply.github.com>
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 4, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 4, 2026

PR quality triage

Changed areas: none

CLI core policy: No CLI-core policy block detected.

CLI core files:

  • none

Expected checks:

  • change-policy

Test coverage signals:

  • No obvious missing-test signal from changed paths.

Risk notes:

  • No special risk notes from changed paths.

Hard merge gates still come from GitHub Actions, not AI review.

Dosu handoff: Dosu can be used as the AI reviewer for risk explanation, missing-test prompts, and maintainer Q&A. If it does not comment automatically from the PR template, ask:

@dosubot review this PR for changed-area risk, missing tests, docs impact, desktop startup risk, and CLI core impact.

@dosubot dosubot Bot added the bug Something isn't working label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant