Reference example proposal: desktop plugin (context-menu interception + composer middleware)
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- javascript
- 領域
- desktop
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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?
- 主要言語
- Python
- スター
- 49
- フォーク
- 34
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
似ている issue
-
area/auth comp/agent P3 type/bug
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
NousResearch/hermes-agent#161417 ·
メンテナーはふだん 1 日以内に返信
-
Hourly-aggregate projection test depends on other tests' spans対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープンaccepted
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
future-agi/future-agi#4737 ·
メンテナーはふだん 1 日以内に返信
-
Fix URL validation, get_version_url, and implement robust parse_url for Launchpad backend対応中かも @patelshivani2283-lab が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 90/100
fedora-infra/anitya#2278 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
Dao-AILab/flash-attention#3251 ·
メンテナーはふだん 2 日以内に返信