Greptile caught that the bulk encoding pass matched the 'open(' substring
inside the method names test_cache_busted_on_form_open(self) and
test_cache_not_guarded_by_if_on_open(self), injecting encoding="utf-8" into
their signatures. Harmless (pytest ignores the extra default param, so they
passed) but wrong. Restore the original (self) signatures. Verified this was
the only over-match in the commit; all other insertions are clean file reads.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Greptile caught two example values that disagreed with the code defaults in
api/streaming.py: PREFILL_MESSAGES_SCRIPT_TIMEOUT is 5s (not 10) and
PREFILL_CONTEXT_MAX_CHARS is 12000 (not 20000). An operator uncommenting
either line verbatim would have silently diverged from the real default.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Completes it, ja, ru, es, de, pt, ko, tr (zh, zh-Hant, fr, pl, vi already
had none). Terminology and loanword conventions matched to each locale
block's existing neighbors; every placeholder, key name, and the en source
block left untouched (diff is exactly 664 balanced value replacements).
node --check passes; the locale-parity suite is green.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
34 test files read static/*.js via read_text()/open() without an encoding,
so Python's cp1252 default on Windows choked on non-Latin1 bytes and errored
at collection (Ubuntu CI defaults to utf-8, so it never saw this). Add
explicit encoding="utf-8" to those reads — purely mechanical, no assertion
changes.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>