Skip to content

fix(pods): preserve equals signs in --env values - #788

Open
crazywriter1 wants to merge 1 commit into
PrimeIntellect-ai:mainfrom
crazywriter1:fix/pods-create-env-equals-parse
Open

fix(pods): preserve equals signs in --env values#788
crazywriter1 wants to merge 1 commit into
PrimeIntellect-ai:mainfrom
crazywriter1:fix/pods-create-env-equals-parse

Conversation

@crazywriter1

@crazywriter1 crazywriter1 commented Jul 14, 2026

Copy link
Copy Markdown

Summary

  • Parse prime pods create --env KEY=VALUE with split("=", 1), matching sandbox CLI behavior
  • Reject malformed env entries that lack =
  • Add regression tests for values containing = (e.g. connection strings)

Test plan

  • uv run pytest packages/prime/tests/test_pods_create.py -q

Note

Low Risk
Small CLI input-validation change with tests; no auth or API contract changes beyond correct env var payloads.

Overview
Fixes prime pods create --env parsing so variable values keep any = characters (e.g. Postgres URLs with query params, FLAGS=a=b=c), aligning with the sandbox CLI.

Parsing now splits only on the first =, rejects entries without =, and exits early with a KEY=VALUE error before availability is loaded. Regression tests cover multi-= values and invalid --env input.

Reviewed by Cursor Bugbot for commit 8f8bec8. Bugbot is set up for automated code reviews on this repo. Configure here.

Match sandbox parsing with split("=", 1) so URL/query values are not truncated.
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