Repository navigation
Releases
Releases · iliketocode2/OpenUI-Plugin
OWUI Agent 0.4.0
- Ready for the VS Code Marketplace and Open VSX: the listing has the new icon, a Preview badge, keywords and a screenshot, and the install steps in the README, the extension's page and the setup guide start with the stores (the
.vsixfrom GitHub Releases still works). Releases publish to both stores through trusted publishing once it is set up; seedocs/RELEASING.md. - The extension's page says that VS Code itself checks the Marketplace for extension updates, and the setup guide has a troubleshooting section (missing server address, company certificate authorities, proxies).
- Messages use American English ("canceled", "color").
write_fileandedit_filerefuse files that are not UTF-8 (for example Windows-1252 or UTF-16), instead of writing them back with every non-UTF-8 character replaced by�.read_filesays so when it reads such a file.write_filekeeps a file's byte order mark (BOM). Before, overwriting a file that had one removed it.- A change too large to diff quickly (thousands of changed lines) is summarized by its line counts instead of freezing VS Code while the diff is computed. Creating or emptying a large file still shows its lines.
owuiAgent.baseUrlno longer defaults tohttp://localhost:3000. That is also where most web dev servers run, so the API key could be sent to one of them. If you relied on the old default, set the URL in Settings. Until it is set, the chat view asks for it.- On Windows, network and device paths (
\\host\share,//host/share,\\?\UNC\…) are refused before they are touched. Windows would otherwise contact that host, before any approval, and the host name could carry data out. Long paths to local drives (\\?\C:\…) still work. - On Windows, path names that end in a dot or a space are refused. Windows strips them, so
.vscode./tasks.jsoncould get past the approval that.vscodeneeds. - Allow-listed commands no longer run without asking when they carry a flag that runs another program:
-exec,-toolexec,-vettooland-overlay(with one or two dashes), andgit grep -O/--open-files-in-pager. - AGENTS.md, project memory and workspace skills that are links to files outside the workspace are not loaded, so a cloned repository cannot put a file such as
~/.aws/credentialsinto the prompt. Links inside the workspace (AGENTS.md → CLAUDE.md) still work. - Commands on Windows search PATH only (
NoDefaultCurrentDirectoryInExePath), so an approvedgit statusunder cmd.exe cannot run agit.batthat the repository ships. - The extension is disabled in untrusted (Restricted Mode) and virtual workspaces, as declared in its manifest.
- The step limit and the command and request timeouts can only be set in user settings, like the other agent settings, so a workspace cannot raise them.
- New icon: a chat bubble with
>UI, for Open WebUI. It is used in the activity bar, on the README logo and, asmedia/icon.png, on the Marketplace and Open VSX listings.
OWUI Agent 0.3.0
- A task list the agent leaves unfinished at the end of a run is collapsed, dimmed and labelled "not updated by the agent", so an abandoned list no longer looks like current progress (small models often create a list and never update it). It shows normally again while the agent runs, and is saved with the session.
- A pause at the step limit shows as a notice with Continue rather than as a red error, and screen readers announce it as a pause, not an error.
npm run smoke:agentandnpm run bench:agentuse the extension's step limit (50, orOWUI_MAX_ITERATIONS) instead of the test harness's 20, which had cut off long benchmark runs.- Faster first replies on hybrid models such as Qwen 3.5 and 3.6, which can only resume from server checkpoints. The background warm-up pads its message so the server's checkpoint lands just before the end of the instructions; the first message then re-reads about 250 tokens instead of about 1,050 (measured on an integrated GPU: 1.2–1.5 s of prompt reading instead of 3.5 s; a first "hi" took 4 s end to end). Each new session is warmed up as well, because its first message needs the same checkpoint.
- The session's scratchpad path is sent as a note with the first message (
[Session scratchpad: …], again after compaction or a restore) instead of in the instructions (system prompt v0.5), so the instructions and tool definitions are identical across sessions and the server can reuse its prompt cache for them. run_commandandstart_processresults name the folder the command ran in ("Exit code 1. Ran in clock."), and their descriptions explain that relative paths resolve against it, so a wrong working folder is visible instead of looking like a broken script.npm run bench:agentrepeats live tasks (OWUI_RUNS,OWUI_TASKS) and prints the median, minimum and maximum of each metric. The live script has ahitask,OWUI_WARM=1to warm up first as the extension does, and atodotask that checks the task list is kept withupdatecalls.- The setup guide covers integrated GPUs (
OLLAMA_IGPU_ENABLE=1), keeping the model loaded (OLLAMA_KEEP_ALIVE) and why a very large context size slows everything down. write_file's description asks for several new files to be written in the same turn; small models follow hints in tool descriptions more reliably than in the instructions.npm run smoke:agenthas a multi-step task (OWUI_TASK=multistep: a small Node project with tests, no installs) and prints ametrics-json:line with turns, output tokens, tool calls, failed tools and the most tool calls in one turn.- A run summary after each run that changed files or ran commands, filled in by the extension from what it recorded rather than by the model: the files the agent added, modified or deleted (click to open), each command with its exit code, warnings found in command output (a command whose last run failed, npm audit findings, deprecated packages), and a note when nothing ran after the last file change. A small model's own report can leave such things out; this card cannot. A continued request keeps one summary. It is saved with the session and included in the Markdown export, and never sent to the model, so it costs no tokens.
- Planning on request. Asking for a plan in words ("go into planning mode and…") now gets a plan and a stop: the instructions tell the agent to only read and search, reply with a numbered plan and wait for approval before editing or running anything. Before, a small model often planned and then implemented anyway, or skipped the plan.
/plan <task>switches to Plan mode and sends the task (/planalone only switches), and Implement this plan, under the agent's finished answer in Plan mode, switches back to the mode you used before and asks the agent to carry the plan out. - Fewer output tokens per task, which is where a local model spends most of its time.
todo_writetakesupdate: [{ item, status }]to change statuses without resending the list (about 15 tokens instead of about 140), and its result numbers the items. The instructions (system prompt v0.4) ask the model to make independent tool calls in one turn, send task list updates along with real work, keep narration between tool calls to one sentence when there is something new, and scaffold new projects with the official command.npm run smoke:agentwithOWUI_TASK=scaffoldruns a multi-file task and prints model turns, output tokens and tool calls for comparing prompt versions. - Timings in the "OWUI Agent" output channel: each model turn shows when the first response arrived (for a local model, the time spent loading and reading the prompt) and the generation speed in tokens per second; each tool shows how long it ran and how long it waited for your approval; each run ends with a line splitting its time into model, tools and approval waits. Tool cards show the time for steps that took a second or more. The log names tools only, never their arguments.
- For models on your own server (served by Ollama, or marked local), the extension warms the model up in the background when it connects and whenever the model, context size, thinking setting or session changes. Ollama loads the model and reads the agent's instructions and tool definitions before you type, so the first reply no longer waits for either (on CPU, about a minute each). The warm-up generates one token, uses the same
num_ctxandthinkvalues as real requests, and is skipped while the agent runs and when the server is already warm for the same prompt. While it runs, the header shows "Loading model…" with the elapsed time and the message box says that a message sent now is answered once the model has loaded. A failed warm-up is not retried and shows as a quiet warning. Switching to a model that does not qualify cancels the wait.
OWUI Agent 0.2.0
Project:
- OWUI Agent is open source under the MIT license. Releases, with the
.vsixattached, are published on GitHub from version tags after CI passes on Windows, macOS and Linux, on both the oldest supported and the current VS Code. - The extension ID is now
iliketocode2.owui-agent(it waslocal.owui-agent). VS Code treats it as a new extension: uninstall the old one. Settings carry over, but set the API key again; conversation history from the old build is not shown. - The licenses of the bundled packages ship in
THIRD_PARTY_NOTICES.md.
Tool calling:
- The text-based tool protocol and the automatic fallback to it are gone, along with the per-model
toolModesetting. The agent uses native tool calling only; a model whose server rejects tools now gets a clear error instead of a silent switch. The fallback could run a tool call the model had only shown as an example inside a code fence, and an unrelated error that mentioned "tool calling" switched the rest of the run to text mode.
Fixes:
- Reasoning no longer appears twice when a server sends the same text as both
reasoning_contentandreasoning. - When a chat template puts
<think>in the prompt, so the model's reply isreasoning…</think>answer, the reasoning is shown as reasoning and no longer sent back as part of the answer. - Tool calls stay separate when a server gives every call the same index. Before, their arguments were joined into invalid JSON.
- Text added with Add Selection to Chat, and the history panel opened from its command, are no longer lost when the chat view was hidden and has to reload first.
- Changing a setting reconnects to Open WebUI only for the base URL and web access. Before, every change, including ticking Local, choosing a context size or Always allow, fetched the model list again, and so did every reopening of the chat view.
- Esc stops the agent from anywhere in the chat view, but no longer when it closes the history panel or is pressed in a text field.
- While the history panel is open, Esc closes it wherever focus is. Before, it closed the panel only when focus was inside it: right after opening, or after a click on blank space, Esc could stop the agent instead.
- The browser tool opens a new page after the app closes its window, and a new browser after the browser exits. Before, every later action failed with "Target page, context or browser has been closed".
- After a page fails to load (for example "Nothing is listening" because the dev server is not up yet), the next
navigatereturns only once the new page is really showing. Chrome commits its error page after reporting the failure; that late commit left the reset toabout:blankpending, so the next navigation could report success while the old blank page was still in place, and closing the page in that moment hung the browser. - The browser tool keeps Playwright's own list of disabled Chrome features. Chrome uses only the last
--disable-featuresit is given, so the extension's privacy list replaced Playwright's, and withAvoidUnnecessaryBeforeUnloadCheckSyncback on, closing a page could hang the browser (playwright#14047). A test now fails if an upgraded Playwright disables a feature the extension's list lacks. - The browser tool no longer waits forever for a browser that is slow to exit or stops responding. On a busy machine Chrome can take a minute or more to exit, and Playwright waits for that with no time limit. Opening a tab now gives up after 15 s and closing the browser after 10 s; the tool then starts a new browser with a profile folder of its own, and the old one exits in its own time.
- Rewind and review treat
src/A.tsandSRC/a.ts, or a path through a folder link, as one file. Before, a rewind could restore an intermediate version. - File names in the review list, approvals and the rewind confirmation stay relative to the workspace when it was opened through a link or a short name (macOS
/var→/private/var, WindowsC:\Users\RUNNER~1). Before, they showed as../../../private/var/…/file.txt. - The example palette validator prints its result when run from a folder reached through a link. Before, it printed nothing on macOS.
Settings:
- Five settings are gone. VS Code ignores them if they are still in your settings file.
owuiAgent.defaultModel: the model you pick is remembered; the first model is used until you pick one.owuiAgent.request.maxRetries: always 3.owuiAgent.scratchpad.retentionDays: always 7 days.owuiAgent.web.confirmedEngine: it only changed the wording of the web badge. When the engine cannot be read, check Admin Panel → Settings → Web Search yourself.owuiAgent.browser.allowExternalRequests: pages opened by the browser tool can no longer load internet resources at all.
Conversation:
- When you rewind only the code, or revert files during review, the model now learns about it at the start of your next message. Before, the extension added a made-up exchange to the conversation, including a reply the model never wrote ("Understood…", "Noted."). The note is saved with the session, so it also survives a reload.
Search:
grepno longer rewrites backslashes in the matched text. It turned every\in a result into/, so/\d+/came back as/d+/and the model copied the corrupted text into edits. ripgrep now prints paths with/itself.globandgrepuse only ripgrep, which ships with VS Code. The JavaScript fallback is gone: it never ran in VS Code, ignored.gitignore, used different regex syntax and searched every same-named file in a folder when asked for one. Without ripgrep both tools now say so.
Commands:
- Command output is decoded as a stream and cleaned a whole line at a time. Before, each chunk was cleaned on its own: on Windows a chunk ending between
\rand\nerased that whole line, and characters such aséor✓split across chunks became�. run_commandandstart_processshare one implementation in the process manager, so a fix to how commands start, stream, time out or stop applies to both. While a command runs, its card also shows the line being written (for example a progress percentage), and astart_processwait pattern can match a prompt that has no newline yet.
Context:
- Token estimates are corrected by the server's own count. After each response the session compares the reported prompt tokens with its character-based estimate and scales every later estimate (the pre-send check, compaction and summary chunks) by that ratio. The persisted per-model calibration it replaces is gone.
- Requests ask for usage (
stream_options.include_usage), so OpenAI-compatible backends behind Open WebUI report token counts too. - One output budget, about a fifth of the context window (11k characters at the 16k default), sizes every tool result.
read_filestops at a whole line when it is used up and says exactly where to continue; previously a long read lost its middle while the continuation hint pointed past it. Web search shares the budget between results, andweb_fetchreturns up to the budget instead of a fixed 20,000 characters.
Security:
- A dangling link in the workspace (one whose target does not exist yet) is classified by its target. Before, it counted as a workspace file, so in the auto-accept modes a write through it could create a file outside the workspace without asking.
- The permission-mode descriptions for the auto-accept modes now say that allow-listed commands such as
npm testrun code the agent can change without asking. - Same-origin redirects from Open WebUI are followed up to three times, as intended; the limit was off by one.
- The permission mode is stored per workspace, so an auto-accept mode chosen in a trusted repository no longer carries over to others. Every workspace starts in Ask before edits once after updating.
- Changes to
.owui/(project memory and skills, which later sessions load as instructions) always ask, as.git/and.vscode/already did.update_memorytherefore asks even in the auto-accept modes. - An approval card takes keyboard focus only when nothing else has it, so typing in the composer while the agent works can no longer approve a command by accident.
- Always allow is no longer offered for commands that run whatever follows them (
uv run,go run,cargo run,dotnet run,poetry run,uvx,pipx,cmake) or that change or delete files (rm,mv,cp,tee,Remove-Item,Set-Contentand similar), which would bypass the edit approval and checkpoints.pnpm runandyarn runare suggested with the script name, asnpm runalready was. - An allow-listed command asks when a path outside the workspace is glued to a flag (
-o/etc/x,-I../include). Before, only--flag=/pathand separate arguments were caught. write_filerefuses to overwrite a file that changed, or was created, while its approval was open, asedit_filealready did.run_commandreturns when the shell exits even if a process it started in the background (cmd &,start /b) still holds its output open; previously it waited for that process, forever for a server, and Stop could not end the wait. On macOS and Linux, stopping or timing out a command also stops the processes it left behind.
Reliability:
- Each tool result is added to the conversation as soon as the tool finishes, and an unexpected error (for example, saving an Always allow entry fails) now ends that tool with an error result instead of leaving the request unanswered and the next request malformed.
- Retries are limited to dropped or refused connections and HTTP 408, 429, 502, 503 and 504. HTTP 500, invalid responses and stalls are no longer retried, because each retry makes the server read the whole prompt again.
- Requests carry an output cap (
max_tokens, the same room the context check keeps free), so a model stuck in a loop stops in...