google-gemini / google-gemini/gemini-cli

refactor(cli): clean up profile selector logic and remove legacy config

Open Beginner friendly
#28,259 4 comments 0 reactions 0 assignees View on GitHub
area/agent effort/medium kind/bug priority/p2 status/bot-triaged
Dominant language
TypeScript
Stars
107k
Forks
14.6k
Avg merge
2d 3h
Merged PRs (30d)
45

Description

### What happened?
There is lingering technical debt in the CLI configuration regarding the legacy profileSelector logic:

See [config.ts](https://github.com/google-gemini/gemini-cli/blob/main/packages/cli/src/config/config.ts#L941-L950)

` ypescript
// TODO(joshualitt): Clean this up alongside removal of the legacy config.
let profileSelector: string | undefined = undefined;
`

### What did you expect to happen?
This legacy config mapping should be completely removed and cleaned up to streamline how Config initializes and reduces unnecessary branching logic.

### Client information
N/A - Tech Debt Cleanup

Contributor guide

Open the contributing guide

Research direction

Start in packages/cli/src/config/config.ts around lines 941-950, then search for the remaining profileSelector and legacy-config references. Done means the legacy profile config mapping and its unnecessary initialization branching are removed from Config, leaving the CLI configuration logic clean.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.