Commit Graph
62 Commits
Author SHA1 Message Date
Justin John 5e09595d55 Let Settings → AI choose Codex's model (#2129)
Codex now shows the model it uses ("Codex default" until one is chosen) with Change…, like Claude Code (#2109). The choices are its default (no model is passed, so its own settings decide) and the models `codex debug models` lists, in its order, leaving out the ones it hides; over SSH the remote Codex is asked. `ai model Codex` lists and sets them the same way. Until now the model could only be set by adding `cli_model` to config.toml by hand.
2026-11-18 21:35:57 +07:00
RRFZ 2a5032c877 fix(setup): keep read errors' own advice and show uninstall blockers' fixes
A folder at the config path gets folder advice instead of permissions, other I/O errors keep their text, and malformed or non-UTF-8 configs are fixed where they are. The CLI prints each uninstall blocker's reason and remediation.
2026-11-18 04:48:02 -05:00
NetterSilver 1ab4ef2a56 Reject signed values after 0x in CLI integer options (#1988)
A CLI integer option stripped the 0x prefix and parsed the rest with from_str_radix, which accepts a leading '+', so --addr 0x+10 was read as 16. The text after 0x must now be non-empty hex digits; anything else gives the existing "expects a number" error.
2026-11-17 09:30:42 +07:00
Justin John a897fff072 Choose each AI's builder tool list in Settings → AI and with ai tools (R5.4) (#1946)
An API backend's `tools` setting (auto, lean or full) could only be changed by editing config.toml. Settings → AI now has a "Builder's tools" choice per API backend, with a caption saying what Auto works out to for that AI, and `ai tools <name> [auto|lean|full]` shows or sets it from the CLI. Auto is saved as no setting; agent apps are refused, as they choose their own tools.
2026-11-16 19:41:14 +07:00
Trần Quang Đãng 9460af211f Let Claude Code use the model its own settings name by default (#921)
* Let Claude Code use the model its own settings name by default

Claude Code runs are no longer passed a hardcoded --model: with no choice
saved, the agent uses whatever its own settings name (a custom model, an
alias, opusplan…), and `ai model --default` clears a saved override back
to that. The Settings → AI picker lists "Default (its own settings)" first
for Claude Code (saved as `claude-code` or `claude`), choosing it clears
the saved model, and the typed "Another model" field is gone since the
list carries the choice. effort_levels detects Claude Code by adapter id
so the `claude` agent id gets every effort level too.

* Translate "Default (its own settings)" in the remaining eight catalogs

The i18n gate requires every catalog to carry the same key set; the
first commit only added the new picker label to six of them.
2026-11-16 08:59:20 +01:00
Rudy Mizrahi Celekli b9a0f81d14 Let people set an AI backend's request rate in Settings (#1841)
An API backend's requests per minute could only be set by editing config.toml. Settings → AI now has a field for it on each API backend, and the CLI has ai request-rate <name> [n]; zero removes the limit. Agent apps send their own requests, so they have no such setting. The save runs on a worker through the hub's usual save path.
2026-11-15 11:06:55 +07:00
Rudy Mizrahi Celekli a3db764949 Show ACP token counts as unknown when the agent does not report them (R2.2) (#1843)
Agents over ACP report context use, not a turn's tokens, so their turns now say the token count is unknown instead of 0, in the CLI, the build's activity and the app. Project and session totals keep what was reported: "Unknown" when nothing was, and a lower bound such as "1.9M+" when some turns had no count. usage.json gains `tokens_incomplete`; older files read as before.
2026-11-14 14:36:22 +07:00
Justin John 2f99163b1b Let OpenAI-style AIs be set to think harder, sent only once chosen (R2.9) (#1818)
The Effort setting in Settings → AI appeared only for the Claude API and Claude Code. OpenAI, OpenRouter, Gemini and OpenAI-compatible AIs now offer OpenAI's levels (none to xhigh), starting at default, which sends nothing; once a level is picked, requests carry reasoning_effort (OpenRouter: reasoning.effort), and craft-anything-cli ai effort lists and sets the same levels. Claude no longer accepts none or minimal. Refs #1813.
2026-11-14 12:20:31 +07:00
Dylan M. Taylor 5b3f1d818f Add Help > Check for Updates and bump to 0.6.1 (#1706)
* feat(updates): add manual release checks and verified native updates

* chore: bump version to 0.6.1

* fix(flatpak): honor the launcher version choices

* fix(updates): report restart outcomes without UI process side effects

* fix(i18n): translate updater controls in the complete catalogs

* test: document native updater startup as UI plumbing
2026-11-11 19:43:41 -05:00
Alex Joaquim Pereira 2cee4610f0 Keep a reattached project's saved settings, conversation and follow-up request (R2.9) (#1682)
Since #987, picking a folder that already holds a project attaches to it, but the create path then overwrote its saved builder, asset budget, generated-assets choice and stack, replaced its conversation, and dropped the typed request. An attached project now keeps everything the person set and its saved conversation, and the request is added as its follow-up, in the app and the CLI; the CLI refuses --build-with, --generate-assets and --existing for such a folder with a fix to use instead.
2026-11-11 19:19:15 +07:00
NetterSilver c59a49a94c Reject NaN and infinity for number options in the CLI (#1623)
A number option parsed with f64, which accepts NaN, inf and infinity; JSON can't hold those, so the value silently became null. The CLI now refuses non-finite numbers with its usual "expects a number" error, and a test covers NaN, inf, -inf and infinity.
2026-11-11 14:36:56 +07:00
Alex Joaquim Pereira 6db3a29665 Replace a saved API key from Settings and the CLI (R5.5) (#1486)
A key saved in the app silently wins over the one in the environment, so a rotated key stayed hidden behind the old one unless the backend was removed or the keychain edited by hand. Settings → AI now shows for every API backend whether a key is saved; a saved one can be forgotten, so the environment's is used again, and a new one saved in its place, without removing the backend. The CLI does the same with ai key <name> (--key-env, --key-stdin or --forget), and never prints the key. A new key is read back after saving, and a forget that a locked or failing keychain can't confirm says so instead of reporting success.

Refs #1358
2026-11-10 20:09:44 +07:00
Alex Joaquim Pereira e09888e146 Sweep leftover agent sessions when the desktop app starts (R2.2) (#1422)
A coding agent's turn killed mid-turn leaves a record of its session, which was removed only at the next agent turn or on uninstall; meanwhile the agent's own background service could carry on a session nobody was watching. The desktop app now sweeps those records when it starts, on a background thread, with the same rules as any sweep: a record a running turn holds is left alone, and a delete that fails is kept for the next sweep.
2026-11-10 02:06:22 +07:00
Fábio Soares 2307e12df5 Keep one OpenCode Go session id per installation (#1293)
OpenCode Go backends that weren't added through Settings (from an older version, or found from an environment key) had no saved session id, so each run sent a new one. The app and the CLI now save one at startup for any OpenCode Go backend that has none, before any session lock is taken, and keep it across restarts. An OpenCode error that comes without a message now shows its name, HTTP status and the start of the response body instead of "no error details".

Refs #1225
2026-11-09 16:41:55 +08:00
Nibras Abo Alzahab 30d884284e Devin as a coding agent over ACP, authenticated with the backend's key (#562)
Devin can be added as a coding agent. Builds talk to `devin acp`, which takes our tool server and sends its permission requests to the approval policy; since Devin doesn't use its own CLI sign-in over ACP, the session authenticates with the key stored for that backend, sent only to the local process and only when Devin offers that method. The key is looked up only for agents that authenticate this way, so other agents never touch the keychain. One-off questions use `devin -p`, and `craft-anything-cli ai add --acp` sets an agent to ACP.
2026-11-09 16:34:47 +08:00
Justin John 5c17d9059e Delete OpenCode sessions a build left unfinished, including after a killed app and over SSH (R2.2) (#1185)
A stopped, failed or timed-out OpenCode turn deletes the session it started, so OpenCode's own service can't resume it later. A turn records its session while it runs, so one left by a killed app is deleted at the next turn or by doctor, on this computer or over SSH.

Part of #1115. Includes #1176.
2026-11-09 01:38:18 +08:00
BFlat 4ddf72bc0a Keep the start guard tests from releasing each other's lock (#1097)
The two start guard tests share the process-wide held mark, so one's opened() could drop the other's lock mid-test and fail main now and then. They now take a shared test lock.
2026-11-07 19:12:43 +08:00
Alex Joaquim Pereira c9b81ff492 Tell a running build what was asked in Just ask (R2.9) (#1094)
A note sent while a build runs now carries the latest Just ask answers its mode may show, including through Claude Code's note hook, and they count as told only once the builder has them. A Clean room run never gets Deep answers.
2026-11-07 17:58:14 +08:00
Alex Joaquim Pereira a6e868bfab Report a replaced saved builder in the CLI, MCP and Just ask (#1073)
`rebuild --continue-in`, `rebuild_start` on a project and `rebuild_question_ask` now say which AI works when the saved one is off or gone, as the app does.
2026-11-07 13:30:21 +08:00
Joseph 4eb8ec35c2 Say the next start draws differently only when the window was never shown (#1071)
A window that fails after it was shown no longer says the next start will use another renderer, because its start mark is already gone.
2026-11-07 12:41:03 +08:00
Tanish Manku 3122cd1e6d Each project chooses what the builder's approvals get, per kind of action (#1022)
A project can allow, ask about or refuse each kind of builder action (web, commands, outside files, publishing, deletes outside the project, system changes, other tools); a kind it hasn't chosen follows Auto mode as before. `project_approvals_set` sets them, and an agent can only make a kind stricter, including through our CLI from its own shell. "Always" on a push, delete or system card allows that whole kind, and pushes are read word by word in every shell form.
2026-11-07 04:36:10 +08:00
BFlat 827fdb793d Try the next renderer after a Windows start that can't draw, and close the gaps in the Claude desktop hint (#1001)
A Windows start that can't draw moves on through DX12, WARP, Vulkan and OpenGL and keeps the one that works; a start still under way is not a failed one. The Claude desktop hint covers the SSH-only case and the Store package folder. Closes #794.
2026-11-07 01:11:26 +08:00
BFlat 025d66f86b Add a restricted MCP mode without the tools that act on the machine or reach the network (#1000)
`mcp --restricted` leaves out tools that act on the machine or reach the network, going by what each declares; `--allow-web` and `--allow-capture` turn on their own groups. Closes #855. Closes #856.\n\nCo-authored-by: Dev Maktuporia <devmaktuporia@gmail.com>
2026-11-07 01:03:03 +08:00
BFlat 5a65542b88 Keep macOS's own window buttons and frame (#994)
The Mac window keeps its native buttons and frame, the bar keeps its size when zoomed, and room is reserved for the buttons in full screen too.\n\nCo-authored-by: Sanket Dofe <dofesanket@gmail.com>
2026-11-07 00:51:57 +08:00
Alex Joaquim Pereira 8314b7e127 Refuse a switched-off or unknown --backend name (#840)
The CLI and `rebuild_start` refuse an off or unknown backend name before any project folder is made.
2026-11-07 00:29:29 +08:00
Alex Joaquim Pereira e59b1ef4d8 Register an installed agent named with --backend (R5.5) (#821)
`rebuild --backend <name>` uses a configured backend of that name as it is, and registers an installed agent whose name matches when it is not added yet; an unknown name adds nothing. Follow-up to #819 (R5.5).
2026-11-04 20:03:19 +07:00
Alex Joaquim Pereira f8d6e3585a Build with an API backend without adding an agent (R5.5) (#819)
`rebuild` looks for and saves a coding agent only when no enabled AI can build, so a run with an API backend no longer adds Claude Code to the settings; a refused command changes nothing (R5.5).
2026-11-04 19:29:42 +07:00
smittie2000 a067ac6981 Test both start-panic decisions, and don't blame the graphics for every early panic (#811)
Tests for both start-panic decisions (passed through, turned into a start error before the window showed, resumed after), now in a module CI runs on every platform. An early panic is reported as an internal error rather than a graphics failure, since it can be any bug in the first moments. Follow-up to #786.
2026-11-04 19:23:58 +07:00
BFlatandsanketdofe b2d7e89ee8 Give the macOS app a menu bar with its actions (#804)
On macOS the system menu bar has the app's actions with the usual Mac shortcuts (Settings ⌘, · New project ⌘N · Open ⌘O · Command palette ⌘K · Quit ⌘Q, the Simple/Advanced and Clean room/Deep choices, and Help links to this repository), through muda. Other systems are unchanged.

Supersedes #791.

Co-authored-by: sanketdofe <46375884+sanketdofe@users.noreply.github.com>
2026-11-04 17:03:01 +07:00
BFlatandFuryNocturn b6f61d15ff Say when the Claude desktop app is installed but Claude Code isn't (#789)
When the Claude desktop app is installed but Claude Code isn't, the setup card and ai detect say so and how to install Claude Code (refs #259).

Supersedes #781.

Co-authored-by: FuryNocturn <28540819+FuryNocturn@users.noreply.github.com>
2026-11-04 12:58:46 +07:00
smittie2000 08df7caa1a A window that can't start says why instead of the app crashing (#786)
When the graphics can't start the window, the app shows why in the start-failure dialog instead of crashing: a panic before the first frames were shown is reported like any other start failure.
2026-11-04 11:33:32 +07:00
Fábio Soares bbc06cb9c1 Start the window on Macs whose Metal compiler rejects the OS's shader version (#744)
The window opens on Macs whose Metal compiler rejects the shader language version wgpu takes from the macOS version: a patched wgpu-hal 30.0.1 (identical to the released crate except for this probe) compiles a tiny kernel with each version up to the OS's and keeps the first one accepted. A lost device on a Mac no longer points at the Windows-only software renderer setting (fixes #742).
2026-11-04 08:22:28 +07:00
kler d8915a5bbe Choose Claude Code's folder per AI, so each can use another account (#664)
Each Claude Code AI can have its own folder (CLAUDE_CONFIG_DIR) in Settings → AI or with craft-anything-cli ai folder, so each can use a different account; the sign-in check, runs and sessions use that folder.
2026-11-04 02:58:40 +07:00
Ryan Missel 87174476d9 Add Copilot CLI support and shared agent investigations (#455)
GitHub Copilot CLI can be a coding agent over ACP, with its models chosen through the shared agent model catalogue; options that could bypass the app's tool restrictions are refused, and agents share investigation findings safely.
2026-11-04 00:29:11 +07:00
Thân Minh Nghĩa 2e0d0813e0 Ignore switched-off screens and shared PCI ids when picking the Linux GPU (#671)
On Linux a switched-off screen (a closed laptop lid) no longer counts as the one the GPU drives, and PCI ids pick a card only when no other card shares them (follow-up to #659).
2026-11-03 22:54:25 +07:00
BFlatandThân Minh Nghĩa f05f019691 Draw on the GPU that drives the screen on Linux, so laptops with two GPUs open fast and don't lag (#659)
On Linux the window is drawn on the GPU that drives the screen (the built-in panel's, or the only one with displays), so laptops with two GPUs open fast and don't lag; WGPU_ADAPTER_NAME and WGPU_POWER_PREF still decide (fixes #571). Replays #578.

Co-authored-by: Thân Minh Nghĩa <thanminhnghia3@gmail.com>
2026-11-03 21:57:08 +07:00
BFlatandFábio Soares 9fd46b818b Builder limits, OpenRouter tools, a software-renderer fallback, calmer spinners, lean local builders, lldb calls and LM Studio ports (#657)
Replays #576, #577, #581, #589, #624, #625 and #628. Builder steps stop after 25 failed builds in a row, OpenRouter tool requests ask for a provider that supports tools, a start that never opened a window draws in software next time, spinners stop redrawing every frame, local builders get a lean tool list, lldb call observation works and reports failures, and LM Studio is found on other ports.

Co-authored-by: Fábio Soares <fabiodev1123@gmail.com>
2026-11-03 21:16:34 +07:00
Matthias Bodsch 1d66a6ba4b Choose OpenCode models and thinking depth locally or over SSH (#413)
OpenCode can be chosen as a coding agent locally or over SSH, with the chat models its installation offers and the thinking depths each supports.
2026-11-03 19:53:16 +07:00
BFlatandmuraa-p e1d1974468 Keep a prompt's pictures when Up brings it back (#570)
Supersedes #216. A prompt brought back with Up keeps the pictures it was sent with. feed.json moves to version 3: a User item with pictures is saved as {text, pictures}, one without stays a plain string, so older files read as before. Picture paths are absolute, so they don't come back after the project is moved.

Co-authored-by: muraa-p <muraa-p@users.noreply.github.com>
2026-11-03 15:41:21 +07:00
frankyef 549ae5e29a Give runtime_captures_compare object schemas so Claude Code keeps every MCP tool (#490)
runtime_captures_compare's left and right parameters are declared as a string or an object instead of a boolean schema, which made Claude Code drop every tool from the MCP server; on the command line a JSON object passed to them stays an object.
2026-11-03 15:09:00 +07:00
Fábio Soares 6d90c65624 Draw with Windows' own shader compiler, and say how to start without the graphics card when the device is lost (#558)
Fixes #522. On Windows the app draws with the DX12 shader compiler that ships with Windows (FXC) unless WGPU_DX12_COMPILER says otherwise, and a lost graphics device says how to draw without the graphics card (CRAFT_ANYTHING_RENDERER=software).
2026-11-03 15:01:38 +07:00
NetterSilver a094ed23a9 Fail builds when required Windows resource embedding fails (#427)
The app build scripts stop the build when required Windows resources fail to embed (cargo::error instead of the ignored cargo:error). Fixes #264.
2026-11-02 23:40:59 +07:00
phatloi0010 0748ef1be7 Start DX12 only by default on Windows to avoid Intel Vulkan driver crashes (#414)
On Windows the app starts only DX12 by default, since starting Vulkan crashed on some Intel drivers before any window opened; WGPU_BACKEND still picks others. Fixes #394.
2026-11-02 23:13:10 +07:00
zeller-lorenz ea8f4b82b8 Claude's effort goes up to xhigh and max, chosen in Settings → AI and the CLI (R2.9) (#395)
Claude's effort goes up to xhigh and max. A model without a level gets the nearest one below it. The level is chosen in Settings → AI or with craft-anything-cli ai effort, and over SSH it reaches the other computer. R2.9.
2026-11-02 23:08:12 +07:00
NetterSilver 9896e18c28 Stop advising report --format in the CLI help (#419)
The CLI help no longer suggests report --format; it points to report --html. Fixes #254.
2026-11-02 22:28:24 +07:00
BFlat a9121b3cf3 The CLI's capabilities list keeps Clean room's refusal of target tools (#323)
`craft-anything-cli capabilities` lists each tool with `available`, `needs_target` and `reason`. To show target tools as usable before anything is open, it marked every target tool available and dropped its reason. That also covered tools Clean room refuses, so in Clean room `native_function_pseudocode` read as available with no reason, though the engine refuses it.

Only the "nothing is open yet" refusal is waived now. A target tool the mode refuses keeps `available: false` and its Clean room reason, with `needs_target: true` as before. In Deep mode nothing changes.

**Verified:** a new CLI test runs `capabilities` in Clean room (the tool is unavailable with a reason) and with `--deep` (available, no reason). `cargo test -p craft-anything-cli` and clippy pass.

Fixes #249
2026-11-02 14:59:34 +07:00
muraa-p f7261bb182 Between graphics devices of the same kind, the Windows app tries DX12 before Vulkan (#217)
The adapter ranking is (GL last, fastest device first, DX12 before Vulkan), so a GPU offered over both backends starts on DX12, out of reach of Vulkan overlays, while a real Vulkan GPU still beats Windows' software renderer.
2026-11-02 11:43:53 +07:00
BFlat 3f15887891 The Windows app no longer starts OpenGL, which crashed some Intel drivers before the window opened (#198)
eframe starts every wgpu backend before an adapter is picked, and starting GL loads the system's OpenGL driver; Intel's ig9icd64.dll crashed in it (0xc0000005), so the app vanished with no window or error box. Windows now starts the primary backends only (DX12 with WARP, Vulkan); WGPU_BACKEND still decides when set.

Fixes #196
2026-11-02 08:10:17 +07:00
BFlat d69d9e66a4 When the window can't open, the app says why instead of vanishing (#173)
When the window can't start, the app shows an error box with the reason, a hint to update the graphics driver and where desktop.log is, instead of exiting with nothing on screen. For #166, #104, #74 and #33.
2026-11-02 05:14:01 +07:00
BFlat e4d43abe14 Choose the model an AI uses in Settings → AI (#145)
Settings → AI shows each AI's model with Change…, listing the API's own models or Claude's models for Claude Code; craft-anything-cli ai model <name> [model] lists or sets it. Fixes #123 and #127.
2026-11-02 03:06:40 +07:00