[PR #947] [CLOSED] fix: deduplicate command entries in search completion #9758

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/947
Author: @monotykamary
Created: 7/13/2025
Status: Closed

Base: devHead: fix/duplicate-sessions-command


📝 Commits (1)

  • 43a4c6d fix: deduplicate command entries in search completion

📊 Changes

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

View changed files

📝 packages/tui/go.mod (+1 -1)
📝 packages/tui/internal/completions/commands.go (+8 -2)

📄 Description

Fixes #875

Summary

  • Fix duplicate command entries appearing in search completion
  • Commands with multiple triggers (like /sessions with "sessions", "resume", "continue") were showing up multiple times in search results
Before After
image image

Test plan

  • Search for "sessions" command and verify only one entry appears
  • Verify all command triggers still work correctly
  • Test fuzzy search functionality remains intact

🤖 Generated with opencode


🔄 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/947 **Author:** [@monotykamary](https://github.com/monotykamary) **Created:** 7/13/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/duplicate-sessions-command` --- ### 📝 Commits (1) - [`43a4c6d`](https://github.com/anomalyco/opencode/commit/43a4c6de4602d9b4b3b9c1fa18098f0e3e961b44) fix: deduplicate command entries in search completion ### 📊 Changes **2 files changed** (+9 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/go.mod` (+1 -1) 📝 `packages/tui/internal/completions/commands.go` (+8 -2) </details> ### 📄 Description Fixes #875 ## Summary - Fix duplicate command entries appearing in search completion - Commands with multiple triggers (like `/sessions` with "sessions", "resume", "continue") were showing up multiple times in search results | Before | After | |---|---| | <img width="669" height="170" alt="image" src="https://github.com/user-attachments/assets/2cde1337-0dab-465a-83a2-ba9a7af40e6c" /> | <img width="718" height="189" alt="image" src="https://github.com/user-attachments/assets/38a133c8-6c3e-49a6-844c-19dd9bf1e18e" /> | ## Test plan - [x] Search for "sessions" command and verify only one entry appears - [x] Verify all command triggers still work correctly - [x] Test fuzzy search functionality remains intact 🤖 Generated with [opencode](https://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:07 -05:00
yindo closed this issue 2026-02-16 18:14:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9758