Skip to content

Sync project name from platform when linking#8

Merged
jeffdi merged 1 commit intomainfrom
fix/sync-project-name
Mar 10, 2026
Merged

Sync project name from platform when linking#8
jeffdi merged 1 commit intomainfrom
fix/sync-project-name

Conversation

@jeffdi
Copy link
Contributor

@jeffdi jeffdi commented Mar 10, 2026

Summary

  • cf link now updates project.name in .cf/project.json to match the platform project name, not just the platform_project_id
  • Prevents project name mismatch where cf push uploads under the wrong directory name (e.g. local folder name tinytapeout_submission instead of platform name ttsky26a)
  • Shows a visible warning when the name changes during link

Test plan

  • Run cf init in a directory with a different name than the platform project
  • Run cf link and select/specify the platform project
  • Verify .cf/project.json project.name is updated to match the platform project name
  • Verify cf push uploads to the correct SFTP directory using the synced name

Made with Cursor

cf link only saved platform_project_id but left project.name unchanged,
causing cf push to upload under the wrong directory name (e.g. the local
folder name instead of the platform project name). Now _save_platform_id
also updates project.name in .cf/project.json to match the platform,
with a visible warning when the name changes.

Made-with: Cursor
@jeffdi jeffdi merged commit 82279c2 into main Mar 10, 2026
0 of 12 checks passed
@jeffdi jeffdi deleted the fix/sync-project-name branch March 10, 2026 16:39
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