[PR #1029] [MERGED] Fix: Add escape sequence for @ symbols to prevent send blocking #9788

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/1029
Author: @jhrudden
Created: 7/15/2025
Status: Merged
Merged: 7/16/2025
Merged by: @adamdotdevin

Base: devHead: feat/escape-at-symbol-file-linking


📝 Commits (1)

  • 73f21d4 fix: handle both space literals

📊 Changes

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

View changed files

📝 packages/tui/internal/components/dialog/complete.go (+1 -1)

📄 Description

Users cannot send messages containing @ symbols when no matching file exists, effectively blocking input (e.g., explain @media queries in CSS or find all @Component decorators cannot be sent).

Solution

  • \@ now renders as literal @
  • Fixes send blocking when @ symbols don't match files
  • Existing file linking with @ unchanged

Usage

  • @filename - links to file (existing)
  • \@username - literal @ symbol, allows sending

NOTE: Escaped @ symbols are rendered without prepended

Example

Screenshot 2025-07-15 at 2 07 57 PM

🔄 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/1029 **Author:** [@jhrudden](https://github.com/jhrudden) **Created:** 7/15/2025 **Status:** ✅ Merged **Merged:** 7/16/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `feat/escape-at-symbol-file-linking` --- ### 📝 Commits (1) - [`73f21d4`](https://github.com/anomalyco/opencode/commit/73f21d4e206b1c8fb7c8841495898d37fc78365b) fix: handle both space literals ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/dialog/complete.go` (+1 -1) </details> ### 📄 Description Users cannot send messages containing @ symbols when no matching file exists, effectively blocking input (e.g., `explain @media queries in CSS` or `find all @Component decorators` cannot be sent). ## Solution - `\@` now renders as literal @ - Fixes send blocking when @ symbols don't match files - Existing file linking with @ unchanged ## Usage - `@filename` - links to file (existing) - `\@username` - literal @ symbol, allows sending **NOTE**: Escaped @ symbols are rendered without prepended ## Example <img width="1132" height="676" alt="Screenshot 2025-07-15 at 2 07 57 PM" src="https://github.com/user-attachments/assets/53832163-f8dd-4a50-8c21-25a142398771" /> --- <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#9788