Reference example proposal: desktop plugin (context-menu interception + composer middleware)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- desktop
Línea de trabajo
Start with the proposed quote-comment-desktop/ directory and the desktop/plugin.js disk-plugin entry point, then compare the linked hermes-quote-comment source and gist. Check the contributing notes and developer-guide coverage before choosing the example shape. Done means an accepted, self-contained reference example demonstrating context-menu interception, fixed UI mounting, and COMPOSER_AREAS.middleware.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Proposal: a desktop-side reference example (context menu + composer middleware)
The current index covers agent-side (ctx.llm.*) and dashboard plugins, but nothing here shows a desktop/plugin.js end to end — while the desktop SDK docs send plugin authors to this repo for reference demos. Three seams this example would cover are currently discoverable only from the app source, and two of them bit us in practice:
- Context-menu interception. The app's own menu system listens on
windowcapture and callsstopPropagation()on every right-click, so document-level listeners never run (window-capture listeners still do —stopPropagationdoes not affect same-target listeners). To keep the app's menu from flashing underneath, the example stamps message roots withdata-hermes-context-menu-triggerduring the right-buttonmousedown; on Windowscontextmenufires aftermouseup, so the stamps cannot be cleared there. - Floating UI without react-dom. Disk plugins cannot import react-dom, so menus/dialogs render as
position: fixednodes from aSTATUSBAR_AREAS.rightcontribution — the only always-mounted, non-closable mount point. COMPOSER_AREAS.middleware. A queue drained on send:handler(draft) => { ...draft, text },nullto cancel, throw = pass-through.
The example is a slimmed version of a working community plugin — pwwang/hermes-quote-comment (MIT): select text in a response → right-click → Comment → the quote + comment is appended to your next message.
- ~240 lines, self-contained, uses the disk-plugin door (
$HERMES_HOME/desktop-plugins/<id>/plugin.js) - Full source: https://gist.github.com/pwwang/b6466ffad2b0f9510cc4e53eed0baad7
- Demo:

Per the contributing notes ("open an issue first if the surface you want to demonstrate isn't already covered in the developer-guide docs"): the context-menu interception + trigger-attribute behavior is exactly such a surface. Happy to wait if you would rather land a docs page for it first, or to restructure the example to your preferred shape — it is slightly over the ~200 LOC note, with ~80 lines being the window-capture/attribute machinery.
Would a PR for quote-comment-desktop/ be welcome?
- Lenguaje dominante
- Python
- Estrellas
- 49
- Forks
- 34
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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.
Issues similares
-
area/auth comp/agent P3 type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
NousResearch/hermes-agent#161417 ·
Los mantenedores suelen responder en 1 día
-
Hourly-aggregate projection test depends on other tests' spansPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertoaccepted
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
future-agi/future-agi#4737 ·
Los mantenedores suelen responder en 1 día
-
Fix URL validation, get_version_url, and implement robust parse_url for Launchpad backendPosiblemente ocupada @patelshivani2283-lab la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
fedora-infra/anitya#2278 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Dao-AILab/flash-attention#3251 ·
Los mantenedores suelen responder en 2 días