Commit Graph
1303 Commits
Author SHA1 Message Date
Afloat d85f75b2de Reject malformed tar sizes before placing the next member (R3.12) (#1135) (#1135)
A GNU base-256 number with its sign bit set is negative, which an unsigned tar header field such as a member's size can't be; it is now rejected instead of being read as a huge size.
2026-11-09 10:35:07 +08:00
RRFZ 6563f92c20 Keep PE version strings whose value is empty (R3.12) (#1252) (#1252)
Resource compilers write an empty version string with no value at all, and the PE reader dropped those. Strings such as `OleSelfRegister`, whose presence is what matters, are now kept with an empty value.
2026-11-09 10:32:39 +08:00
RRFZ 60c638526a Read quoted SQLite column names whole (R3.12) (#1251) (#1251)
A doubled quote inside a quoted column name now stands for one quote instead of ending the name, and single-quoted names, which SQLite accepts, lose their quotes. Keys that name such columns find them, so rowid aliases and WITHOUT ROWID order hold.
2026-11-09 10:32:33 +08:00
Afloat 9d3a288083 Report invalid safetensors metadata and payload layouts (R3.12) (#1257) (#1257)
The safetensors reader checks tensor sizes for the 4-, 6- and 8-bit float types too, refuses a header over 100 MB, warns about metadata values that aren't strings instead of showing them as JSON, shortens long architecture and name fields, and reports tensor data ranges that overlap, leave gaps or leave bytes unclaimed at the end.
2026-11-09 10:30:56 +08:00
Afloat 0c386e8ac8 Read binary plist objects only from supported markers (R3.12) (#1254) (#1254)
The binary plist reader accepts the `bplist0x` versions and reports others as unsupported. An unknown simple marker, a date marker of the wrong width or a dictionary key that isn't a string is now an error, instead of being shown as null or as an invented key.
2026-11-09 10:30:46 +08:00
RRFZ 22511a212a Show added columns' defaults in older WITHOUT ROWID rows (R3.12) (#1250) (#1250)
A WITHOUT ROWID row stored before ALTER TABLE ADD COLUMN has fewer fields than the table has columns. Those rows now show the added columns' DEFAULT values, as rowid tables already did, instead of NULL.
2026-11-09 10:26:20 +08:00
RRFZ 534b287732 Keep SQL comments out of SQLite column definitions (R3.12) (#1249) (#1249)
A comma or quote inside a comment in a CREATE TABLE no longer splits or swallows column definitions, a comment before or right after a column name isn't read as part of it, and a comment inside a definition stays out of its type, so INTEGER PRIMARY KEY still marks the rowid alias.
2026-11-09 10:24:10 +08:00
Afloat b9a352542b Keep filesystem and archive recovery within recorded boundaries (R3.12) (#1246) (#1246)
JFFS2 extents and nodes, ROMFS payloads and header pointers, cramfs names, SquashFS metadata tables and file blocks, and tar PAX records now stay inside the sizes their images record. Out-of-bounds or truncated parts are reported as warnings and mark the recovery incomplete instead of being read past or silently dropped. PAX records need their terminator and a bounded name, and split octal fields in tar headers are rejected.
2026-11-09 10:03:53 +08:00
NetterSilver bc50c085b6 Promote plain_count to the next unit when rounding reaches 1000 (#1244)
A model size that rounds up to 1000.0 of a unit is shown as 1.0 of the next, so 999,999 reads "1.0 million" and not "1000.0 thousand".
2026-11-09 09:04:29 +08:00
JG Tromp b78586dc75 Start a .cmd that only runs one .exe by its full path as that .exe (#1238)
On Windows, a .cmd wrapper whose only command is one quoted, absolute .exe path followed by %* is started as that .exe, so its arguments skip cmd.exe (no % expansion, no 8191-character cap, line breaks allowed). Any other wrapper still runs as it is. The test that starts the .exe is Windows-only and isn't run by the Linux gate.

Fixes #1237
2026-11-09 08:25:45 +08:00
BFlat c5ce7c0a8b Let an AI's timeout_secs cover the wait for its answer to start (#1240)
An API backend's timeout_secs now bounds the wait for its answer to start as well as the whole answer, so a request queued behind another tool's on a shared Ollama isn't cut off at five minutes; unset keeps five minutes to start and an hour in all, and a wait that runs out says to set it.

Fixes #1239
2026-11-09 08:12:10 +08:00
JG Tromp 154a091184 Wrap a found AI's description beside its Add button (#1235)
In Settings → AI, a card for an AI found on this computer lays its buttons out first and wraps the name and reason in the width they leave, so a long reason no longer runs under the Add button.
2026-11-09 08:06:14 +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
Cr 02e51b0243 Keep SQLite values on their columns when a table has VIRTUAL generated columns (R3.12) (#1231)
A VIRTUAL generated column stores no field in a row, so stored values no longer shift one column left: such a column is shown as not read, with a note, in rowid and WITHOUT ROWID tables alike, and a rowid alias after it is filled again.
2026-11-09 06:16:35 +08:00
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
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