mirror of
https://github.com/storytold/figcraft.git
synced 2026-10-31 05:46:46 -06:00
M8: an explicit variables file is refused past 256 MiB or when it isn't a regular file (part of #1114)
variable.import and the variables parameter of file.open and file.import read an explicit path with the uncapped reader, while the sibling variables.json next to a REST file already went through read_capped with MAX_VARIABLES_FILE. variables_param now uses that capped read for paths on native builds; the browser keeps its no-file-system error. Inline objects and JSON text, and access roots, are unchanged. The check reads the size before the file, so it does not bound a file that grows or is replaced in between. Primary file reads and image.place stay uncapped. variable.import's help and docs/mcp.md name the limit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Co-Authored-By: GPT-6.1 Sol <noreply@openai.com> Co-Authored-By: GPT-6 Astra <noreply@openai.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
GPT-6.1 Sol
parent
38a4feccc9
commit
9093afac10
+3
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user