[PR #1534] [MERGED] fix(tui): attachment highlighting issues in messages #9963

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1534
Author: @yihuikhuu
Created: 8/2/2025
Status: Merged
Merged: 8/2/2025
Merged by: @adamdotdevin

Base: devHead: fix-attachment-message-rendering


📝 Commits (2)

  • 5a36765 fix: text after attachment rendering without background
  • 93eb90a fix: use stored start/end indices for highlighting instead of regex

📊 Changes

1 file changed (+18 additions, -6 deletions)

View changed files

📝 packages/tui/internal/components/chat/message.go (+18 -6)

📄 Description

fixes #1532, fixes #1537, and fixes #1539

before:
image

after:
image


🔄 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/1534 **Author:** [@yihuikhuu](https://github.com/yihuikhuu) **Created:** 8/2/2025 **Status:** ✅ Merged **Merged:** 8/2/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `fix-attachment-message-rendering` --- ### 📝 Commits (2) - [`5a36765`](https://github.com/anomalyco/opencode/commit/5a3676527b4c528352e1185c0e258038fe4615d8) fix: text after attachment rendering without background - [`93eb90a`](https://github.com/anomalyco/opencode/commit/93eb90a8167794583d9cc9c4ad8e67ad26a9b506) fix: use stored start/end indices for highlighting instead of regex ### 📊 Changes **1 file changed** (+18 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/chat/message.go` (+18 -6) </details> ### 📄 Description fixes #1532, fixes #1537, and fixes #1539 before: <img width="654" height="50" alt="image" src="https://github.com/user-attachments/assets/0073b183-b462-459f-a58b-6c7e35b82557" /> after: <img width="631" height="45" alt="image" src="https://github.com/user-attachments/assets/6ec1285a-f419-42d8-84bc-23fcb69717bf" /> --- <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:28 -05:00
yindo closed this issue 2026-02-16 18:14:28 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9963