[PR #138] Contract model-visible terminal tools #133

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

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-terminal/pull/138
Author: @liusihang
Created: 6/17/2026
Status: 🔄 Open

Base: main ← Head: codex/model-visible-terminal-tools


📝 Commits (2)

  • 22abc1b Contract model-visible terminal tools
  • e99fce1 Clarify agent-facing tool descriptions

📊 Changes

4 files changed (+1055 additions, -20 deletions)

View changed files

📝 Dockerfile (+1 -1)
📝 open_terminal/main.py (+487 -19)
➕ open_terminal/utils/apply_patch.py (+266 -0)
➕ tests/test_tool_contract.py (+301 -0)

📄 Description

Summary

  • Contract model-visible OpenAPI tools to core terminal/file/process primitives while hiding convenience endpoints from schema.
  • Add get_environment, guarded write_file overwrite semantics, and apply_patch with dry-run/conflict reporting.
  • Document response schemas/examples and include ripgrep in the full runtime image.

Tests

  • uv run --dev pytest tests/test_tool_contract.py
  • uv run --dev python -m compileall open_terminal tests

🔄 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/138 **Author:** [@liusihang](https://github.com/liusihang) **Created:** 6/17/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `codex/model-visible-terminal-tools` --- ### 📝 Commits (2) - [`22abc1b`](https://github.com/open-webui/open-terminal/commit/22abc1bbc61bc543116bdbd62a1db7213544213d) Contract model-visible terminal tools - [`e99fce1`](https://github.com/open-webui/open-terminal/commit/e99fce1ce9186eff249ef1a226814cabd0d572c9) Clarify agent-facing tool descriptions ### 📊 Changes **4 files changed** (+1055 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+1 -1) 📝 `open_terminal/main.py` (+487 -19) ➕ `open_terminal/utils/apply_patch.py` (+266 -0) ➕ `tests/test_tool_contract.py` (+301 -0) </details> ### 📄 Description ## Summary - Contract model-visible OpenAPI tools to core terminal/file/process primitives while hiding convenience endpoints from schema. - Add get_environment, guarded write_file overwrite semantics, and apply_patch with dry-run/conflict reporting. - Document response schemas/examples and include ripgrep in the full runtime image. ## Tests - uv run --dev pytest tests/test_tool_contract.py - uv run --dev python -m compileall open_terminal tests --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#133
No description provided.