Commit Graph
129 Commits
Author SHA1 Message Date
Thanh Nguyen 28cccdb998 Stop a build's check rounds from stalling silently (#1287)
A round of the builder's own checks now has a 30-minute limit, Pause is looked at before each check and stops a running build step, and every check is said as its own step ("Checking its work (2 of 4): …"), so a check that stalls names itself instead of holding the build for hours. The limit reaches the checks' own program runs, a step is refused before it starts once the round is past its limit or paused, a check that can't run is reported as not run with its reason, and a caught bug leaves the project at "Needs you" instead of "Checking". Real check rounds keep no limit. Addresses the stalls reported in #981 and #1198; a live Windows run is still to do.
2026-11-09 16:50:18 +08: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
Justin John 7bb67227c1 Ask OpenRouter again for an answer the key can afford when it refuses the full length (R5.5, #1213) (#1280)
With no `max_tokens`, OpenRouter holds a model's whole output limit against the key's credit, so a key that still had money was refused with 402 "can only afford N" before the model ran. On that refusal the request is now sent once more with the answer capped at what the key can afford, and the cap is kept for the conversation. A cap under 4,096 tokens, a repeat refusal and other providers stay a billing error as before.

Fixes #1213
2026-11-09 15:10:10 +08:00
Justin John 764aa37c3e Say Ollama's context is too small when it drops the request to fit, and don't retry it (R5.4, #1245) (#1276)
Ollama fits a prompt that is too long for its context by dropping the oldest messages; once the person's request is among them, a Qwen 3.8 model refuses what's left with 500 "no user query found in messages". That refusal is now reported as a context overflow, saying how to give the model a larger context or send less, and it is no longer retried, since the same request would be refused again. Other server errors are still retried.

Fixes #1245
2026-11-09 14:22:12 +08:00
Nathaniel Caldwell 22126eae77 Discover OpenCode's models with a private server (#1232)
OpenCode model discovery, which also runs before every OpenCode turn, now uses --standalone unless the person chose a --server. Plain opencode api started OpenCode's shared service, which resumes every unfinished session on the computer, in any project, and carries on with its commands.

Part of #1115.
2026-11-09 06:52:37 +08:00
Nathaniel Caldwell 309adc7fc2 Remove STATUS.md's doubled rows and opencode.md's doubled paragraph (#1226)
Five STATUS rows that merges had kept twice, with different updates in each copy, are now one row each, the most complete copy (OpenCode models and thinking now says once that SSH runs get the tools), and opencode.md loses its older doubled paragraph. A pitfall says how to merge a conflicting table row.
2026-11-09 04:41:22 +08:00
Nathaniel Caldwell 8826ce266f Read tool calls a model writes in Qwen's markup, and answer calls to tools it wasn't offered (R5.4) (#1173)
A reply in Qwen's <tool_call> markup that a server handed back as text is read as the calls it makes, with arguments typed from the tool's schema; a call to a tool the model wasn't offered gets a plain answer naming its tools, instead of ending the turn.
2026-11-09 01:57:47 +08:00
Nathaniel Caldwell f379a4ec3f Stop sending builders that can't see pictures to screenshots (R5.4) (#1159)
A builder in the API loop, which can't open pictures, is no longer sent to look at screenshots: every brief and check that pointed it at a picture tells it what to use instead (capture.json's layouts, the UI tree, or asking the person). Agent apps keep the picture wording.
2026-11-09 01:57:41 +08:00
Nathaniel Caldwell 4d95d6c1ba Stop the secrets check refusing the committer's own name (R5.2) (#1160)
Git's own author variables are no longer taken for secrets while the hook runs, so a claim that names its author passes; other AUTH-named variables are still checked, and a Unix home folder is listed once.
2026-11-09 01:44:12 +08:00
Roman Serikoff 26b68359cd Make the preview connection-limit test pass on macOS (R5.2) (#1207)
The test sets its read timeout while the connection is still open, as macOS refuses socket options on one it reset.
2026-11-09 01:39:34 +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
Tomáš Doubek 248b671ddd Capture requested macOS window screenshots (R5.6) (#945)
`runtime_ui_read` with `screenshot: true` returns one on-screen window of the pid as a PNG on macOS 14+, restricted by `window_id` when given. Missing permission, a missing window or a failed capture is a limitation with partial coverage, and no permission dialog opens.

Fixes #248
2026-11-07 16:12:35 +08:00
gtxy27 ab0d0cbda9 Send DeepSeek Harness tasks through stdin (#1067)
The preamble and task go on stdin instead of the command line, so a multi-line or long task no longer fails in the Windows desktop app's batch launcher.
2026-11-07 11:46:54 +08:00
Tomáš Doubek 74176f2cbe Test watched descendant shutdown on every system (#1030)
The test that a stopped launch takes its descendants with it uses a parent and child started without a shell, so it runs the same on Unix and Windows, and a failed start still stops what it launched.
2026-11-07 05:37:27 +08:00
Tanish Manku 9017d51c19 Choose a project's approvals from a menu under the prompt box or with /approvals (#1026)
An Approvals menu beside the builder's-questions switch offers Default, Allow, Ask or Refuse for each kind of action, and `/approvals <kind> <choice>` does the same from the prompt box without sending anything to the builder.
2026-11-07 05:10:13 +08:00
Tanish Manku 915fe6366b A builder's shell command is checked with its quotes joined, and naming the agent marker counts too (#1033)
The check for the project's records reads a command with quotes and escapes taken out, as the shell joins them, and any mention of `CRAFT_ANYTHING_AGENT` counts as a system change. docs/claude-code.md says these raise the bar and aren't a wall.
2026-11-07 05:01: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
Tomáš Doubek 05bd9e9e92 Resolve remote setup fixture utilities from the host path (#1020)
The remote setup test looks `mkdir`, `chmod` and `mv` up on the host instead of assuming `/bin`, which left dangling links where they live elsewhere.
2026-11-07 03:25:58 +08:00
+9 b186f01af1 Say how a batch of squash messages lost their co-authors, and credit them here (#1012)
The squash messages of #987, #990, #992, #993, #994, #995, #996, #997, #999, #1001, #1002, #1003 and #1004 carried their co-authors as plain text or lost them, so GitHub credited nobody. This commit names them.

Co-authored-by: Dev Maktuporia <devmaktuporia@gmail.com>
Co-authored-by: Diego Valadez <49816124+kuseidos@users.noreply.github.com>
Co-authored-by: Vincenzo Governali <vincigov99@gmail.com>
Co-authored-by: d41sys <t.d.le1@tue.nl>
Co-authored-by: monarchsofchaos004-gif <302326616+monarchsofchaos004-gif@users.noreply.github.com>
Co-authored-by: anoscetia <198573042+anoscetia@users.noreply.github.com>
Co-authored-by: 00xJ0 <56056764+00xJ0@users.noreply.github.com>
Co-authored-by: Sanket Dofe <dofesanket@gmail.com>
Co-authored-by: POJ <info@padmondjung.de>
Co-authored-by: Afloat <132809511+Afloat16@users.noreply.github.com>
Co-authored-by: SoldierPePe <ahmed.m.alnajjar1@gmail.com>
Co-authored-by: justinjohn0306 <justinjohn0306@gmail.com>
Co-authored-by: Tomáš Doubek <doubektomas16@gmail.com>
Co-authored-by: AlexJoaquimPereira <alexpereira1781@gmail.com>
Co-authored-by: FuryNocturn <28540819+FuryNocturn@users.noreply.github.com>
Co-authored-by: Aymen <jelassiaymen94@users.noreply.github.com>
Co-authored-by: jayzed80 <jzinkant@gmail.com>
Co-authored-by: Huyvux12 <Huyvux12@users.noreply.github.com>
2026-11-07 01:45:21 +08:00
BFlat 17e4200479 Build and run new projects through their toolchains (#1002)
New Python, Go and .NET projects build and launch through one catalogue shared by the build check, the screenshot and Play; a window is found through the program's descendants, then by name.
2026-11-07 01:21:01 +08:00
BFlat e0922f4ff4 Keep pasted picture names unique, create atomic-write temp files exclusively, and keep distinct replay samples (#995)
Pasted pictures get a counter in their name; atomic-write temp files are created exclusively and private from the start; stand-in replay samples keep differing response details.
2026-11-07 00:50:18 +08:00
BFlat 73fe0b661b Stop programs started alongside a console capture from holding it open (#997)
Program starts and console opens share one lock, and a timeout ends the whole process tree first.\n\nCo-authored-by: SoldierPePe <ahmed.m.alnajjar1@gmail.com>
2026-11-07 00:44:00 +08:00
SoldierPePe 826d3f640b Count cached tokens in usage.json (#958)
A turn's input now counts its cached tokens, so `usage.json` shows real totals.
2026-11-07 00:26:55 +08:00
Cleyson 6ec2888128 Find Node in nvm for Windows' folders and say when it's missing (#985)
On Windows with nvm and no version in use, npm shims such as `claude.cmd` find Node in nvm's version folders; if it's still missing the error names `node` and `nvm use`.
2026-11-07 00:08:09 +08:00
Justin John 8a587bc0b3 Start the Advanced console's prompt box at three lines (#979)
The console's prompt box starts tall enough to read, its panel can be dragged, and it no longer grows on its first frame. Closes #942.
2026-11-06 23:34:51 +08:00
Afloat ccfb5d48fc Stabilize loopback request and cancellation fixtures (#767)
Loopback test fixtures read complete request headers, negative probes use port zero, and the stand-in's shutdown test checks its answerer's lifetime rather than a port another test may reuse.
2026-11-06 23:16:46 +08:00
advokat11 92109f08f9 Give native OpenCode runs the Craft Anything tools and show their tool calls (#800)
A run with an explicit OpenCode model or thinking choice used to be refused. The adapter now writes our MCP server to a temp config file named by OPENCODE_CONFIG and runs `opencode run --standalone`, and reads OpenCode V2's tool call ids so tool calls reach the feed. Runs over SSH still have no Craft Anything tools.
2026-11-06 23:16:39 +08:00
Afloat cf414ff4b9 Apply replay body limits after redaction (R3.11) (#717)
A website stand-in charges its per-body and total byte limits on the text it actually keeps after redaction, and drops repeated samples before charging them, so polling no longer uses up the budget. A cached 304 whose body was left out stays unavailable (R3.11).
2026-11-04 20:32:58 +07:00
Rares Cristea 1eb4d0afe0 Read a plugin's whole tools/list line, however long (#797)
An MCP plugin whose `tools/list` answer is one JSON-RPC line over 1 MiB never loaded: the process reader cut long lines into fragments that never parsed, so the plugin timed out. The partial-line cap is now the 16 MiB the MCP client already allows, with a regression test for a multi-megabyte line.
2026-11-04 19:29:24 +07:00
BFlat 282a4bca5c Start a program that was just written, instead of failing with Text file busy (#787)
A program whose file is busy (just written, still open for writing in a child another thread is starting, so Linux says Text file busy) is tried again for about 0.3 s before its start fails. Fixes flaky test failures and a start just after an agent's CLI updates.
2026-11-04 11:32:54 +07:00
BFlatandFábio Soares 1fbff715b5 Stop a build whose checks never find a working build, across Try again (#782)
A build whose checks keep finding no working build stops after 10 in a row, across Try again presses, until a new request starts the count again (kept in craft.json as not_working_checks), and with app/ empty the builder is asked to write the project and show its build's output instead of fixing a build that doesn't exist (refs #736).

Supersedes #776.

Co-authored-by: Fábio Soares <fabiodev1123@gmail.com>
2026-11-04 10:58:49 +07:00
Fábio Soares 41d2175e25 Say when app/ is empty in the build check and the stop message (#771)
When app/ is empty, a failed build check and the stop after two unchanged turns say the builder hasn't written the project (refs #736).
2026-11-04 10:06:23 +07:00
Tanish Manku 8cf29dfa08 The keep-awake helper ends by itself once the app it serves is gone (#762)
The keep-awake helper ends by itself once the app it serves is gone (Windows checks the process every 30 s, macOS uses caffeinate -w), so closing the window during a build no longer keeps the computer awake.
2026-11-04 10:06:18 +07:00
FuryNocturnTV (Tare Fernandez) 0fc381c206 Count Antigravity's second folder in the Windows search path test (#770)
The Windows search-path test counts Antigravity's second folder, added by #748.
2026-11-04 10:06:02 +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
Fábio Soares 7b5ce085a3 Find Ghidra in the folders people unzip it to, and don't download it again (#745)
Ghidra is found where people unzip it (Program Files, the home folder, Downloads, Desktop, /Applications, Homebrew's cask and the usual Linux folders), by folder name a set number of levels down, and the guided install uses a copy already on the computer instead of downloading it again (fixes #740).
2026-11-04 08:08:26 +07:00
Aek 66bda5607d Keep Make off the folder picked on Work on my project, and don't read an address in its request as an original (#750)
Leaving "Work on my project" forgets a folder it would edit in place, and a folder dialog that ends after leaving that door is dropped, so a version made on Make can't edit the person's own project. An address in that door's request stays part of the request instead of becoming an original to recreate. Follow-up to #686's review.
2026-11-04 08:05:51 +07:00
Tanish Manku bb66fa576a The pictures UI test waits for the worker that checks their sizes (#743) 2026-11-03 16:59:48 -07:00
BFlat fb7ac863a3 Pick the coding agents' tab before testing Add another (#732)
Fixes main: the account folder test picks the coding agents' tab of what Detect found before pressing Add another, which #687 moved there.
2026-11-04 03:36:43 +07:00
BFlatandAfloat 636b3ff3d7 Bound CPIO checksum work across firmware probes (#683)
CRC cpio checksum work shares one byte allowance across a firmware scan and stops when the scan is cancelled; checksum fields must be eight hex digits, and skipped verification is reported (R3.12). Replays #676.

Co-authored-by: Afloat <132809511+Afloat16@users.noreply.github.com>
2026-11-04 00:33:08 +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
Firefly c7caf7de15 Offer OpenCode Go as a backend, with its session header (#672)
OpenCode Go can be added as a backend: offered when OPENCODEGO_API_KEY (or OPENCODE_GO_API_KEY) is set, on its documented base URL, with a stable per-installation x-opencode-session header kept in the AI settings. Not run against the service.
2026-11-03 23:57:07 +07:00
BFlatandsamurai b79fc506e2 Auto mode deletes inside projects whose path has capitals, and reads quoted paths with spaces whole (#682)
Auto mode's delete check compares paths as written and reads quoted or escaped paths with spaces as one argument, so it neither refuses deletes inside a project with capitals in its path nor lets a delete of the folder beside the project through. Replays #357.

Co-authored-by: samurai <samuraideng@gmail.com>
2026-11-03 23:24:57 +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
BFlat ba00f86f30 The command palette stays where it's scrolled (#658)
The command palette follows its selection only when the arrow keys or typing move it, so the wheel's scroll isn't pulled back to the top on the next frame (fixes #584).
2026-11-03 21:05:27 +07:00
BFlatandAfloat ebed13d0fc Keep ARM32 conditional call values, esbuild dependencies and window labels right (#656)
Replays #640–#642. Conditional A32 calls keep the skipped path's value, esbuild dependencies survive unrelated calls, and window comparison labels stay distinct without renumbering occurrences.

Co-authored-by: Afloat <132809511+Afloat16@users.noreply.github.com>
2026-11-03 20:49:11 +07:00
BFlatandFábio Soares 0e79ffaaa5 Remember "Always for this project" on a tool's consent card (#654)
"Always for this project" on a consent card is remembered in the project, and a tool allowed that way isn't asked about again (fixes #563). Replays #575.

Co-authored-by: Fábio Soares <fabiodev1123@gmail.com>
2026-11-03 20:40:55 +07:00
Fábio Soares 78e1f7dce0 Say where a program is when it is there but can't start, instead of "isn't installed" (#583)
A program that is on disk but can't start (an npm script whose node is missing) says where it is and what to check, instead of "isn't installed"; on Windows an .exe is started by the path it was found at (refs #152, #95).
2026-11-03 20:15:01 +07:00