#Copilot Route File Generation

8 messages · Page 1 of 1 (latest)

runic badge
#

Hello, I just had a quick question re: AI editors creating route files. I tried searching around for existing questions like this but didn't seem to find anything. I'm specifically using Copilot (with GPT-5-Codex-Mini (Preview)), with instruction files tanstack-start-shadcn-tailwind.instructions.md (from awesome-copilot) and tanstack-start-cookbook.instructions.md (from tanstack-start-cookbook, shout out jherr). When Copilot creates a new route file, its contents seem to always conflict with the auto-generated boilerplate code that is filled in on file creation. This just leads to confusion for Copilot and extra steps while it has to review the mixed up code and try to clean it up. I'm just wondering if anyone else has experienced this and knows of a possible fix/workaround. Thanks!

lethal hemlock
#

who creates the file?

#

copilot?

#

does it create an empty file first and then wants to insert the code?

#

if it were to save the file directly without the empty file step, this should just work

runic badge
#

What I didn't specify originally is that this is while the dev server is running, so that's where the auto-gen edits come in. Copilot seems to create the file and insert code at the same time. I asked it to create a test route file and it did succeed without conflicts in the code itself, but there was a VSCode save error warning (pic 1). I tried a second time with more route creation prompts and got the same type of mixup errors as earlier (pic 2). I tried with GPT-5 and GPT-4.1 for the same results, but I only have access to GPT models at the moment so I can't test further

lethal hemlock
#

so you would need a way to disable the auto filling

#

we dont have that yet but i think this could be added as a config flag