[PR #1806] [CLOSED] Allow tool use right after a rejection. #10071

Closed
opened 2026-02-16 18:14:39 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1806
Author: @AYM1607
Created: 8/11/2025
Status: Closed

Base: devHead: tool-rejection-prompt


📝 Commits (2)

  • 9f211c8 Mover permission system prompt to the environment.
  • bffa914 Delete leftover codex prompt from merge.

📊 Changes

2 files changed (+3 additions, -0 deletions)

View changed files

packages/opencode/src/session/prompt/permissions.txt (+1 -0)
📝 packages/opencode/src/session/system.ts (+2 -0)

📄 Description

Add disclaimer about tool use after rejection to the system prompt, makes it so the model knows it's okay to use a tool even right after it was rejected.


🔄 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/anomalyco/opencode/pull/1806 **Author:** [@AYM1607](https://github.com/AYM1607) **Created:** 8/11/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `tool-rejection-prompt` --- ### 📝 Commits (2) - [`9f211c8`](https://github.com/anomalyco/opencode/commit/9f211c888454ef42a49b9b5235fc4f27576a1c73) Mover permission system prompt to the environment. - [`bffa914`](https://github.com/anomalyco/opencode/commit/bffa914b78ef0da351383eb8611386d4d8dd5eaa) Delete leftover codex prompt from merge. ### 📊 Changes **2 files changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `packages/opencode/src/session/prompt/permissions.txt` (+1 -0) 📝 `packages/opencode/src/session/system.ts` (+2 -0) </details> ### 📄 Description Add disclaimer about tool use after rejection to the system prompt, makes it so the model knows it's okay to use a tool even right after it was rejected. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:39 -05:00
yindo closed this issue 2026-02-16 18:14:39 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10071