From 6cb70f26fa239f5afb12e76eda6477caadd4c188 Mon Sep 17 00:00:00 2001 From: "Dhanji R. Prasanna" Date: Thu, 5 Feb 2026 14:00:52 +1100 Subject: [PATCH] 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. --- crates/g3-cli/src/language_prompts.rs | 15 ++++++++++++++- prompts/system/.#native.md | 1 + 2 files changed, 15 insertions(+), 1 deletion(-) create mode 120000 prompts/system/.#native.md diff --git a/crates/g3-cli/src/language_prompts.rs b/crates/g3-cli/src/language_prompts.rs index e9c677d..b8dfad7 100644 --- a/crates/g3-cli/src/language_prompts.rs +++ b/crates/g3-cli/src/language_prompts.rs @@ -112,7 +112,9 @@ pub fn get_language_prompts_for_workspace(workspace_dir: &Path) -> Option