Repository navigation
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 instead of generating until the context is full. - New OWUI Agent output channel with connection results, per-request timings and token counts, retries and errors. Keys, prompts and file contents are never logged. Failed session saves are logged and retried.
Development:
-
The chat view has tests. Markdown rendering is checked against hostile model output with a whitelist of the tags, attributes and link schemes it may produce, and the built page runs in headless Chrome or Edge to check that such output never runs, that an approval does not take focus from the composer, and how Esc behaves.
-
Links in model output render only for web, mail, in-page and relative targets. A
command:or other scheme link now stays plain text; it could not run before either, because command links are disabled and clicks only open http and https. -
Browser tests run separately (
npm run test:browser), one file at a time with longer timeouts, sonpm teststays reliable while a local model is using the CPU. -
The CI workflow installs ripgrep (and fails instead of skipping the ripgrep tests without it), caches the VS Code test build, runs the browser tests and passes
--no-sandboxto VS Code on Linux runners.
Checkpoints:
- Rewind now uses only the per-file backups of the agent's own edits. The private Git snapshot of the whole workspace is gone, along with the
owuiAgent.checkpoints.enabledsetting and Git as a requirement; old snapshot repositories are deleted on startup. Rewind no longer undoes changes made by shell commands, and no longer runs three Git processes before every message. - Rewind and review no longer delete files over 20 MB or non-regular files that the agent touched; they are reported as not backed up and left alone.
- The rewind dialog marks files that changed after the agent's last edit, so you know your own later changes would be lost.
- Files that could not be restored are reported instead of being counted as restored.
Speed and context:
- The system prompt and tool list are fixed for the whole session, so Ollama can reuse its prompt cache between steps. The task list now comes back in the
todo_writeresult, the permission mode is noted at the start of your message when it changes, andAGENTS.md, memory and skills are read once per session (start a new session to pick up edits you make to them). num_ctxis sent with every request. Without a configured size the extension uses 16384 (capped at the model's maximum) instead of assuming 4096, which made the first message fail.- Fewer, shorter tool definitions: about 6,000 characters for the default 11 tools, down from about 10,000 for 18.
list_diris merged intoread_file(pass a directory), the three background-process tools are now oneprocesstool, andbrowser_interactis merged intobrowser.view_imageis only offered to vision models,load_skillonly when skills exist, and theshelloption only lists shells installed on this machine. - The browser tool is off by default.
- Plan mode no longer has a separate plan-approval card or
exit_plan_modetool. The agent stays read-only, replies with its plan, and you switch mode when you want it implemented. Plans in older saved sessions show as ordinary replies.
Security:
- The command allowlist and the model, shell, checkpoint, skills, web and browser settings are now read from user settings only; values in a workspace's
.vscode/settings.jsonare ignored. Always allow now saves to user settings. Entries you previously allowed in a workspace need to be added again. - Allow-listed commands no longer run without asking when they use redirection to a file, environment prefixes (other than
CI,NODE_ENVand similar), PowerShell or cmd expansion, control or non-ASCII characters, code-loading flags such as--script-shell, or paths outside the workspace.*can no longer stand for the program name. - Git history and configuration commands, app launchers and nested shells (
cmd /c,bash -c,powershell -EncodedCommand) are recognised however the program is spelled (git.exe,"git",/usr/bin/git,git --no-pager push). - Always allow no longer offers shells, interpreters, package installs or bare
git. edit_fileno longer quotes files outside the workspace or secrets files in its error messages, which reached the model before any approval.grepskips secrets files (.env, keys, credentials) in directory-wide searches, even when its glob names them.- NTFS alternate data stream paths (
file::$DATA) are rejected, and a link to a secrets file counts as a secrets file. - Changes to
.git/and.vscode/always ask, in every mode. npxno longer installs missing packages without asking (npm_config_yes=false).