[PR #184] [MERGED] feat: command results include the folder the command ran in #155

Closed
opened 2026-10-18 21:11:18 +00:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-terminal/pull/184
Author: @Classic298
Created: 10/3/2026
Status: ✅ Merged
Merged: 10/10/2026
Merged by: @tjbck

Base: main ← Head: feat/execute-reports-cwd


📝 Commits (1)

  • 15e1525 feat: command results include the folder the command ran in

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 open_terminal/main.py (+1 -0)

📄 Description

The result of a command now includes the folder it ran in. Open WebUI used to put the terminal's current folder into the instructions the model gets for running commands, which threw away the provider's prompt cache for the whole chat whenever the folder changed. With the folder in each result, Open WebUI can drop it from those instructions and the model still knows where it is.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/open-webui/open-terminal/pull/184 **Author:** [@Classic298](https://github.com/Classic298) **Created:** 10/3/2026 **Status:** ✅ Merged **Merged:** 10/10/2026 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `main` ← **Head:** `feat/execute-reports-cwd` --- ### 📝 Commits (1) - [`15e1525`](https://github.com/open-webui/open-terminal/commit/15e1525a114ca661a66a4e12e9b574b7e3209304) feat: command results include the folder the command ran in ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `open_terminal/main.py` (+1 -0) </details> ### 📄 Description The result of a command now includes the folder it ran in. Open WebUI used to put the terminal's current folder into the instructions the model gets for running commands, which threw away the provider's prompt cache for the whole chat whenever the folder changed. With the folder in each result, Open WebUI can drop it from those instructions and the model still knows where it is. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-18 21:11:18 +00:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
open-webui/open-terminal#155
No description provided.