Fix empty Language-Specific Guidance header in system prompt

When a Rust-only workspace was detected, the Language-Specific Guidance
header was appearing with no content because Rust has an empty prompt
string (agent-specific prompts handle Rust instead).

The fix filters out empty prompt strings in get_language_prompts_for_workspace()
so the header only appears when there's actual guidance content.

Added test to verify Rust-only workspaces return None.
This commit is contained in:
Dhanji R. Prasanna
2026-02-05 14:00:52 +11:00
parent 9443f9333b
commit 6cb70f26fa
2 changed files with 15 additions and 1 deletions

1
prompts/system/.#native.md Symbolic link
View File

@@ -0,0 +1 @@
dhanji@Dhanjis-Mac-Studio.local.20760:1769746925