[PR #741] [CLOSED] fix: only check last message for agent call #9698

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/741
Author: @mhuggins7278
Created: 7/7/2025
Status: Closed

Base: devHead: copilot-agent-fixes


📝 Commits (3)

  • ec73a4c fix: only check last message for agent call in provider\n\nThis improves agent call detection by only checking the last message role, reducing false positives.\n\n🤖 Generated with opencode\n\nCo-Authored-By: opencode noreply@opencode.ai
  • 173cee1 fix: cleanup if check
  • 823cacc chore: remove comment

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 packages/opencode/src/provider/provider.ts (+3 -2)

📄 Description

This improves agent call detection by only checking the last message role, reducing false positives.

🤖 Generated with opencode

Co-Authored-By: opencode noreply@opencode.ai


🔄 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/741 **Author:** [@mhuggins7278](https://github.com/mhuggins7278) **Created:** 7/7/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `copilot-agent-fixes` --- ### 📝 Commits (3) - [`ec73a4c`](https://github.com/anomalyco/opencode/commit/ec73a4c5857a78fe43c89562cc85494723d9b05d) fix: only check last message for agent call in provider\n\nThis improves agent call detection by only checking the last message role, reducing false positives.\n\n🤖 Generated with [opencode](https://opencode.ai)\n\nCo-Authored-By: opencode <noreply@opencode.ai> - [`173cee1`](https://github.com/anomalyco/opencode/commit/173cee111bbb1ef180e784737253202d495ec88a) fix: cleanup if check - [`823cacc`](https://github.com/anomalyco/opencode/commit/823cacc78c4b664d61a51830640e8b0024819124) chore: remove comment ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/provider/provider.ts` (+3 -2) </details> ### 📄 Description This improves agent call detection by only checking the last message role, reducing false positives. 🤖 Generated with [opencode](https://opencode.ai) Co-Authored-By: opencode <noreply@opencode.ai> --- <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:01 -05:00
yindo closed this issue 2026-02-16 18:14:01 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9698