Skip to content

fix: preserve config values containing =#165

Open
euyua9 wants to merge 1 commit intoBuilderIO:mainfrom
euyua9:fix/config-set-preserve-equals
Open

fix: preserve config values containing =#165
euyua9 wants to merge 1 commit intoBuilderIO:mainfrom
euyua9:fix/config-set-preserve-equals

Conversation

@euyua9
Copy link
Copy Markdown

@euyua9 euyua9 commented Apr 20, 2026

Summary

  • preserve everything after the first = when parsing ai config set KEY=value
  • keep rejecting malformed assignments that do not include a key before =

Repro

ai config set OPENAI_API_ENDPOINT=https://host/v1?api-key=abc==&deployment=x

Before this change, the stored value was truncated to https://host/v1?api-key.

Validation

  • npm run typecheck
  • npm run build
  • HOME=$(mktemp -d) node dist/cli.mjs config set OPENAI_API_ENDPOINT='https://host/v1?api-key=abc==&deployment=x'
  • confirmed ~/.ai-shell now keeps the full endpoint value

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.

1 participant