The control server checks a request's token only after reading the whole
line, and clients send the token last, so a local peer without it could
make the app buffer a line of up to 256 MiB (512 MiB across connections).
Until a request on a connection has passed the token check, a request
line may be at most 64 KiB (control_token::MAX_UNAUTHENTICATED_LINE); a
longer one gets an error reply and the connection is closed. After that
the usual 256 MiB limit applies.
The MCP bridge sends a short ping with the token before a longer request
on a new connection, and sends the request only when the ping's reply
shows the token check passed; a refused or lost ping leaves the request
unsent and safe to retry. docs/control-protocol.md describes the limit.
Part of #1925 (F-12).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`(gcd -2147483648 0)` gave 2147483647 (the divisor clamped to the
largest integer), and `atoi` cast its digits with `as i32`, so
"99999999999" gave 1215752191 and "99999999999999999999" gave 0.
They now follow what the reader, `fix` and JSON inputs already do with
a whole number that doesn't fit 32 bits: it is a real. `gcd` gives
2147483648.0 for its one such result; `atoi` gives the real `atof`
reads from the digits, the number the reader makes of them. Results
that fit are the same integers as before. Integer arithmetic still
wraps.
Part of #1933.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
An expression typed at a command's prompt (CIRCLE, then `(while T)` as
the radius) is the prompt's answer, so it ran as a blocking run with the
500,000,000-step cap meant for programmatic calls: about 17 s on a dev
build with no frame drawn and Esc not handled.
It now runs through `lisp_eval_answer` with a 20,000,000-step cap, and
the callbacks it runs (`vl-sort`'s comparator and the other synchronous
callbacks) share what is left of that allowance instead of each taking
the 500,000,000-step callback allowance inside one step. The error says
the expression was stopped and to run long routines at Command:, where
they run a slice per frame and Esc stops them. Routines at Command:,
`c:` commands, APPLOAD, dropped files, the `lisp`/`appload` JSON calls
and startup files are unchanged.
Part of #1926 (item 3).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Supervised nightly switch-on, merged under Skylar's explicit Nightly 758 override after green CI, CodeRabbit on this head with no open threads, Sonar passing, and an independent adversarial review with no blockers.
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.
Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
PDFIMPORT (File > Import PDF...) adds a chosen page to the current drawing,
with page, scale, insertion point, password and content options. OPEN and
IMPORT take a PDF too; OPEN reads its first page into a new metric drawing,
and cadcraft-cli convert writes it to DXF or DWG.
The mapping is adapted from PR #2787 (MIT OR Apache-2.0) onto craft-pdf's
interpreter. Nonzero fills whose contours don't cross keep their loops and
arcs; crossing contours are split into triangles so the filled area matches.
Content the import leaves out or approximates is named in the read notes,
and a page with no vector content is refused instead of opening empty.
Conflicts in io/dxf_write/common.rs and sections.rs: the writer keeps the
used-handle set from #3304 and the paper-units marker from #3309 next to the
UCS tables and each layout's UCS.
Conflicts in cmd/image.rs (the unsaved-drawing hint and the read check both
stay) and lisp/value.rs (work counting and the cell check both stay). The
handle reservation that #3304 added walks record slices, as the rest of
the reader does here.
A font lookup that finds the folders or guards changed during its read now
searches again under the new ones (a few times at most) instead of returning a
font a new guard may refuse. The MCP read-only test works in a folder of its
own, removed also when it fails. docs/mcp.md says a refusal -WBLOCK reports at
its own prompt is only in output.
Adds the Dimension Style Manager: DIMSTYLE, D, DST, DDIM and both menu items open it, with the style list, a preview, Set Current, New, Modify, Override, Compare, Delete, Rename and the seven tabs. Also adds -DIMSTYLE and dimstyle.overrides; properties.describe and properties.set rows for text, mtext and dimensions in the Properties palette; and the dimension shortcut menu. Ported from #1042 (with #954, #994 and #1008), on top of this PR's dialog and its validation.
An open manager page is cancelled when another drawing becomes active (from #2322).
Fixes#1459, #1417, #1389.
Co-authored-by: eldrir <jamie@eldrir.com>
Co-authored-by: Slopapalooza <ai.slopapalooza@gmail.com>
Co-authored-by: Luminati <347279204+luminatiguy@users.noreply.github.com>
Signed-off-by: FredApps <153173854+FredApps@users.noreply.github.com>
- LISP: entlast sees a routine's own edits; entmod keeps INSERT attributes; HANDSEED is live
- lisp: drop a closed drawing's environment; keep entlast's order across property edits
- lisp: HANDSEED skips the handles the file's objects hold; hold the order in its cache test
- lisp: namedobjdict, dictsearch, dictnext, tblobjname; handent and entget of non-graphic objects (#1659, #1661)
- lisp: tblobjname matches names as the roles spell them; records cache held by a weak drawing reference (#1659)
- lisp: CodeRabbit follow-ups on non-graphic objects (#1659, #1661)
- lisp: test an imported DIMSTYLE's group-105 handle (#1659, #1661)
- docs: a DIMSTYLE's own name is in group 105 (#1659)
- engine: install AutoLISP's object records with their own setter (#1659, #1661)
Radhika and Mohan Raj reviewed CADCraft's Tamil interface in the running
app on 2026-11-14. ATTRIBUTION.md and docs/localization.md say so instead
of listing the newer rows as unreviewed.
Main gained the Polish catalog, Greek rows, and Additional Tools in place
of Express Tools.
- crates/fonts/build.rs, crates/fonts/src/craft_fonts.rs: keep main's
backticked names and the Tamil `Taml` web face.
- crates/ui-egui/src/i18n.rs: LANGUAGES holds 21 and Preference::ALL 22,
with both Polish and Tamil.
- ta.tsv: Express Tools becomes Additional Tools (கூடுதல் கருவிகள்), the
label every European catalog now translates.
The font search opened a candidate by name, so a link under a name the .shx filter missed (or a
Windows short name for one) was followed out of the roots. A drawing folder now carries a guard that
the search asks about every file before opening it; the roots supply it, and a link is judged by
where it leads. One font leading out no longer disables the others beside it. Documents that a
refusal inside command_line comes back in the reply's error field without isError, and adds doc
comments to the remaining functions the change touches.