Repository navigation
Replies: 2 comments
|
Agent Monitor hit exactly this on Paseo 0.6. Its rows need to open an agent in the client displaying the plugin surface. The only workable plugin-side path is currently We also tried the workspace URL with an A client-owned Would a contribution be accepted in this area? We are eager to help with the API shape, app integration, compatibility gate, tests, and docs. |
|
Thanks for adding the new client navigation capability: navigation?.openAgent({ agentId })
navigation?.openWorkspace({ workspaceId })This addresses the API shape requested in the original post, but a multi-client relay test shows that the client-ownership semantics still need to be completed. Current reproduction
Actual behaviorThe Paseo window on Host A navigates to the agent. Client B, where the plugin surface was rendered and clicked, does not navigate. We also monitored the daemon and the macOS desktop logs during a controlled click. There was no Expected behavior
Requested API/contract improvements
navigation.openAgent({ agentId })
// Navigates this rendering client, using the selected host as the data source.
navigation.openAgent({ agentId }) // always current rendering client
clientNavigation.openAgent({ clientId, agentId }) // optional future capability
client: {
id: string
platform: "ios" | "android" | "web"
desktopPlatform?: "macos" | "windows" | "linux"
}
At the moment plugins cannot work around this reliably: they cannot target the rendering client, cannot access a client identity, and should not construct private routes or use OS deep links. |
Uh oh!
There was an error while loading. Please reload this page.
Problem
A plugin surface can be rendered by a Paseo client connected to a daemon on another machine. The plugin can list agents through
usePaseo(), but there is no public client-side navigation API for opening one of those agents.This creates an important local-vs-remote ambiguity:
paseo://h/{serverId}/agent/{agentId}through the OS. This gives seamless in-app navigation when the daemon and desktop client are on the same machine.Linking.openURL(paseo://...)in the plugin client is handled as an Expo Router URL and displays Unmatched Route.popstatebypasses Paseo routing and can terminate the Windows desktop client.window.location.assign(/h/{serverId}/agent/{agentId})works on the correct client, but reloads the whole Paseo frontend, showing the startup/loading state and reinitializing host/plugin state.The plugin also cannot accurately choose between the daemon-side deep link and client reload because
PluginSurfaceProps.hostonly exposes{ id, label }. It does not indicate whether the selected daemon is local to the rendering client. Comparing operating systems is not sufficient because two remote machines may run the same OS.Suggested API
Please expose client-owned navigation to plugin surfaces, for example:
Alternatively/additionally:
A navigation capability is preferable because Paseo can preserve its workspace/agent routing semantics, pin behavior, mobile behavior, and future route changes without plugins constructing private URLs.
Expected behavior
Clicking an agent in a plugin surface should navigate the client that rendered the surface to that agent, without a full reload, regardless of whether its selected daemon is local or remote.
This came up while building a workspace-overview plugin and testing a Windows Paseo client connected to a macOS Paseo daemon.
All reactions