Skip to content

Craft Anything: understand how any software works, and craft your own.

Rust

Say when the Claude desktop app is installed but Claude Code isn't (#789)

BFlatb6f61d15ffb4
diff --git a/apps/craft-anything-cli/src/ai_cmd.rs b/apps/craft-anything-cli/src/ai_cmd.rs
index c3adef50..89862711 100644
--- a/apps/craft-anything-cli/src/ai_cmd.rs
+++ b/apps/craft-anything-cli/src/ai_cmd.rs
@@ -225,6 +225,10 @@ pub fn ai(cli: &Cli, c: &AiCommand, f: Format) -> u8 {
}
AiCommand::Detect => {
emit(&serde_json::to_value(hub.detect()).unwrap_or(Value::Null), f);
+ // On stderr, so the list on stdout stays what scripts read.
+ for hint in hub.detect_hints() {
+ eprintln!("note: {} {}", hint.message(), hint.remediation());
+ }
0
}
AiCommand::Add { name, kind, model, base_url, ssh_host, key_env, key_stdin } => {
diff --git a/crates/ai/src/detect.rs b/crates/ai/src/detect.rs
index 28ba6119..41b3cca2 100644
--- a/crates/ai/src/detect.rs
+++ b/crates/ai/src/detect.rs
@@ -157,6 +157,59 @@ pub fn agent_clis() -> Vec<Detected> {
.collect()
}
+/// What a scan found that isn't an AI to use but explains why one is missing.
+#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
+#[serde(tag = "kind", rename_all = "snake_case")]
+pub enum DetectHint {
+ /// The Claude desktop app is installed, but not Claude Code, the `claude` command builds run:
+ /// "Claude" installed from its website wasn't found and nothing said why (#259).
+ ClaudeDesktopWithoutCli { app: PathBuf },
+}
+
+impl DetectHint {
+ pub fn message(&self) -> String {
+ match self {
+ Self::ClaudeDesktopWithoutCli { app } => {
+ format!("The Claude desktop app is installed ({}), but Claude Code, the `claude` command-line tool building uses, isn't.", app.display())
+ }
+ }
+ }
+
+ pub fn remediation(&self) -> &'static str {
+ match self {
+ Self::ClaudeDesktopWithoutCli { .. } => "Install Claude Code apart from the desktop app, sign in to it once in a terminal, then look again.",
+ }
+ }
+}
+
+/// Hints for what [`agent_clis`] can't offer.
+pub fn hints() -> Vec<DetectHint> {
+ if craft_anything_platform::which("claude").is_some() {
+ return Vec::new();
+ }
+ let home = std::env::var_os(if cfg!(windows) { "USERPROFILE" } else { "HOME" }).map(PathBuf::from);
+ let local_data = std::env::var_os("LOCALAPPDATA").map(PathBuf::from);
+ claude_desktop_app(home.as_deref(), local_data.as_deref()).map(|app| DetectHint::ClaudeDesktopWithoutCli { app }).into_iter().collect()
+}
+
+/// Where the Claude desktop app is, if it's installed. On Windows the Store package leaves a
+/// `claude-desktop` app alias (a link that only `symlink_metadata` can read) and the older
+/// installer an `AnthropicClaude` folder; on macOS it's `Claude.app`. There's no Linux app.
+fn claude_desktop_app(home: Option<&std::path::Path>, local_data: Option<&std::path::Path>) -> Option<PathBuf> {
+ let places: Vec<PathBuf> = if cfg!(windows) {
+ let local_data = local_data.map(PathBuf::from).or_else(|| home.map(|h| h.join("AppData").join("Local")));
+ local_data
+ .into_iter()
+ .flat_map(|d| [d.join("Microsoft").join("WindowsApps").join("claude-desktop.exe"), d.join("AnthropicClaude").join("claude.exe")])
+ .collect()
+ } else if cfg!(target_os = "macos") {
+ std::iter::once(PathBuf::from("/Applications/Claude.app")).chain(home.map(|h| h.join("Applications").join("Claude.app"))).collect()
+ } else {
+ Vec::new()
+ };
+ places.into_iter().find(|p| std::fs::symlink_metadata(p).is_ok())
+}
+
/// The most servers taken from OpenCode's settings.
const OPENCODE_MAX: usize = 6;
@@ -323,6 +376,34 @@ mod model_id_tests;
mod tests {
use super::*;
+ /// #259: the desktop app is found where its installers put it, and nothing is made up where
+ /// there's none.
+ #[test]
+ fn the_claude_desktop_app_is_found_where_its_installers_put_it() {
+ let empty = tempfile::tempdir().unwrap();
+ let dir = tempfile::tempdir().unwrap();
+ let app = dir.path().join("AnthropicClaude").join("claude.exe");
+ std::fs::create_dir_all(app.parent().unwrap()).unwrap();
+ std::fs::write(&app, b"app").unwrap();
+ let mac = dir.path().join("Applications").join("Claude.app");
+ std::fs::create_dir_all(&mac).unwrap();
+ let found = claude_desktop_app(Some(dir.path()), Some(dir.path()));
+ if cfg!(windows) {
+ assert_eq!(found, Some(app));
+ assert_eq!(claude_desktop_app(Some(empty.path()), Some(empty.path())), None);
+ // The Store package's alias wins over an old install.
+ let alias = dir.path().join("Microsoft").join("WindowsApps").join("claude-desktop.exe");
+ std::fs::create_dir_all(alias.parent().unwrap()).unwrap();
+ std::fs::write(&alias, b"").unwrap();
+ assert_eq!(claude_desktop_app(None, Some(dir.path())), Some(alias));
+ } else if cfg!(target_os = "linux") {
+ assert_eq!(found, None, "there's no Claude desktop app for Linux");
+ }
+ let hint = DetectHint::ClaudeDesktopWithoutCli { app: PathBuf::from("Claude") };
+ assert!(hint.message().contains("desktop app") && hint.message().contains("`claude`"), "{}", hint.message());
+ assert_eq!(serde_json::to_value(&hint).unwrap()["kind"], "claude_desktop_without_cli");
+ }
+
/// Non-Git SSH hosts offer both supported agent suggestions without probing the remote computer.
#[test]
fn ssh_hosts_offer_opencode_as_well_as_claude_code() {
diff --git a/crates/ai/src/lib.rs b/crates/ai/src/lib.rs
index b2b9758a..e15dbea4 100644
--- a/crates/ai/src/lib.rs
+++ b/crates/ai/src/lib.rs
@@ -422,6 +422,11 @@ impl AiHub {
leave_out_set_up(detect::detect_all(), &self.backends())
}
+ /// Why a coding agent people expect may not be found (only the Claude desktop app, say).
+ pub fn detect_hints(&self) -> Vec<detect::DetectHint> {
+ detect::hints()
+ }
+
/// Host aliases from `~/.ssh/config`, for the "run on another machine" picker.
pub fn ssh_hosts(&self) -> Vec<String> {
ssh::ssh_hosts()
diff --git a/crates/ui-egui/src/builders.rs b/crates/ui-egui/src/builders.rs
index 1b51f73a..c904ac9c 100644
--- a/crates/ui-egui/src/builders.rs
+++ b/crates/ui-egui/src/builders.rs
@@ -404,6 +404,16 @@ pub fn need_builder_modal(app: &mut CraftApp, ui: &mut Ui, start: bool, close: &
});
} else if found.is_empty() {
ui.label(RichText::new(tr("No coding agent was found on this computer yet.")).color(t.text_dim));
+ for hint in &app.detect_hints {
+ match hint {
+ craft_anything_ai::detect::DetectHint::ClaudeDesktopWithoutCli { .. } => ui.add(
+ egui::Label::new(
+ RichText::new(tr("The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again.")).color(t.text_dim),
+ )
+ .wrap(),
+ ),
+ };
+ }
}
for b in found {
widgets::panel(&t).show(ui, |ui| {
diff --git a/crates/ui-egui/src/fr.tsv b/crates/ui-egui/src/fr.tsv
index 10567ddc..8b9ded78 100644
--- a/crates/ui-egui/src/fr.tsv
+++ b/crates/ui-egui/src/fr.tsv
@@ -852,6 +852,7 @@ Providers Fournisseurs
Harnesses Agents
Nothing of this kind was found. Rien de ce type n'a été trouvé.
Another model Autre modèle
+The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again. L'application de bureau Claude est installée, mais la création nécessite Claude Code, son outil en ligne de commande distinct. Installez Claude Code, connectez-vous-y une fois dans un terminal, puis relancez la recherche.
Unreal is here, but its bundled Clang C++ toolchain wasn't found. Unreal est installé, mais sa chaîne d'outils Clang C++ intégrée est introuvable.
Add Unreal's Linux C++ toolchain Ajouter la chaîne d'outils C++ Linux d'Unreal
Run Engine/Build/BatchFiles/Linux/SetupToolchain.sh in the engine folder to install its bundled Clang toolchain. If you built Unreal from source, Setup.sh downloads the native toolchain instead. A system Clang may not match the engine's version. Dans le dossier du moteur, exécutez Engine/Build/BatchFiles/Linux/SetupToolchain.sh pour installer sa chaîne d'outils Clang intégrée. Si vous compilez depuis les sources, Setup.sh télécharge à la place la chaîne d'outils native. Un Clang système peut ne pas correspondre à la version du moteur.
diff --git a/crates/ui-egui/src/i18n/cs.tsv b/crates/ui-egui/src/i18n/cs.tsv
index b06d0cfe..0f9cda06 100644
--- a/crates/ui-egui/src/i18n/cs.tsv
+++ b/crates/ui-egui/src/i18n/cs.tsv
@@ -1417,6 +1417,7 @@ Providers Poskytovatelé
Harnesses Agenti
Nothing of this kind was found. Nic takového nebylo nalezeno.
Another model Jiný model
+The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again. Desktopová aplikace Claude je nainstalovaná, ale k sestavení je potřeba Claude Code, její samostatný nástroj pro příkazový řádek. Nainstalujte Claude Code, jednou se do něj přihlaste v terminálu a pak hledejte znovu.
Unreal is here, but its bundled Clang C++ toolchain wasn't found. Unreal je nainstalovaný, ale jeho přibalený nástrojový řetězec Clang C++ nebyl nalezen.
Add Unreal's Linux C++ toolchain Přidat linuxový nástrojový řetězec C++ pro Unreal
Run Engine/Build/BatchFiles/Linux/SetupToolchain.sh in the engine folder to install its bundled Clang toolchain. If you built Unreal from source, Setup.sh downloads the native toolchain instead. A system Clang may not match the engine's version. Ve složce enginu spusťte Engine/Build/BatchFiles/Linux/SetupToolchain.sh a nainstaluje se přibalený nástrojový řetězec Clang. Při sestavení ze zdrojů Setup.sh místo toho stáhne nativní nástrojový řetězec. Systémový Clang nemusí odpovídat verzi enginu.
diff --git a/crates/ui-egui/src/i18n/de.tsv b/crates/ui-egui/src/i18n/de.tsv
index 444c97eb..da571497 100644
--- a/crates/ui-egui/src/i18n/de.tsv
+++ b/crates/ui-egui/src/i18n/de.tsv
@@ -1417,6 +1417,7 @@ Providers Anbieter
Harnesses Agenten
Nothing of this kind was found. Nichts dieser Art wurde gefunden.
Another model Anderes Modell
+The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again. Die Claude-Desktop-App ist installiert, aber zum Bauen wird Claude Code gebraucht, ihr eigenes Kommandozeilen-Tool. Installiere Claude Code, melde dich einmal in einem Terminal dort an und suche dann erneut.
Unreal is here, but its bundled Clang C++ toolchain wasn't found. Unreal ist da, aber die mitgelieferte Clang-C++-Toolchain wurde nicht gefunden.
Add Unreal's Linux C++ toolchain Unreals Linux-C++-Toolchain hinzufügen
Run Engine/Build/BatchFiles/Linux/SetupToolchain.sh in the engine folder to install its bundled Clang toolchain. If you built Unreal from source, Setup.sh downloads the native toolchain instead. A system Clang may not match the engine's version. Führe im Engine-Ordner Engine/Build/BatchFiles/Linux/SetupToolchain.sh aus, um die mitgelieferte Clang-Toolchain zu installieren. Bei einem Quellcode-Build lädt Setup.sh stattdessen die native Toolchain herunter. Ein System-Clang passt möglicherweise nicht zur Engine-Version.
diff --git a/crates/ui-egui/src/i18n/ko.tsv b/crates/ui-egui/src/i18n/ko.tsv
index a23ae8f6..edfbf6a6 100644
--- a/crates/ui-egui/src/i18n/ko.tsv
+++ b/crates/ui-egui/src/i18n/ko.tsv
@@ -1417,6 +1417,7 @@ Providers 제공자
Harnesses 에이전트
Nothing of this kind was found. 이런 종류는 찾지 못했습니다.
Another model 다른 모델
+The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again. Claude 데스크톱 앱은 설치되어 있지만, 빌드에는 별도의 명령줄 도구인 Claude Code가 필요합니다. Claude Code를 설치하고 터미널에서 한 번 로그인한 다음 다시 찾아보세요.
Unreal is here, but its bundled Clang C++ toolchain wasn't found. Unreal은 설치되어 있지만 함께 제공되는 Clang C++ 도구 체인을 찾지 못했습니다.
Add Unreal's Linux C++ toolchain Unreal의 Linux C++ 도구 체인 추가
Run Engine/Build/BatchFiles/Linux/SetupToolchain.sh in the engine folder to install its bundled Clang toolchain. If you built Unreal from source, Setup.sh downloads the native toolchain instead. A system Clang may not match the engine's version. 엔진 폴더에서 Engine/Build/BatchFiles/Linux/SetupToolchain.sh를 실행해 함께 제공되는 Clang 도구 체인을 설치하세요. 소스 빌드라면 Setup.sh가 대신 네이티브 도구 체인을 내려받습니다. 시스템 Clang은 엔진 버전과 맞지 않을 수 있습니다.
diff --git a/crates/ui-egui/src/i18n/ru.tsv b/crates/ui-egui/src/i18n/ru.tsv
index e5eb45ee..54edd41c 100644
--- a/crates/ui-egui/src/i18n/ru.tsv
+++ b/crates/ui-egui/src/i18n/ru.tsv
@@ -1417,6 +1417,7 @@ Providers Провайдеры
Harnesses Агенты
Nothing of this kind was found. Ничего такого не найдено.
Another model Другая модель
+The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again. Приложение Claude для компьютера установлено, но для сборки нужен Claude Code — отдельный инструмент командной строки. Установите Claude Code, один раз войдите в него в терминале и выполните поиск снова.
Unreal is here, but its bundled Clang C++ toolchain wasn't found. Unreal установлен, но встроенная цепочка инструментов Clang C++ не найдена.
Add Unreal's Linux C++ toolchain Добавить цепочку инструментов C++ для Linux в Unreal
Run Engine/Build/BatchFiles/Linux/SetupToolchain.sh in the engine folder to install its bundled Clang toolchain. If you built Unreal from source, Setup.sh downloads the native toolchain instead. A system Clang may not match the engine's version. Запустите Engine/Build/BatchFiles/Linux/SetupToolchain.sh в папке движка, чтобы установить встроенную цепочку инструментов Clang. При сборке из исходников Setup.sh вместо этого скачивает нативную цепочку инструментов. Системный Clang может не подходить к версии движка.
diff --git a/crates/ui-egui/src/i18n/zh-hans.tsv b/crates/ui-egui/src/i18n/zh-hans.tsv
index 11f1b60b..660f372a 100644
--- a/crates/ui-egui/src/i18n/zh-hans.tsv
+++ b/crates/ui-egui/src/i18n/zh-hans.tsv
@@ -1417,6 +1417,7 @@ Providers 提供商
Harnesses 代理
Nothing of this kind was found. 没有找到这类项目。
Another model 其他模型
+The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again. 已安装 Claude 桌面应用,但构建需要 Claude Code,即它单独的命令行工具。请安装 Claude Code,在终端中登录一次,然后重新查找。
Unreal is here, but its bundled Clang C++ toolchain wasn't found. Unreal 已安装,但未找到其自带的 Clang C++ 工具链。
Add Unreal's Linux C++ toolchain 添加 Unreal 的 Linux C++ 工具链
Run Engine/Build/BatchFiles/Linux/SetupToolchain.sh in the engine folder to install its bundled Clang toolchain. If you built Unreal from source, Setup.sh downloads the native toolchain instead. A system Clang may not match the engine's version. 在引擎文件夹中运行 Engine/Build/BatchFiles/Linux/SetupToolchain.sh,安装其自带的 Clang 工具链。如果是源码构建,Setup.sh 会改为下载本机工具链。系统 Clang 可能与引擎版本不匹配。
diff --git a/crates/ui-egui/src/i18n/zh-hant.tsv b/crates/ui-egui/src/i18n/zh-hant.tsv
index 6184f60d..5f2d3773 100644
--- a/crates/ui-egui/src/i18n/zh-hant.tsv
+++ b/crates/ui-egui/src/i18n/zh-hant.tsv
@@ -1417,6 +1417,7 @@ Providers 供應商
Harnesses 代理
Nothing of this kind was found. 沒有找到這類項目。
Another model 其他模型
+The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again. 已安裝 Claude 桌面應用程式,但建置需要 Claude Code,也就是它獨立的命令列工具。請安裝 Claude Code,在終端機中登入一次,然後重新尋找。
Unreal is here, but its bundled Clang C++ toolchain wasn't found. Unreal 已安裝,但找不到其內建的 Clang C++ 工具鏈。
Add Unreal's Linux C++ toolchain 新增 Unreal 的 Linux C++ 工具鏈
Run Engine/Build/BatchFiles/Linux/SetupToolchain.sh in the engine folder to install its bundled Clang toolchain. If you built Unreal from source, Setup.sh downloads the native toolchain instead. A system Clang may not match the engine's version. 在引擎資料夾中執行 Engine/Build/BatchFiles/Linux/SetupToolchain.sh,安裝其內建的 Clang 工具鏈。如果是原始碼建置,Setup.sh 會改為下載原生工具鏈。系統 Clang 可能與引擎版本不相符。
diff --git a/crates/ui-egui/src/ja.tsv b/crates/ui-egui/src/ja.tsv
index d1e63a37..9ea29ee4 100644
--- a/crates/ui-egui/src/ja.tsv
+++ b/crates/ui-egui/src/ja.tsv
@@ -854,6 +854,7 @@ Providers プロバイダ
Harnesses ハーネス
Nothing of this kind was found. この種類のものは見つかりませんでした。
Another model 別のモデル
+The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again. Claude デスクトップアプリはインストールされていますが、ビルドには別のコマンドラインツールである Claude Code が必要です。Claude Code をインストールし、ターミナルで一度サインインしてから、もう一度探してください。
Unreal is here, but its bundled Clang C++ toolchain wasn't found. Unreal はインストールされていますが、同梱の Clang C++ ツールチェーンが見つかりません。
Add Unreal's Linux C++ toolchain Unreal の Linux C++ ツールチェーンを追加
Run Engine/Build/BatchFiles/Linux/SetupToolchain.sh in the engine folder to install its bundled Clang toolchain. If you built Unreal from source, Setup.sh downloads the native toolchain instead. A system Clang may not match the engine's version. エンジンのフォルダーで Engine/Build/BatchFiles/Linux/SetupToolchain.sh を実行し、同梱の Clang ツールチェーンをインストールします。ソースからビルドした場合は、代わりに Setup.sh がネイティブツールチェーンをダウンロードします。システムの Clang はエンジンのバージョンと一致しない場合があります。
diff --git a/crates/ui-egui/src/lib.rs b/crates/ui-egui/src/lib.rs
index 5de7de7f..9b5a9b88 100644
--- a/crates/ui-egui/src/lib.rs
+++ b/crates/ui-egui/src/lib.rs
@@ -152,7 +152,8 @@ pub enum Done {
path: PathBuf,
result: Result<Value, ToolError>,
},
- Detected(Vec<Detected>),
+ /// What a scan found, and why an expected coding agent may be missing.
+ Detected(Vec<Detected>, Vec<craft_anything_ai::detect::DetectHint>),
/// The configured backends, the ones chosen to build with and to extract with, and each one's
/// options.
Backends(Vec<BackendConfig>, Option<String>, Option<String>, std::collections::BTreeMap<String, craft_anything_ai::BackendOptions>),
@@ -443,6 +444,8 @@ pub struct CraftApp {
/// The backend chosen to take a game's files out in Deep mode, if any.
pub extractor: Option<String>,
pub detected: Option<Vec<Detected>>,
+ /// Why an expected coding agent may be missing, from the last scan.
+ pub detect_hints: Vec<craft_anything_ai::detect::DetectHint>,
pub detecting: bool,
/// Counts AI choices, so an add that finishes later doesn't undo one made meanwhile.
pub backend_choices: u64,
@@ -559,6 +562,7 @@ impl CraftApp {
builder: None,
extractor: None,
detected: None,
+ detect_hints: Vec::new(),
detecting: false,
backend_choices: 0,
log: Vec::new(),
@@ -1182,7 +1186,7 @@ impl CraftApp {
}
self.detecting = true;
let hub = self.hub.clone();
- self.jobs.spawn("Look for AI on this computer", true, move |_| Ok(Done::Detected(hub.detect())));
+ self.jobs.spawn("Look for AI on this computer", true, move |_| Ok(Done::Detected(hub.detect(), hub.detect_hints())));
}
pub fn add_backend(&mut self, config: BackendConfig, key: Option<String>) {
@@ -1433,7 +1437,8 @@ impl CraftApp {
self.toast(e.for_people(), true);
}
},
- Done::Detected(d) => {
+ Done::Detected(d, hints) => {
+ self.detect_hints = hints;
self.detecting = false;
self.log(false, format!("Found {} AI option(s) on this computer", d.len()));
self.detected = Some(d);
diff --git a/crates/ui-egui/tests/smoke.rs b/crates/ui-egui/tests/smoke.rs
index bdec9e50..b5e8998c 100644
--- a/crates/ui-egui/tests/smoke.rs
+++ b/crates/ui-egui/tests/smoke.rs
@@ -2295,6 +2295,29 @@ fn with_nothing_to_build_with_start_offers_what_was_found_instead_of_a_dead_end(
h.get_by_label("Build with Claude Code");
}
+/// #259: with only the Claude desktop app installed, the dialog says that building needs Claude
+/// Code apart from it, instead of only "No coding agent was found".
+#[test]
+fn only_the_claude_desktop_app_is_named_when_nothing_can_build() {
+ use craft_anything_ai::detect::DetectHint;
+ let mut h = harness(|| {
+ let mut a = demo::app(demo::engine(Mode::Beginner, true));
+ a.backends.clear();
+ a.detected = Some(Vec::new());
+ a
+ });
+ h.run_steps(3);
+ h.state_mut().state.make.request = "A notes app".into();
+ h.state_mut().start_make();
+ // The dialog looks on this computer when it opens; let that finish before standing in for it.
+ assert!(wait(&mut h, |a| !a.detecting));
+ h.state_mut().detected = Some(Vec::new());
+ h.state_mut().detect_hints = vec![DetectHint::ClaudeDesktopWithoutCli { app: "Claude".into() }];
+ h.run_steps(2);
+ h.get_by_label("No coding agent was found on this computer yet.");
+ h.get_by_label("The Claude desktop app is installed, but building needs Claude Code, its separate command-line tool. Install Claude Code, sign in to it once in a terminal, then look again.");
+}
+
#[test]
fn an_ai_can_be_turned_off_and_removed_in_settings() {
use craft_anything_ai::rebuild::StandIns;
diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md
index 68674b2a..77d5e7e4 100644
--- a/docs/ROADMAP.md
+++ b/docs/ROADMAP.md
@@ -574,8 +574,9 @@ Owner: open · Status: in progress
Cause is not confirmed on the reporter's machine (needs their config.toml); the fix covers the
switched-off case that the code leaves out (`is_on`, `leave_out_set_up`, `builder_backend`). — claimed: fabox-os,
branch bugfix/423-disabled-agent-not-offered
-- [ ] Say plainly when what's found is the Claude desktop app rather than the `claude` program
+- [x] Say plainly when what's found is the Claude desktop app rather than the `claude` program
(#259, a guess at its cause)
+- [ ] macOS: check that `Claude.app` is where the desktop app is found (#259's hint is untried there)
- [x] macOS: `/Applications/Antigravity.app` ended up as the agent's command (#467). Found: the "Where is
the program?" picker (`pick_file`) returns the bundle, and `set_command` saved any path. Refuse a
folder or app bundle when it's saved (`set_command`), and don't run one that was saved before
diff --git a/docs/STATUS.md b/docs/STATUS.md
index f318b6c6..262bcea6 100644
--- a/docs/STATUS.md
+++ b/docs/STATUS.md
@@ -13,6 +13,7 @@ workspace clippy, layers, fmt and the secret scan of all history were clean. Chi
| SQLite payload limits | Capped records retain column positions, disclose partial TEXT and BLOB values, omit incomplete BLOB hashes, and report partial coverage with read notes | Hand-built overflow-page regressions for five oversized records (including WITHOUT ROWID in declaration order) and two controls; table and index engine coverage and limitation regressions |
| SQLite added columns | Short records include missing trailing fields using literal column defaults, or NULL when absent; unsupported default expressions produce NULL with a row note. Stored fields and records longer than the schema retain their values. Defaults are filled before restoring rowid aliases | Nine hand-built parser regressions and an engine tool test cover added-column defaults, rewritten records and short records with a rowid alias, including a missing alias field |
| OpenCode models and thinking | OpenCode V2 locally and over SSH; Settings → AI lists only that instance's enabled chat models and supported Low/Medium/High/Xhigh/Max variants. Selection is validated and saved through UI, CLI and `ai_models_list` / `ai_model_set`. Explicit-selection execution is refused until native MCP integration exists; local ACP runs require clearing the selection. See [OpenCode](opencode.md). | Stand-in catalogue/process, persistence, remote-command and UI tests; local live catalogue checks (34 models, all five depths represented). Regression checks reject native chat/builds before process I/O with ACP on/off, local/SSH and model-only/depth-only/combined selections. No live SSH host or paid generation used |
+| Claude desktop app without Claude Code | When the `claude` command isn't found but the Claude desktop app is (Windows: the Store package's `claude-desktop` app alias or the older installer's `AnthropicClaude` folder; macOS: `Claude.app`), the builder dialog under "No coding agent was found" and `ai detect` (on stderr) say the desktop app is installed but building needs Claude Code, installed apart (#259). Typed as `DetectHint` from `AiHub::detect_hints` | A regression finds the app in temp folders laid out as each Windows installer leaves it, and nothing on Linux; a UI test shows the hint in the dialog. On Windows 10 the real Store package's alias was found. Not checked: macOS, the older installer, and a computer with no `claude` installed |
| Missing program paths | A program started by its path (a saved agent program, for one) that has no file there is reported with that path, as possibly moved by an update, with reason `path_missing`, instead of "isn't installed or isn't on your PATH"; a bare name still speaks of PATH. A relative path is looked up where the program starts (on Unix, its working folder), so a script there whose interpreter is missing isn't called a path with no file. It stays a missing program (`EngineMissing`), so builder turns aren't retried (#721) | A regression starts a program at a path with no file on Windows 10 and checks the message, remediation and reason, with a bare-name control; on Linux (Docker), a relative script with a missing interpreter started in its folder, through `Process` and `Launch`. Not checked: a real Codex desktop update, or the app's Settings screen with a stale path |
| Mach-O Objective-C pointers | Chained offsets mapped only into file-empty `__PAGEZERO` reach the image-base fallback; pointer candidates must be backed by file bytes | Synthetic thin and fat Mach-O regression, plain-pointer and authenticated-rebase controls, null and unmapped-pointer checks. Real binaries were not checked for this correction |
| Apple app graphs | Selecting a macOS bundle recognises its root-relative `Contents/Info.plist` and retains its service/extension type; nested XPC bundles appear in `services` and as `xpc-service` graph nodes, including their executables when hosted in frameworks | Synthetic inventory tests, including parent-directory and flat bundle layouts, selected services/extensions, framework-hosted service executables, and bare-program controls. Ordinary selected directories with `Contents/Info.plist` need an Apple bundle suffix; archives retain layout-based recognition. Framework libraries and dylibs stay excluded from executables. Real app bundles were not checked for this correction |