Skip to content

fix(prompt): recursive system prompt expansion#1324

Merged
deathbeam merged 1 commit intoCopilotC-Nvim:mainfrom
deathbeam:fix-prompt-expansion
Aug 13, 2025
Merged

fix(prompt): recursive system prompt expansion#1324
deathbeam merged 1 commit intoCopilotC-Nvim:mainfrom
deathbeam:fix-prompt-expansion

Conversation

@deathbeam
Copy link
Copy Markdown
Collaborator

Refactor system prompt expansion to support recursive placeholders. The system prompt now uses curly braces for placeholders and expands nested prompts up to a maximum depth. This improves flexibility for prompt composition and avoids incomplete substitutions.

Signed-off-by: Tomas Slusny slusnucky@gmail.com

Closes #1323

Refactor system prompt expansion to support recursive placeholders. The
system prompt now uses curly braces for placeholders and expands nested
prompts up to a maximum depth. This improves flexibility for prompt
composition and avoids incomplete substitutions.

Signed-off-by: Tomas Slusny <slusnucky@gmail.com>

Closes CopilotC-Nvim#1323
@deathbeam deathbeam added the bug Something isn't working label Aug 13, 2025
@deathbeam deathbeam merged commit 26f7b4f into CopilotC-Nvim:main Aug 13, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

System prompt always just "COPILOT_INSTRUCTIONS" in "show info" (gc)

1 participant