[PR #1031] [MERGED] move spoof prompt to support anthropic with custom modes #9787

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1031
Author: @nrbrd
Created: 7/15/2025
Status: Merged
Merged: 7/15/2025
Merged by: @thdxr

Base: devHead: fix_anthropic_spoof


📝 Commits (1)

📊 Changes

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

View changed files

📝 packages/opencode/src/session/index.ts (+3 -1)
📝 packages/opencode/src/session/system.ts (+1 -2)

📄 Description

fixes https://github.com/sst/opencode/issues/921

found this while exploring the new mode capabilities. we need to inject the spoof prompt even when there is a custom mode prompt, so I moved the logic to session.ts instead of system.ts


🔄 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/1031 **Author:** [@nrbrd](https://github.com/nrbrd) **Created:** 7/15/2025 **Status:** ✅ Merged **Merged:** 7/15/2025 **Merged by:** [@thdxr](https://github.com/thdxr) **Base:** `dev` ← **Head:** `fix_anthropic_spoof` --- ### 📝 Commits (1) - [`5cb989f`](https://github.com/anomalyco/opencode/commit/5cb989f270672f4b2ac4381e2472b1f182af09e1) move spoof prompt ### 📊 Changes **2 files changed** (+4 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/index.ts` (+3 -1) 📝 `packages/opencode/src/session/system.ts` (+1 -2) </details> ### 📄 Description fixes https://github.com/sst/opencode/issues/921 found this while exploring the new mode capabilities. we need to inject the spoof prompt even when there is a custom mode prompt, so I moved the logic to session.ts instead of system.ts --- <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:10 -05:00
yindo closed this issue 2026-02-16 18:14:10 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9787