Repository navigation
Replies: 1 comment
|
Update: plugin sidebar views (0.16, #8906) together with Closing as resolved. Feel free to reopen if you still need a full-page chat. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 are you trying to do?
We build a Paseo plugin called Kontor (source). It adds a full screen that lists agent sessions across projects, grouped by plan and role, with their status and recent activity. People use it as their main place to watch and steer many agents; ours lists a few hundred sessions.
From that list, the most common next step is simple: open one session, read the last answer, maybe reply or approve a permission, then go back to the list and open the next one. Our users do this many times a day.
How do you do it today?
The plugin screen calls
navigation.openAgent({ agentId }). Paseo opens the agent's workspace with its tab bar, and the plugin screen is gone:So "check one session, go back, check the next one" costs several clicks and the user's place, every time.
We checked this on Paseo 0.12.0 with the web app (app.paseo.sh) connected to a local daemon, in a wide window and in a 390×844 phone-size view. We have not checked the desktop app or the iOS and Android apps yet. We expect the same there because the navigation code is shared, but that is not tested.
The only other option is to build a second chat inside the plugin: read the timeline, draw messages and tool calls, add a composer, handle permissions. That chat would always be behind Paseo's real one. We are not the only ones: in #7024 another plugin author "would prefer to reuse Paseo's native conversation UI rather than implement and maintain a second chat interface", and #3758 ran into the same wall.
Where does Paseo get in the way?
A plugin cannot fix this alone, and we think that is the right rule: the plugin docs say navigation, the header and the close action belong to the app, and plugins get no router or layout access. So the only thing a plugin can ask for is
openAgent, andopenAgentalways means "go to the workspace".What would a better workflow look like?
The plugin asks Paseo to show one agent as a full page on top of the current screen:
For people who do not use such a plugin, nothing changes.
A possible API (open to change)
A new optional member next to
openAgent,openWorkspaceandopenBrowser. Older apps do not have it, so plugins can check for it and fall back:We read current
main. We believe this can be done in the app alone, with no daemon or protocol change:/h/<server>/agent/<agentId>) with a flag such as?view=page, instead of redirecting to the workspace.We think it is roughly 150 lines plus tests. We call it a "page" on purpose, so it is not confused with Focus mode, which is a workspace toggle that keeps the tab bar.
Platforms
openAgent.Not in scope
openAgent, tabs, splits or Focus mode work today.Open design choices (for the Paseo maintainers)
We have a default for each choice below. If you prefer the other option, tell us and we will build it that way.
navigation.openAgentPage({ agentId, serverId }). Older apps do not have it, so a plugin checks for it and falls back toopenAgent.navigation.openAgent({ agentId, page: true }), plus a flag such asnavigation.supportsAgentPage, likesupportsFocusHostin feat(plugin): let plugin navigation focus the destination host in the sidebar #5574. The flag is needed because an older app would silently ignore the option and open the normal workspace./h/<server>/agent/<agentId>?view=page. Today this route only redirects to the workspace. Withview=pageit shows the page instead./h/<server>/agent-page/<agentId>.Related
openAgentandopenWorkspace.openAgentlands. This request is about how the agent is shown, so it should combine with them.Can we help?
Yes. If this direction fits, we are happy to build it and send a PR with Playwright tests and recordings on desktop, web and mobile. We can share a prototype branch first.
All reactions