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
Plugin API: read terminal title and activity, and open a specific terminal tab
#9380
I maintain Agent Tabs, a plugin that lists every terminal tab (Claude Code, Codex, shells) with its state across all hosts. It is for people who run agents in terminal tabs instead of as Paseo agents. Two things it needs are not in the plugin API, so it uses internals that a new release can break:
1. Terminal title and activity
paseo.terminals.list() returns { id, workspaceId, cwd, name }: TerminalSchema in @getpaseo/client strips title and activity, which the daemon already sends. To get them, the plugin loads the host's internal DaemonClient through createRequire(process.argv[1]).
Proposal: include title and activity (state, attentionReason, changedAt) in PaseoTerminal, and if possible a change subscription, so that plugins do not have to poll.
2. Open a specific terminal tab
The client navigation API has openAgent and openWorkspace({ workspaceId, serverId }), but nothing for a terminal. On web and desktop the plugin calls the app's navigateToHostWorkspaceRoute through its Metro module id. On native apps it opens paseo://h/<serverId>/workspace/<id>?open=terminal:<id>. A new terminal also hits #9378, so the plugin sends the link again after 1 s and 2.5 s.
Proposal: navigation.openTerminal({ terminalId, workspaceId, serverId }), or a tab option on openWorkspace.
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.
I maintain Agent Tabs, a plugin that lists every terminal tab (Claude Code, Codex, shells) with its state across all hosts. It is for people who run agents in terminal tabs instead of as Paseo agents. Two things it needs are not in the plugin API, so it uses internals that a new release can break:
1. Terminal title and activity
paseo.terminals.list()returns{ id, workspaceId, cwd, name }:TerminalSchemain@getpaseo/clientstripstitleandactivity, which the daemon already sends. To get them, the plugin loads the host's internalDaemonClientthroughcreateRequire(process.argv[1]).Proposal: include
titleandactivity(state,attentionReason,changedAt) inPaseoTerminal, and if possible a change subscription, so that plugins do not have to poll.2. Open a specific terminal tab
The client
navigationAPI hasopenAgentandopenWorkspace({ workspaceId, serverId }), but nothing for a terminal. On web and desktop the plugin calls the app'snavigateToHostWorkspaceRoutethrough its Metro module id. On native apps it openspaseo://h/<serverId>/workspace/<id>?open=terminal:<id>. A new terminal also hits #9378, so the plugin sends the link again after 1 s and 2.5 s.Proposal:
navigation.openTerminal({ terminalId, workspaceId, serverId }), or a tab option onopenWorkspace.I am happy to test changes or help with a PR.
All reactions