[PR #1425] [MERGED] fix: prevent read tool from opening binary files and corrupting session #9926

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1425
Author: @rekram1-node
Created: 7/30/2025
Status: Merged
Merged: 7/30/2025
Merged by: @adamdotdevin

Base: devHead: fix-binary-file-open


📝 Commits (1)

  • 3e5dac7 fix: prevent read tool from opening binary files and corrupting session

📊 Changes

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

View changed files

📝 packages/opencode/src/tool/read.ts (+13 -0)

📄 Description

fixes: #1424


🔄 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/1425 **Author:** [@rekram1-node](https://github.com/rekram1-node) **Created:** 7/30/2025 **Status:** ✅ Merged **Merged:** 7/30/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix-binary-file-open` --- ### 📝 Commits (1) - [`3e5dac7`](https://github.com/anomalyco/opencode/commit/3e5dac7eb45b5f8ba9d5ec3ef7c0249036a6606a) fix: prevent read tool from opening binary files and corrupting session ### 📊 Changes **1 file changed** (+13 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/tool/read.ts` (+13 -0) </details> ### 📄 Description fixes: #1424 --- <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:24 -05:00
yindo closed this issue 2026-02-16 18:14:24 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9926