From 3aab4fd586b96131db0cd27bb92257f431685435 Mon Sep 17 00:00:00 2001 From: SirSicard Date: Wed, 11 Nov 2026 01:00:11 +0100 Subject: [PATCH] fix(check): a missing taste file in the taste folder is a note, not a refusal The skill's own check line names ~/.raea/taste/taste.ts, which a fresh install doesn't have, so every agent's first full check refused (exit 1). A --taste path that doesn't exist inside RAEA_TASTE or ~/.raea/taste now prints one note and checks without taste; any other missing path still refuses. Part of #89 Co-Authored-By: Claude Opus 5.5 --- apps/direction/src/check.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/direction/src/check.rs b/apps/direction/src/check.rs index 508c1457..4dd77f67 100644 --- a/apps/direction/src/check.rs +++ b/apps/direction/src/check.rs @@ -38,6 +38,13 @@ pub fn taste_dir() -> Option { /// The .ts files `--taste` names: the file, or every .ts in the folder. pub fn taste_files(args: &[String]) -> Vec { let Some(t) = flag(args, "--taste").map(PathBuf::from) else { return vec![] }; + // the person's taste folder may not exist yet: the skill's own check line names ~/.raea/taste/taste.ts, so a fresh + // install checks without taste rather than refusing (any other missing path still refuses, naming it) + let in_taste_dir = |d: &Path| t == d || t.parent() == Some(d); + if !t.exists() && taste_dir().as_deref().is_some_and(in_taste_dir) { + eprintln!("note: no taste yet ({} doesn't exist); checking without the person's taste", t.display()); + return vec![]; + } if t.extension().is_some_and(|x| x == "ts") { return vec![t]; }