You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(init): require explicit choice when stored and detected values conflict
When .cf/project.json and the workspace (e.g. git remote) disagree, the
prompt now shows both and Enter accepts the detected value (ground truth).
Type `k`/`keep` to keep the stored value instead. Previously Enter would
silently keep the stale stored value, which let wrong github_repo_url
values persist through repeated `cf init` runs.
Made-with: Cursor
- **Idempotent refresh**: Running `cf init` again on an already-linked project pulls in the current platform values, pre-fills prompts, and only PUTs the differences you confirm. The `platform_project_id` link is preserved.
251
251
- **Smart defaults**: Auto-detects project name from directory, project type from GDS files, and GitHub repo URL from your `origin` remote (HTTPS or SSH).
252
-
- **Interactive prompts**: Blank input keeps the current/detected value;type`clear` to explicitly remove a field.
252
+
- **Interactive prompts**:
253
+
- When a stored value and a detected value match (or only one exists), press Enter to accept it.
254
+
- When they **differ** (e.g. a stale `github_repo_url`in`.cf/project.json` vs. your current `git remote`), the prompt shows both and Enter accepts the detected value (ground truth). Type `k` or `keep` to keep the current value instead, type a new value to override, or type`clear` to remove the field entirely.
253
255
- **Shuttle selection**: On first init, prompts to selectan available shuttle (sorted by nearest deadline).
254
256
- **Platform registration**: Creates the project on the platform and links it automatically.
255
257
- Setting the GitHub repo URL enables `cf precheck --remote` and `cf push --remote`.
0 commit comments