You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Let plugins show the destination host in the sidebar when they open an agent or workspace
#5573
I run Paseo on two hosts (a desktop and a second machine) and use a plugin as a cross-host dashboard: attention items, tasks and reviews from both hosts in one place. From there I click through to an agent or workspace with navigation.openAgent or navigation.openWorkspace, passing the serverId of the host it lives on.
More plugins will work this way now: useHosts() (#4971, from #4348) lets one plugin surface list agents from every host, and navigation.openAgent (asked for in #3805) opens them. A dashboard built like that runs into the problem below.
How it works today
The agent or workspace opens, but the sidebar keeps whatever host, project or label filter I had. When I'm filtered to one host and open something on the other, the destination isn't in the sidebar at all. I then change the sidebar filter by hand, every time.
Where Paseo gets in the way
The sidebar's host filter is client-side state, and plugins have no way to set it: not through @getpaseo/plugin, @getpaseo/client, or a route. The only workaround I found is scripting clicks on the sidebar menu. That relies on internal test IDs and doesn't work on mobile.
With focusHost: true, the client selects only the destination host in the sidebar and clears project and label filters that would hide the destination. The grouping mode stays as it is. Without the flag, behavior is unchanged, so existing plugins aren't affected. navigation.supportsFocusHost lets a plugin detect clients that support it.
It's a reusable extension point rather than one workflow: any plugin that links across hosts (dashboards, review queues, notifications) needs the destination to be visible after it navigates.
I have a small reference implementation: 6 files, 119 lines added including tests and docs. It covers the SDK type, the navigation owner, a focusHost action on the sidebar view store, focused tests against the real store, and the plugin reference docs. It's open as #5574, from https://github.com/discwl/paseo/tree/plugin-navigation-focus-host. I'm happy to adjust it, or for it to serve only as a reference.
plugin-apiPaseo plugin API capabilities for plugin authors
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
What I'm trying to do
I run Paseo on two hosts (a desktop and a second machine) and use a plugin as a cross-host dashboard: attention items, tasks and reviews from both hosts in one place. From there I click through to an agent or workspace with
navigation.openAgentornavigation.openWorkspace, passing theserverIdof the host it lives on.More plugins will work this way now:
useHosts()(#4971, from #4348) lets one plugin surface list agents from every host, andnavigation.openAgent(asked for in #3805) opens them. A dashboard built like that runs into the problem below.How it works today
The agent or workspace opens, but the sidebar keeps whatever host, project or label filter I had. When I'm filtered to one host and open something on the other, the destination isn't in the sidebar at all. I then change the sidebar filter by hand, every time.
Where Paseo gets in the way
The sidebar's host filter is client-side state, and plugins have no way to set it: not through
@getpaseo/plugin,@getpaseo/client, or a route. The only workaround I found is scripting clicks on the sidebar menu. That relies on internal test IDs and doesn't work on mobile.What a better workflow looks like
An opt-in flag on plugin navigation:
With
focusHost: true, the client selects only the destination host in the sidebar and clears project and label filters that would hide the destination. The grouping mode stays as it is. Without the flag, behavior is unchanged, so existing plugins aren't affected.navigation.supportsFocusHostlets a plugin detect clients that support it.It's a reusable extension point rather than one workflow: any plugin that links across hosts (dashboards, review queues, notifications) needs the destination to be visible after it navigates.
I have a small reference implementation: 6 files, 119 lines added including tests and docs. It covers the SDK type, the navigation owner, a
focusHostaction on the sidebar view store, focused tests against the real store, and the plugin reference docs. It's open as #5574, from https://github.com/discwl/paseo/tree/plugin-navigation-focus-host. I'm happy to adjust it, or for it to serve only as a reference.All reactions