From 10974c822d607f03e20e9741ec027910f0c1f93a Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sat, 8 Aug 2026 16:26:47 +0300 Subject: feat(input): add per-pane right-click routing (#2504) --- docs/next/CHANGELOG.md | 1 + docs/next/api/herdr-api.schema.json | 42 ++++++++++++++++++++++ .../website/src/content/docs/cli-reference.mdx | 9 ++++- docs/next/website/src/content/docs/quick-start.mdx | 2 +- docs/next/website/src/content/docs/socket-api.mdx | 10 +++++- 5 files changed, 61 insertions(+), 3 deletions(-) (limited to 'docs/next') diff --git a/docs/next/CHANGELOG.md b/docs/next/CHANGELOG.md index 080f0710..343086aa 100644 --- a/docs/next/CHANGELOG.md +++ b/docs/next/CHANGELOG.md @@ -4,6 +4,7 @@ ### Added - Devin CLI, Cursor Agent CLI, MastraCode, Hermes Agent, and Grok CLI integrations now install and run natively on Windows. +- Panes can now route normal right-click gestures to mouse-reporting applications through the pane menu, `herdr pane input`, `pane.input.set`, or the `pane split --right-click pane` launch option. - `theme.custom.sidebar_bg` can now give the desktop sidebar its own background without changing built-in theme defaults. - Settings and `ui.status_indicators = "symbols"` can now use distinct static shapes for blocked, working, done, idle, and unknown agent states. (#2260) - The plugin marketplace now discovers valid manifests at repository roots and subdirectories, groups multiple plugins under each repository, and publishes their versions and exact default-branch commits. diff --git a/docs/next/api/herdr-api.schema.json b/docs/next/api/herdr-api.schema.json index 4183c2ba..1e8d7830 100644 --- a/docs/next/api/herdr-api.schema.json +++ b/docs/next/api/herdr-api.schema.json @@ -2536,6 +2536,21 @@ ], "type": "object" }, + "PaneInputSetParams": { + "properties": { + "pane_id": { + "type": "string" + }, + "right_click": { + "$ref": "#/schemas/request/$defs/PaneRightClickTarget" + } + }, + "required": [ + "pane_id", + "right_click" + ], + "type": "object" + }, "PaneLayoutParams": { "properties": { "pane_id": { @@ -2970,6 +2985,13 @@ ], "type": "object" }, + "PaneRightClickTarget": { + "enum": [ + "herdr", + "pane" + ], + "type": "string" + }, "PaneSendInputParams": { "properties": { "keys": { @@ -3051,6 +3073,10 @@ "null" ] }, + "right_click": { + "$ref": "#/schemas/request/$defs/PaneRightClickTarget", + "default": "herdr" + }, "target_pane_id": { "type": [ "string", @@ -5326,6 +5352,22 @@ ], "type": "object" }, + { + "properties": { + "method": { + "const": "pane.input.set", + "type": "string" + }, + "params": { + "$ref": "#/schemas/request/$defs/PaneInputSetParams" + } + }, + "required": [ + "method", + "params" + ], + "type": "object" + }, { "properties": { "method": { diff --git a/docs/next/website/src/content/docs/cli-reference.mdx b/docs/next/website/src/content/docs/cli-reference.mdx index d0f1509a..7ce6c314 100644 --- a/docs/next/website/src/content/docs/cli-reference.mdx +++ b/docs/next/website/src/content/docs/cli-reference.mdx @@ -174,7 +174,8 @@ herdr pane focus --direction left|right|up|down [--pane ID|--current] herdr pane resize --direction left|right|up|down [--amount FLOAT] [--pane ID|--current] herdr pane zoom [|--pane ID|--current] [--toggle|--on|--off] herdr pane rename