#31590·open-webui

issue: Reloading the page or closing the terminal shell removes two tools and breaks the prompt cache

Author: Classic298Created Sep 29, 2026Updated Sep 30, 2026
Labelsbug

Before Submitting

  • I searched open and closed issues and discussions for an existing report.
  • I reproduced this bug on the latest release AND on the current dev branch, right before submitting this report. I did not just check an old version or rely on a check from days ago.
  • I understand that maintainers want a well-written issue before any code pull request.
  • This is not a security vulnerability.

Installation Method

Git Clone

Open WebUI Version

dev at 176d31d1d

Operating System

Debian 13 (Linux 6.12)

Browser

Chromium

Summary

The two tools that let the model read and type into the user's connected terminal shell are only offered while that shell is open in the browser. Reloading the page closes the shell, and closing the shell tab or losing its connection does the same, so the next request is sent without those two tools. The tool list sits at the very start of every request, so the provider's prompt cache misses from the first byte and the whole chat is processed again at full price, and the tools come back later once the shell is opened again. This came in with 54a7a7a7c and ca1eefe29 (v0.11.4). The tools already answer with a clear error when no shell is connected, so they can stay in the tool list for the whole chat.

Expected Behavior

The tools offered to the model do not change when the user reloads the page or closes the shell; if no shell is connected, calling them returns the existing "No connected user shell" result.

Actual Behavior

After a reload with the shell open, the next request no longer contains the "read recent output from the user's connected shell" and "send input to the user's shell" tools.

Steps to Reproduce

  1. Connect an Open Terminal to a chat, open its Shell tab and send a message.
  2. Reload the page and send another message.
  3. Compare the tools in the two requests the provider receives: the two user-shell tools are gone.

Logs, Screenshots, and Config

Default config with an Open Terminal connection.