[FEATURE]: Plugin sources for the composer's @ mention popup (Desktop and TUI)
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 12/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- typescript
- Área
- developer-experience
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- TypeScript
- Estrellas
- 227k
- Forks
- 30.7k
- Merge medio
- 3 h 57 min
- PR fusionados (30 d)
- 484
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de anomalyco/opencode
-
[Site] Active section detection should respect scroll-margin-topPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoarea/web reproduced type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
anomalyco/opencode#65384 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area/cli type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
anomalyco/opencode#65379 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Shell tool: no upper bound on the timeout a model can ask for, so one call can hold a turn for hoursAbiertoarea/core platform/linux type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
anomalyco/opencode#65254 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
inference/go type/feature
Dificultad 1/5 1-3 horas Aptitud para principiantes 72/100
anomalyco/opencode#65148 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
area/providers type/feature version/v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
anomalyco/opencode#64845 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de anomalyco/opencode
Issues similares
-
[Provider] antigravity-acp catalog omits gemini-4-hydrogen and gemini-4-neon that agy acp offersPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertocatalog provider provider-compatibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
lidge-jun/opencodex#9037 · 1 comentario · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Project submission: xmcp DocsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 62/100
slavakurilyak/awesome-ai-agents#1005 ·
-
kind/bug triage/unresolved
Dificultad 2/5 1-3 horas Aptitud para principiantes 60/100
Los mantenedores suelen responder en 1 día
-
effort:S P3 refactor
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
nightscout/nocturne#3735 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
wpilibsuite/systemcore-blocks-interface#641 ·
Los mantenedores suelen responder en 2 días