[FEATURE]: Plugin sources for the composer's @ mention popup (Desktop and TUI)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- developer-experience
Hướng nghiên cứu
This is a design proposal for a MentionSource registry in the GUI and a matching TUI API, so the first step is agreeing on the shape with maintainers rather than coding. Relevant context is the existing @ popup, which lists files, agents, skills and sessions, and how an @ file mention is turned into a chip on Desktop and a mention part in the TUI. Related issues #62368, #65154 and #51209 should be read first, since they overlap on the composer and plugin APIs. Done would mean an accepted API design and a plan for both clients.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Summary
Let plugins add their own results to the composer's @ mention popup, in both Desktop and the TUI. Today @ lists files, agents, skills and sessions, and all of these are built in.
Use case
opencode-gh-search searches the GitHub PRs and issues of the session's repo. Right now it's a /pr and /issue slash command that opens a dialog. What users actually want is to type @ while writing, then something like #123 or @fix login, and pick a PR inline the way they'd pick a file.
To build that today, a plugin would need its own popup and its own key handling:
- In the TUI, plugins can't add parts to the prompt, so the plugin types a URL into it.
- In Desktop, it attaches a chip. Neither works on the new-session screen (#65154).
Proposal
A MentionSource registry (GUI) and a matching TUI API. For example:
ctx.add(MentionSource, {
id: "github",
label: "GitHub", // group header in the popup
// Called as the user types after `@`; results show next to files and agents.
search: async ({ query, directory, signal }) => [
{ id: "pr:123", title: "Fix login", description: "#123 · open", icon: "github",
part: { type: "note", label: "app#123", subject: "https://github.com/…/pull/123", href: "…" } },
],
})
- Results show up in the existing
@popup, with the host's keys and styling. - Picking one inserts the item's part the way an
@file mention does: a chip on Desktop, a mention part in the TUI. directoryis the session's or the draft's directory, so it also works before the first message.
Related
- #62368: TUI plugin autocomplete with its own trigger character. This issue asks for sources in the existing
@popup instead, on both clients. - #65154: the GUI plugin API has no access to the new-session draft's directory or composer.
- #51209: expose the V2 TUI composer to plugins.
- Ngôn ngữ chính
- TypeScript
- Star
- 227k
- Fork
- 30.7k
- Merge trung bình
- 3 giờ 57 phút
- Pull request đã merge (30 ngày)
- 484
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của anomalyco/opencode
-
[Site] Active section detection should respect scroll-margin-topCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởarea/web reproduced type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
anomalyco/opencode#65384 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/cli type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#65379 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Shell tool: no upper bound on the timeout a model can ask for, so one call can hold a turn for hoursĐang mởarea/core platform/linux type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
anomalyco/opencode#65254 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
inference/go type/feature
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
anomalyco/opencode#65148 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/providers type/feature version/v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
anomalyco/opencode#64845 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của anomalyco/opencode
Issue tương tự
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcatalog provider provider-compatibility
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
lidge-jun/opencodex#9037 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Project submission: xmcp DocsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 60/100
Maintainer thường phản hồi trong vòng 1 ngày
-
effort:S P3 refactor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nightscout/nocturne#3735 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
Maintainer thường phản hồi trong vòng 2 ngày