Commit Graph
1309 Commits
Author SHA1 Message Date
BFlat f7df485ffd Always send OpenCode Go its session header (#1227)
An OpenCode Go backend with no saved session id (added before there was one, or found from an environment key) gets one for the life of the process, so its requests always carry the x-opencode-session header OpenCode Go requires.

Addresses the 400 in #1225.
2026-11-09 04:41:07 +08:00
Alex Joaquim Pereira 0326b4de80 Refuse saved Claude session reuse of a Deep session in Clean room (R2.9) (#1224)
A --resume of the project's Deep session, or a --continue, saved in the Claude Code backend's extra arguments no longer bypasses the mode check: a Clean room build or question is refused before the agent starts, with how to fix it. Other agents, other sessions and Deep runs are unaffected.
2026-11-09 03:35:59 +08:00
RRFZ 0a8cc08891 Accept binary plist arrays that repeat one stored value (R3.12) (#1219)
A binary plist whose array or set names one stored object many times, as Python's plistlib writes equal values, is no longer refused; only its references must fit in the file. The node cap is checked before memory is reserved, and copied data and text share a byte budget, so repeats can't expand without bound.
2026-11-09 03:22:41 +08:00
Roman Serikoff f34724796b Don't continue a Deep chat's session in a Clean room shared chat (R2.9) (#1223)
When the shared investigation chat switches from Deep to Clean room, it starts a new agent session instead of resuming the Deep one, which may carry what Deep mode read; a context with no recorded mode counts as Deep.
2026-11-09 03:08:30 +08:00
Roman Serikoff e440907a93 Play Python packages and built Java jars (R2.7) (#1209)
Play, screenshots and self-tests start a Python project's one package with a __main__.py as python3 -m <name>, and a Maven or Gradle project's one runnable jar (its manifest names a Main-Class, read without loading the jar) with java -jar. Maven now builds with package, so the jar exists after our own build.
2026-11-09 03:03:45 +08:00
NetterSilver d68d5db74f Reject '+' sign in plist XML numeric character references (#1222)
An XML plist character reference must be plain decimal or hex digits, so &#+65; is left as written instead of being decoded as A.
2026-11-09 02:53:08 +08:00
BFlat bc9aca4a45 Refresh the README screenshots (#1218)
The four README pictures are re-rendered from the current app, showing what has landed since October, and the snapshot example gives every scene a made-up projects folder so no picture shows a real account's path.
2026-11-09 02:40:39 +08:00
BFlat c050cf4494 Keep the session-sweep test from failing when a sweep finds the record locked (#1221)
The test sweeps until the record is given up instead of a fixed number of times: a program another test starts briefly holds the record's lock, and that sweep rightly counts no try. It still checks that exactly TRIES deletes were asked for.
2026-11-09 02:39:32 +08:00
Alex Joaquim Pereira 5f839d8778 Cut truncated SQLite TEXT at a character boundary (R3.12) (#1220)
A TEXT value cut at the 4 KiB cap ends at a character boundary in UTF-8 and UTF-16, so its shown prefix gains no replacement character it did not have; the value is still marked as cut.
2026-11-09 02:35:24 +08:00
Alex Joaquim Pereira 0e7e43f418 Record a builder session's mode so Clean room never resumes a Deep one (R2.9) (#1202)
craft.json keeps the mode a builder's saved session ran in (version 4, with a migration that counts an older saved session as Deep). A build or question resumes a session only in the mode it was saved in, so Clean room never continues one that may have read inside the original, and a Deep session is kept for a later Deep run.
2026-11-09 02:11:26 +08:00
Reio Kruusement 40feee0d11 Add Estonian UI translations (#1205)
Estonian (et) joins the app's languages with a complete catalogue, in Settings and the coverage check, and requests in Estonian keep their project kind: a game (mäng) or a website (veebileht, koduleht, veebisait), with the head of the main clause deciding when both are named.
2026-11-09 02:02:56 +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
BFlatandAfloat cb0bb9d8fa Bound format readers and resolve launch paths (#1217)
Source-map data URLs ignore their fragment, ZIP directories are told by their attributes, rejected ASAR names count toward the limit, a HAR with a UTF-8 BOM parses, .NET bundle members stay before the manifest, Play starts a Python project's one installed console script, and Godot and Electron get an absolute project path.

Supersedes #1140, #1141, #1142, #1143, #1144, #1145 and #1146.

Co-authored-by: Afloat <ShuffleMonkey@163.com>
2026-11-09 01:55:01 +08:00
FuryNocturnTV (Tare Fernandez) 51e613240f Refit to a server's context window once per backend, only when room was made (#1170)
Each backend in a fallback chain gets its own refit after its server refuses a request for its window, and a refused request is asked again only once the conversation was made shorter.
2026-11-09 01:53:05 +08:00
Books 17048341ff Keep one line ending on a CRLF YAML line cut off after its CR (#1190)
Setup keeps each YAML line's own ending, gives a last line cut off after its CR its LF back instead of a second ending, and a second run leaves the file unchanged.

Fixes #1168
2026-11-09 01:52:59 +08:00
Books 9d25ab431a Register a plain executable path Hermes can start on Windows (#1189)
Setup drops the \\?\ prefix Windows adds to the CLI's path when the plain path names the same file, so Hermes gets a command it can start.

Fixes #1167
2026-11-09 01:52:54 +08:00
Roman Serikoff 2d5c0cc15a Check a remote host's tool server before a build, and pin what it is sent (R2.8) (#1211)
A remote Claude Code or Codex build checks that craft-anything-cli is on the host before it starts, as OpenCode's already did, and a test pins that a remote tool server is only sent flags every release knows.
2026-11-09 01:47:15 +08:00
Roman Serikoff 1a202ceade Read Aider's project-folder settings before a run (R2.2) (#1210)
The check before an Aider run reads the settings Aider itself reads: .env and .aider.conf.yml in the folder it runs in and at the top of its git repository, an --env-file, then the home folder, so a project that names its model or key is no longer refused.
2026-11-09 01:47:09 +08:00
FuryNocturnTV (Tare Fernandez) 287ac6bdbc Keep a claude wrapper saved by name, and treat a link to the Claude desktop app as the app (#1172)
A claude wrapper saved by name (claude.cmd) is kept when it starts Claude Code, and a link that leads to the Claude desktop app is passed over like the app itself.
2026-11-09 01:44:24 +08:00
FuryNocturnTV (Tare Fernandez) d03c99702a Keep a native call the text doesn't name when switching to the text protocol (#1171)
When an API conversation switches to the text tool protocol, each earlier native call the text does not already name is written out, so no tool result arrives without its call.
2026-11-09 01:44:18 +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
BFlatandNetterSilver 9fdd4afaf4 Fix JS string and tokenizer edge cases (#1216)
Whitespace no longer counts against the tokenizer's limit, a CRLF line continuation stays in its string, and unescape handles CR and CRLF continuations, \b, \f and \v, and \u surrogate pairs.

Supersedes #1197, #1194, #1188, #1154 and #1148.

Co-authored-by: NetterSilver <133535268+Silvertree2010@users.noreply.github.com>
2026-11-09 01:43:23 +08:00
kuseidos 9470cdc024 Read the Windows system code, so a busy folder really waits (#1158)
Moving a Ghidra project folder that Windows reports as shared or locked (codes 32 and 33) now waits and tries again, as a permission error already did.
2026-11-09 01:39:40 +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
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
Justin John 9edd4838a7 Say to try again later when an engine download's server is busy (#1203)
A download that gets 429 or a 5xx says the server is busy and to try again in a few minutes; a 404 or 410 asks for a report.

Fixes #1193
2026-11-09 01:28:07 +08:00
Alex Joaquim Pereira 76f62972bc Cut adb and Frida parser lines at a UTF-8 boundary (R3.3) (#1215)
A long adb or Frida output line is cut at the last character boundary within the cap, so a multi-byte character at the cut no longer keeps the whole line.
2026-11-09 01:28:00 +08:00
NetterSilver 247c262e4f Skip WASM tools with invalid ids instead of panicking on truncate (#1174)
A WASM tool whose id would pass 64 bytes is skipped as invalid, instead of being cut, which could panic inside a multi-byte name.
2026-11-09 01:18:38 +08:00
NetterSilver 85c3f275c1 Reject non-hex characters in static server percent escapes (#1186)
A percent escape with a sign or another non-hex character (%+4) is refused instead of being decoded.
2026-11-09 01:18:32 +08:00
NetterSilver 12e573c900 Fix ellipsis added to short multibyte script check messages (#1199)
A script check message is cut by characters, not bytes, so short text in multi-byte characters keeps no stray ellipsis.
2026-11-09 01:18:26 +08:00
NetterSilver 139103da1f Decode GDB/MI octal escapes as UTF-8 bytes in unquote (#1200)
Octal escapes in GDB/MI strings are read as bytes and then decoded as UTF-8, so \303\251 reads as é instead of two wrong characters.
2026-11-09 01:18:20 +08:00
NetterSilver 0295490948 Fix SQLite CREATE TABLE parser treating CRLF constraints as columns (#1212)
A table constraint on its own line after a CRLF is no longer read as a column: any whitespace ends its first word.
2026-11-09 01:18:15 +08:00
NetterSilver e49e47e601 Keep the file's line ending when JSONC set() inserts a member (#1214)
A value set in a CRLF file is written with CRLF too, so the file never ends up with mixed line endings.
2026-11-09 01:18:09 +08:00
Agapenor 56aa31976b Say in a build's feed when it runs another program than the saved one (R2.2) (#1150)
* Claim the build's note about a replaced program (#721)

* Say in a build's feed when it runs another program than the saved one (#721)

* Leave a bare program name found as the same agent out of the note

* Say which program to choose when a build runs another one
2026-11-08 01:33:00 +01:00
BFlatandHasnain 1f8508a104 Add a non-interactive Aider adapter (R2.2) (#1104)
Aider gets its task with --message and flags that stop it asking, updating, editing .gitignore or opening a page; a chat outside a build gets --dry-run. A run is refused before launch when no model or key is set up or an OpenRouter model has no OpenRouter key (#72), and Clean room is refused because Aider's reads can't be checked.

Supersedes #1061.

Co-authored-by: Hasnain <161151300+hasnain607@users.noreply.github.com>
2026-11-07 21:46:03 +08:00
BFlat c526bf3593 Start an API build from rebuild_start without waiting on the session it holds (#1103)
rebuild_start on an API backend no longer deadlocks over MCP: the run passes its mode to start_builder instead of start_builder locking the session the tool call already holds.
2026-11-07 21:44:47 +08:00
BFlat 8313a2a553 Add Anthropic's own address as an Anthropic backend (#1101)
Adding https://api.anthropic.com/v1 by its address no longer fails with a missing anthropic-version header: it lists models and is added as an Anthropic backend.
2026-11-07 21:33:18 +08:00
Yash Patadiya f81054c4f4 Record Windows 11 verification for stopped watched programs (R5.2) (#1099)
The roadmap line for a watched program that is stopped is ticked: on Windows 11 nothing it started is left running.
2026-11-07 20:22:22 +08:00
BFlat 935b646f3c Let an API backend's timeout_secs give a slow model longer to answer (#1098)
An API backend's streamed answer is bounded by the AI's timeout_secs (one hour when unset), so a slow local model can finish a long answer, and a stream that runs out of time says to set it.
2026-11-07 19:13:53 +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
NetterSilver f672d50f01 Keep adb's clipped text within its byte limit on multi-byte text (#1095)
clip() now cuts at the last character boundary at or below the limit, so a character that straddles it is dropped instead of going over.
2026-11-07 18:14:27 +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
Afloat 464935ef96 Launch Go apps with a single command package (R2.7) (#1092)
A Go project with no root main.go and exactly one cmd/<name>/main.go starts with go run ./cmd/<name> for Play, screenshots and self-tests.
2026-11-07 17:24:51 +08:00
Afloat d8087e70fc Read DNS service records and retain questionless address announcements (R3.12) (#1090)
SRV, SOA and CAA answers show their fields, address records of the wrong size are incomplete, a truncated reply says so, and unsolicited mDNS announcements keep the address under the record name.
2026-11-07 17:24:44 +08:00
Afloat 23000e314a Keep system tools and media players on the app build path (R2.7) (#1093)
Requests like "a low level disk tool", "an MPEG 2 player" and "a single player app for movies" stay apps, while other game cues in the request still win.
2026-11-07 16:42:22 +08:00
Afloat aed326ca6d Bound malformed pcapng records and preserve capture timestamp precision (R3.12) (#1091)
Rejected packet blocks share the packet budget and are reported once per reason, a timestamp fraction outside its second is ignored, and sub-nanosecond resolutions keep the interface offset.
2026-11-07 16:42:17 +08:00
Afloat 6cbc66984c Report malformed ClientHello offers and retain unknown TLS versions (R3.12) (#1089)
A ClientHello with impossible vector lengths, repeated extensions or repeated host names is marked partial, and only registered GREASE values are dropped.
2026-11-07 16:40:09 +08:00
Afloat 2a5845c64b Export Unity floating-point textures as PNG (R3.9) (#1088)
RHalf, RGHalf, RGBAHalf, RFloat, RGFloat and RGBAFloat textures now decode: RGB is treated as linear light and clipped, and NaN stays dark.
2026-11-07 16:36:59 +08:00
Tomáš Doubek c7bb13bd1d Bound combined macOS UI observation output (R5.6) (#1087)
A tree and screenshot that would pass the helper's 16 MiB output cap now fit: the tree is cut to a prefix and reported as truncated, keeping the image, and an image that cannot fit alone becomes a screenshot limitation.
2026-11-07 16:32:52 +08:00