A desktop coding agent with free access to frontier models.
TypeScript
fix: clearer claude message when the sandbox can't run
ogsamratc450f4592471
diff --git a/apps/server/src/opencode-plugins/claude-provider/PARITY.sha256 b/apps/server/src/opencode-plugins/claude-provider/PARITY.sha256index 9ddef780..1f76369d 100644--- a/apps/server/src/opencode-plugins/claude-provider/PARITY.sha256+++ b/apps/server/src/opencode-plugins/claude-provider/PARITY.sha256@@ -1,3 +1,3 @@# The Claude provider: the same files in omnirush-cli (assets/claude-provider/) and omnirush-gui. A change to one must be ported to the other and this list updated in both.-8cbdea84cc316dd23a01968fc2b50e03d1f27cf1ea0cef7ca7beb4de3c044816 index.js+e06a1d3a28a663c6f3935dc9d74eb5ce88a83e42f5ad95061d632ca824b211d9 index.js3018991c25910011fd1387d311aaf5c128971b0f1ba3f1627c7b0126729d1d2a map.jsdiff --git a/apps/server/src/opencode-plugins/claude-provider/index.js b/apps/server/src/opencode-plugins/claude-provider/index.jsindex 36ff171e..4ca9439e 100644--- a/apps/server/src/opencode-plugins/claude-provider/index.js+++ b/apps/server/src/opencode-plugins/claude-provider/index.js@@ -42,6 +42,8 @@ export const CLAUDE_CODE_BUILDS = {arm64: { url: `https://registry.npmjs.org/@anthropic-ai/claude-code-linux-arm64/-/claude-code-linux-arm64-${CLAUDE_CODE_VERSION}.tgz`, integrity: "sha512-AePKWuymgDSCh7nScJ4dx/pF1Kppzk4IwQuh6JCROiqQdBVGaaHw6jVf/fY5PhbSjy9EQML6yOiUfc50aFpnTA==" },};export const PROVIDER_ID = "omnirush-claude";+/** A Claude turn where the sandbox isn't running (off, or it cannot run on this machine). */+export const NO_BOX = "Claude runs only in the OmniRush sandbox, and the sandbox isn't running for this project, so Claude can't start here.";const BOX_RUN = "/run/omnirush";const BOX_BIN = `/opt/omnirush/claude/${CLAUDE_CODE_VERSION}/claude`;const STOP_GRACE_MS = 5_000;@@ -195,7 +197,8 @@ class ClaudeCodeModel {const root = path.resolve(headers["x-omnirush-directory"] || directory || process.cwd());const key = boxKey(root);const record = boxHome ? readRecord(boxHome, key) : null;- if (!shell || !record || record.state === "off") throw apiError("Claude runs only in the OmniRush sandbox. Turn it on for this folder (omnirush sandbox on) and start the chat again.");+ // `noBox`: the app's own words for where to look (the CLI names its command; the desktop has none).+ if (!shell || !record || record.state === "off") throw apiError(this.settings.noBox || NO_BOX);const run = path.join(boxHome, "projects", key, "claude");const configDir = path.join(run, "config");fs.mkdirSync(configDir, { recursive: true, mode: 0o700 });