7 Commits

Author SHA1 Message Date
RRFZ
4ffda7aa2e fix(archive): skip zip members that differ only in case on Windows and macOS
On a case-insensitive filesystem, week2/readme.md flattens onto the
README.md that week1/README.md already wrote in the same call. Since
members are created with "xb", that raised FileExistsError and the
upload router rejected the whole archive with a 400 naming the server
path. Before "xb", the later member silently replaced the earlier one.

Treat it like any other flattening collision: when the destination is
the same file as a member this call already wrote, skip it as a
duplicate. A pre-existing file with a case-only name match is still
refused, and case-sensitive filesystems keep both names as before.
2026-10-31 20:37:51 -04:00
Bingxi Zhao (Frank)
0fb3d74495 fix(archive): close partial files before cleanup on every failure 2026-10-31 17:17:26 +08:00
Bingxi Zhao (Frank)
77addee410 fix(archive): preserve pre-existing files on extraction failure 2026-10-31 16:40:20 +08:00
RRFZ
3378906b03 docs(knowledge): clarify which files a rejected zip removes
Only the files the call wrote are removed; files already in target_dir
are not touched.
2026-10-30 18:28:18 -04:00
RRFZ
5a344d3133 fix(knowledge): remove extracted members when a zip upload is rejected
safe_extract_zip writes members one by one into the KB raw/ directory.
When a later member tripped a zip-bomb guard or failed its CRC check, the
upload was rejected with HTTP 400 but every member written before it, and
for a CRC failure the corrupt member itself, stayed on disk.

Delete the files this call wrote before the error propagates, and drop a
member's partial output when it fails mid-read.
2026-10-30 16:10:42 -04:00
Bingxi Zhao (Frank)
02ba56793e chore: checkpoint backend stabilization workspace 2026-09-01 21:28:15 +08:00
Bingxi Zhao (Frank)
6c024857b7 release: v1.4.1 — security & stability patch
Security: lock down the TutorBot tool sandbox (shell exec is opt-in, all
filesystem/shell access confined to the bot workspace) and isolate per-user
resources, closing #518, #517, #516, #515, #514 and #506 (first hardened in
#507).

Bug fixes: chat input disabled after the first turn (#520), KB embedding
failure on long documents (#521 / #509), profile creation under Docker
(#512 / #513), Qwen reasoning models failing native tool calling (#527 / #528),
the GPT-5 init-wizard token parameter (#508), and oversized session-event
truncation (#524).

Features: HTTP/SSE API for multi-turn chat with a specific TutorBot (#511),
multimodal image fallback for vision-capable providers without a capability
entry, safe ZIP knowledge upload, and a /settings/network page with model
fetching (community PRs #522 and #523 reimplemented locally).

Also bumps __version__ to 1.4.1, adds the v1.4.1 release notes, updates the
README Releases section, and ships the Astro + Starlight docs site under site/.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 23:16:00 +08:00