Restore /tmp/prompt.txt debug dump; cargo fmt

Signed-off-by: Douwe Osinga <douwe@squareup.com>
This commit is contained in:
Douwe Osinga
2026-03-25 09:04:34 -04:00
parent 5e5df2fc65
commit 5e49ca9e19
3 changed files with 10 additions and 6 deletions
@@ -371,6 +371,15 @@ impl AppsManagerClient {
let messages = vec![Message::user().with_text(&user_prompt)];
let tools = vec![Self::create_app_content_tool()];
// Dump the full prompt for debugging
let _ = std::fs::write(
"/tmp/prompt.txt",
format!(
"=== SYSTEM ===\n{}\n\n=== USER ===\n{}",
system_prompt, user_prompt
),
);
let model_config = provider.get_model_config();
let (response, usage) = provider
-2
View File
@@ -323,5 +323,3 @@ pub async fn fetch_mcp_apps(
Ok(apps)
}
+1 -4
View File
@@ -23,10 +23,7 @@ static TEMPLATE_REGISTRY: &[(&str, &str)] = &[
"recipe.md",
"Prompt for generating recipe files from conversations",
),
(
"apps.md",
"Prompt for generating or updating Goose apps",
),
("apps.md", "Prompt for generating or updating Goose apps"),
(
"permission_judge.md",
"Prompt for analyzing tool operations for read-only detection",