This release fixes issues for SREs watching stability and regressions.
✓ No known CVEs patched in this version
Topics
+11 more
Summary
AI summaryFixed crashes on Sources & Query pages when text is entered and corrected PDF ingest to use the proper file contract.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| Bugfix | Medium |
Fixes Sources & Query pages crashing when textarea becomes non‑empty. Fixes Sources & Query pages crashing when textarea becomes non‑empty. Source: llm_adapter@2026-05-29 Confidence: high |
— |
| Bugfix | Medium |
Fixes PDF ingest failure with "Cannot read properties of undefined (reading '0')". Fixes PDF ingest failure with "Cannot read properties of undefined (reading '0')". Source: llm_adapter@2026-05-29 Confidence: high |
— |
Full changelog
Patch release. Two regressions surfaced after v1.2.0 hit the wild — both triggered by the model-slot refactor that v1.2.0 introduced for Ollama support.
Install
npm install -g @syasas/llm-wiki@latest
# or pin: npm install -g @syasas/[email protected]
If npm is unavailable: npm install -g https://github.com/ddsyasas/llm-wiki/releases/download/v1.2.1/syasas-llm-wiki-1.2.1.tgz.
What's fixed
Sources & Query pages crashed on type/paste — the moment the textarea became non-empty, the page died with "Application error: a client-side exception has occurred." Root cause: useWikiSettings typed defaultModels.<slot> as a plain string (the pre-1.2.0 shape), but 1.2.0 changed it to {provider, model}. TypeScript silently approved; at runtime CostPreview tried to render the object as a React child → unhandled exception. The hook's types now match reality and both callers extract .model before passing to CostPreview.
PDF ingest failed with "Cannot read properties of undefined (reading '0')" — PDFs were sent to OpenRouter as image_url data URLs. OpenRouter's actual PDF contract is type: "file" with file_data; the upstream Anthropic provider rejected the payload, OpenRouter returned 200 OK with {error} and no choices, and response.choices[0] then threw the cryptic message. PDFs now ride as file content parts (images still use image_url). As a defense in depth, the response-shape guard now surfaces the real provider error (including provider name + raw upstream message) instead of an unguarded array access.
Upgrading
If you installed v1.2.0 and hit either bug: npm install -g @syasas/llm-wiki@latest, then restart llm-wiki start. No data migration needed — both fixes are code-only.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About ddsyasas/llm-wiki
All releases →Beta — feedback welcome: [email protected]