Repository navigation
Releases
Releases · mejistus/llm-for-zotero
v3.9.19
LLM-for-Zotero v3.9.19
Added
- OpenCode CLI is now a one-step provider preset. Add a provider in AI Providers and choose OpenCode CLI from the Provider dropdown. The card switches to the local CLI runtime, clears the API-key fields, and shows the fetchable model list in the Models section.
Changed
- The chat header now shows a short model name.
opencode-go/deepseek-v4.1-flashrenders asdeepseek-v4.1-flash; the full provider and model name stays in the button tooltip and the model menu. - Removed the redundant
opencode/prefix from OpenCode runtime display labels.
Verification
- OpenCode, provider, and model-label tests: 74 passing.
- Full unit suite: 9,910 passing, 1 pending. One unrelated 15s timeout passed when rerun alone.
npm run buildsucceeds; the XPI is attached below.
v3.9.18
LLM-for-Zotero v3.9.18
Fixed
-
OpenCode provider errors no longer collapse into “exited with code 1”. OpenCode reports quota, auth, and model-routing failures as JSON error events on stdout and exits with code 1 while leaving stderr empty. The plugin now shows the provider's actual message, for example:
Free usage limit reached. Connect a provider or subscribe to OpenCode Go to keep going, or switch models. (OpenCode exited with code 1) -
When no error event is present, the stderr tail is still shown, with the exit code kept as context.
Verification
- Reproduced with
opencode/glm-5.3-flash-free: stdout contained aprovider.free-limitevent, stderr was empty, exit code was 1. - OpenCode unit tests: 66 passing.
npm run buildsucceeds; the XPI is attached below.
v3.9.17
LLM-for-Zotero v3.9.17
Fixed
- The OpenCode provider test no longer hangs. Zotero's subprocess layer always hands the child process a stdin pipe, and OpenCode v2's
runcommand waits for stdin to close before starting the turn. The plugin now closes that pipe immediately after spawning, so the Test button finishes in seconds instead of sitting at “Testing…” until the 60-second timeout. - The same stdin handling is applied when fetching the model list (
opencode models). - Timeout errors now include the tail of the CLI's stderr so a real hang is easier to diagnose.
Verification
- Reproduced the hang with an open stdin pipe:
opencode runproduced no output for 75s. Closing stdin made the same command return a valid JSON event in roughly 7–11s on both OpenCode 2.0.32 and 2.1.2. - OpenCode unit tests: 61 passing.
npm run buildsucceeds; the XPI is attached below.
v3.9.16
LLM-for-Zotero v3.9.16
Fixed
- OpenCode CLI now works with OpenCode v2.
opencode runno longer receives the unsupported--pureand--dirflags. The per-conversation working directory is passed through Zotero's subprocessworkdirinstead, so the project config and Zotero MCP tools still load from the right directory.
Added
- Fetched OpenCode models are now visible as a list. Clicking Fetch OpenCode models renders a scrollable, clickable list under the button. Clicking an entry fills the model field, the current selection is highlighted, and the list survives preference re-renders. Manual model IDs still work.
Verification
- Reproduced the exact
Unrecognized flagfailure on OpenCode v2.1.2, then confirmed the corrected command completes a realopencode runturn and emits the JSON events the plugin parses. - OpenCode unit tests: 57 passing.
- Full unit suite: 9,898 passing, 1 pending. One unrelated 15s timeout passed when rerun alone.
npm run buildsucceeds; the XPI is attached below.
v3.9.15
LLM-for-Zotero v3.9.15
Added
- OpenCode is now visible in the Agent tab. The new OpenCode runtime row has:
- an enable switch that creates a default OpenCode provider when none exists;
- a Configure OpenCode provider button that jumps to the provider card in AI Providers;
- a live status/summary showing whether an OpenCode provider is configured.
OpenCode still keeps its own login/model configuration. Select the OpenCode model in the chat header and enable Agent mode to use it.
Fixed
- The Agent tab now lists four runtimes: Original Agent, Codex, Claude Code, and OpenCode.
Verification
- 9,898 unit tests pass (1 pending).
tsc --noEmitand the workflow tsconfig pass.- Plugin bundle rebuilt successfully.
v3.9.14
LLM-for-Zotero v3.9.14
Added
- Native OpenCode CLI agent. Add a provider and choose OpenCode CLI as the auth mode. The plugin runs
opencode run --format json, keeps OpenCode's own login/model configuration, and supplies Zotero library and paper tools through a scoped MCP server. - Model discovery. Fetch the models reported by
opencode modelsand pick one directly in the provider card.opencode-go/deepseek-v4.1-flashis the default. - Connection test. Test the selected CLI path and model without leaving Zotero.
- Per-conversation sessions. OpenCode session IDs are stored per Zotero conversation, so follow-up turns keep context. Editing, retrying, or clearing a conversation starts a fresh session.
Safety
- Zotero tools are read-only by default: shell commands, file edits, web fetches, and Zotero write tools are denied.
- Auto-approve tools (--auto) is opt-in per provider. It enables OpenCode auto-approval and Zotero write tools.
- Server-side MCP enforcement hides write tools when the scope is read-only, even if the client ignored its permission config.
- OpenCode runs with
--pure, so user-installed OpenCode plugins are not loaded for Zotero turns.
Fixed
- OpenCode no longer inherits auto-approve from another provider or from the global default.
- A stale OpenCode session is cleared and retried once without the session ID.
- Switching to a non-OpenCode model clears the OpenCode session so normal chat history is included when returning.
- Retry/edit paths now require Agent mode for OpenCode and no longer fall back to a plain HTTP request.
- Runtime correction messages and usage totals are forwarded correctly.
Known limitations
- OpenCode tool activity is not yet shown as Zotero trace rows.
- OpenCode owns its own approvals; use the per-provider auto-approve setting deliberately.
Verification
tsc --noEmitand the workflow tsconfig pass.- 9,897 unit tests pass (1 pending).
- Plugin bundle rebuilt successfully.
v3.9.13
LLM-for-Zotero v3.9.13
Fixed
- A newly added custom API provider no longer flips from Customized to a detected preset (for example OpenCode Zen) after the API URL is edited. Previously this also switched the protocol to OpenAI-compatible chat and broke
/v1/messagesendpoints after the first successful test. - When an API URL ends with an explicit endpoint suffix, the matching protocol is selected automatically:
/messages→ Anthropic Messages/chat/completions→ OpenAI-compatible Chat/responses→ Responses API:generateContent/:streamGenerateContent→ Gemini Native
Added
- URL template picker for Customized providers, including standard and Go-tier OpenCode Zen endpoints:
https://opencode.ai/zen/go/v1/messageshttps://opencode.ai/zen/go/v1https://opencode.ai/zen/v1/messageshttps://opencode.ai/zen/v1- and the default endpoints of the other supported providers.
- Chinese translations for the new template UI.
Verification
tsc --noEmitand the workflow tsconfig both pass.- Provider unit tests pass, including the OpenCode Go messages regression.
- Plugin bundle rebuilt successfully.
Release Manifest
This release hosts update.json and update-beta.json for LLM-for-Zotero. Do not delete or modify.