Skip to content

feat: create dedicated kernel folder on popcorn setup#46

Merged
msaroufim merged 3 commits intogpu-mode:mainfrom
yf225:setup-create-kernel-folder
Mar 14, 2026
Merged

feat: create dedicated kernel folder on popcorn setup#46
msaroufim merged 3 commits intogpu-mode:mainfrom
yf225:setup-create-kernel-folder

Conversation

@yf225
Copy link
Contributor

@yf225 yf225 commented Mar 14, 2026

Summary

  • popcorn setup now creates a subfolder named after the problem directory (e.g. softmax/) instead of writing files directly into the current directory, preventing accidental overwrites.
  • If a folder with that name already exists, a -N suffix is appended (softmax-1/, softmax-2/, etc.) to avoid collisions.

Test plan

  • Run popcorn setup, select a problem, verify files are created inside a new subfolder
  • Run popcorn setup again with the same problem, verify a -1 suffixed folder is created
  • Run a third time, verify -2 suffix
  • Verify symlinks inside the project folder (.codex/skills/, .claude/skills/) resolve correctly

yf225 added 2 commits March 13, 2026 19:14
Instead of writing files directly into the current directory (which
overwrites existing files), `popcorn setup` now creates a subfolder
named after the problem directory (e.g. `softmax/`). If a folder with
that name already exists, a `-N` suffix is appended (`softmax-1/`,
`softmax-2/`, etc.) to avoid collisions.
@codecov
Copy link

codecov bot commented Mar 14, 2026

Codecov Report

❌ Patch coverage is 0% with 21 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/cmd/setup.rs 0.00% 21 Missing ⚠️

📢 Thoughts on this report? Let us know!

@yf225 yf225 changed the title feat: create dedicated kernel folder on popcorn setup feat: create dedicated kernel folder on popcorn setup Mar 14, 2026
@msaroufim msaroufim merged commit d87db4d into gpu-mode:main Mar 14, 2026
7 of 8 checks passed
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.

2 participants