The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
feat(bot-screen): Screen portal in routines + sessions, one-click package install from Desktop
teknium1d9f817dd7bc0
diff --git a/apps/desktop/src/app/chat/sidebar/gateway-groups.tsx b/apps/desktop/src/app/chat/sidebar/gateway-groups.tsxindex 82281dcd412..65504ebb839 100644--- a/apps/desktop/src/app/chat/sidebar/gateway-groups.tsx+++ b/apps/desktop/src/app/chat/sidebar/gateway-groups.tsx@@ -5,6 +5,7 @@ import type { ReactNode } from 'react'import { useState } from 'react'import { type NewSessionSplitHandler, startNewSessionDrag } from '@/app/chat/new-session-drag'+import { type ProfileGroupHeaderContribution, SIDEBAR_PROFILE_GROUP_HEADER_AREA } from '@/app/routes'import { Button } from '@/components/ui/button'import { Codicon } from '@/components/ui/codicon'import {@@ -18,6 +19,8 @@ import {import { DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuTrigger } from '@/components/ui/dropdown-menu'import { Input } from '@/components/ui/input'import { ProfileGlyph } from '@/components/ui/profile-glyph'+import { useContributions } from '@/contrib'+import { ContribBoundary, ContribRender } from '@/contrib/react/boundary'import type { SessionInfo } from '@/hermes'import { useI18n } from '@/i18n'import { useStoreSelector } from '@/lib/use-session-slice'@@ -272,6 +275,7 @@ function GatewayProfileGroup({{open && (<>{children}+ {group.profile ? <ProfileGroupHeaderSlot connectionId={group.connectionId ?? null} profile={group.profile} /> : null}{renderRows(sessions.slice(0, visibleCount))}{hiddenCount > 0 && (<WorkspaceShowMoreButton@@ -315,3 +319,34 @@ function GatewayProfileGroup({</SidebarRowStack>)}++/** Plugin-contributed chrome at the top of one expanded gateway/profile group+ * (`sidebar.profileGroup.header`): the Bots plugin mounts its Screen portal+ * here so the profile's computer is one click away from its sessions. */+function ProfileGroupHeaderSlot({ connectionId, profile }: { connectionId: null | string; profile: string }) {+ const items = useContributions(SIDEBAR_PROFILE_GROUP_HEADER_AREA)++ if (!items.length) {+ return null+ }++ return (+ <div className="flex flex-col gap-1 px-2 pb-1">+ {items.map(item => {+ const data = item.data as Partial<ProfileGroupHeaderContribution> | undefined++ if (typeof data?.render !== 'function') {+ return null+ }++ const render = data.render++ return (+ <ContribBoundary id={item.id} key={item.id} variant="chip">+ <ContribRender render={() => render({ connectionId, profile })} />+ </ContribBoundary>+ )+ })}+ </div>+ )+}diff --git a/apps/desktop/src/app/routes.ts b/apps/desktop/src/app/routes.tsindex 7e5fbd47182..c3a08f52989 100644--- a/apps/desktop/src/app/routes.ts+++ b/apps/desktop/src/app/routes.ts@@ -123,6 +123,25 @@ export interface SidebarNavContribution {path: string}+// ── Contributed profile-group header — the `sidebar.profileGroup.header` area ─+// A RENDER contribution mounted at the top of each gateway/profile group in the+// Sessions sidebar (above its session rows) while the group is expanded. The+// contribution's `data` is a `ProfileGroupHeaderContribution`; core calls+// `render(route)` with the group's connection + profile so one contribution+// serves every group. First consumer: the Bots plugin's Screen portal.++export const SIDEBAR_PROFILE_GROUP_HEADER_AREA = 'sidebar.profileGroup.header'++export interface ProfileGroupRoute {+ connectionId: null | string+ profile: string+}++/** Payload of a `sidebar.profileGroup.header` data contribution. */+export interface ProfileGroupHeaderContribution {+ render: (route: ProfileGroupRoute) => ReactNode+}+// Views that render as a full-screen modal card (OverlayView) over the shell.// While one is open the app's titlebar control clusters must hide so they don't// bleed over the overlay (they sit at a higher z-index than the overlay card).diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/input-requests.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/input-requests.tsindex 9319993797c..e6397a32b84 100644--- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/input-requests.ts+++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/input-requests.ts@@ -313,13 +313,19 @@ export function handleInputRequestEvent(ctx: GatewayEventContext): boolean {return true}- if (event.type === 'sudo.request') {- // Sudo password capture (tools/terminal_tool.py). Blocked on- // sudo.respond {request_id, password}.+ if (event.type === 'sudo.request' || event.type === 'display.install.sudo.request') {+ // Sudo password capture (tools/terminal_tool.py), or the Bot Screen package install+ // (tui_gateway/methods_display.py) reusing the same masked card. Blocked on+ // <method>.respond {request_id, password}.const requestId = typeof payload?.request_id === 'string' ? payload.request_id : ''+ const install = event.type === 'display.install.sudo.request'if (requestId) {- setSudoRequest({ requestId, sessionId: sessionId ?? null })+ setSudoRequest({+ requestId,+ sessionId: sessionId ?? null,+ ...(install ? { respondMethod: 'display.install.sudo.respond', description: translateNow('prompts.sudoInstallDesc') } : {})+ })if (sessionId) {updateSessionState(sessionId, state => ({ ...state, needsInput: true }))diff --git a/apps/desktop/src/components/prompt-overlays.tsx b/apps/desktop/src/components/prompt-overlays.tsxindex 091e306ad5c..0e76b01249f 100644--- a/apps/desktop/src/components/prompt-overlays.tsx+++ b/apps/desktop/src/components/prompt-overlays.tsx@@ -78,7 +78,7 @@ function SudoDialog({ sessionId }: { sessionId: string | null }) {setSubmitting(true)try {- await gateway.request<{ status?: string }>('sudo.respond', {+ await gateway.request<{ status?: string }>(request.respondMethod ?? 'sudo.respond', {password: value,request_id: request.requestId})@@ -126,7 +126,7 @@ function SudoDialog({ sessionId }: { sessionId: string | null }) {<DialogContent showCloseButton={false}><DialogHeader><DialogTitle icon={Lock}>{copy.sudoTitle}</DialogTitle>- <DialogDescription>{copy.sudoDesc}</DialogDescription>+ <DialogDescription>{request.description ?? copy.sudoDesc}</DialogDescription></DialogHeader><form className="grid gap-3" onSubmit={onSubmit}>diff --git a/apps/desktop/src/i18n/ar.ts b/apps/desktop/src/i18n/ar.tsindex 6d70110018d..47c44c9ebb3 100644--- a/apps/desktop/src/i18n/ar.ts+++ b/apps/desktop/src/i18n/ar.ts@@ -3046,6 +3046,7 @@ export const ar = defineLocale({secretSendFailed: 'فشل إرسال السر',sudoTitle: 'مطلوب sudo',sudoDesc: 'أدخل كلمة المرور لمتابعة الأمر.',+ sudoInstallDesc: 'يحتاج Hermes إلى كلمة مرور sudo لتثبيت حزم Bot Screen (TigerVNC + Xfce) على مضيف البوابة. تُرسل إلى ذلك المضيف فقط.',sudoPlaceholder: 'كلمة المرور',secretTitle: 'مطلوب سر',secretDesc: 'أدخل القيمة المطلوبة لمتابعة المهمة.',diff --git a/apps/desktop/src/i18n/en.ts b/apps/desktop/src/i18n/en.tsindex acbde2d1142..a5500c5e477 100644--- a/apps/desktop/src/i18n/en.ts+++ b/apps/desktop/src/i18n/en.ts@@ -4011,6 +4011,7 @@ export const en: Translations = {secretSendFailed: 'Could not send secret',sudoTitle: 'Administrator password',sudoDesc: 'Hermes needs your sudo password to run a privileged command. It is sent only to your local agent.',+ sudoInstallDesc: 'Hermes needs your sudo password to install the Bot Screen packages (TigerVNC + Xfce) on the gateway host. It is sent only to that host.',sudoPlaceholder: 'sudo password',secretTitle: 'Secret required',secretDesc: 'Hermes needs a credential to continue.',diff --git a/apps/desktop/src/i18n/ja.ts b/apps/desktop/src/i18n/ja.tsindex cdd512551c8..e870777c436 100644--- a/apps/desktop/src/i18n/ja.ts+++ b/apps/desktop/src/i18n/ja.ts@@ -3456,6 +3456,7 @@ export const ja = defineLocale({sudoTitle: '管理者パスワード',sudoDesc:'Hermes は特権コマンドを実行するために sudo パスワードが必要です。ローカルエージェントにのみ送信されます。',+ sudoInstallDesc: 'Bot Screen のパッケージ(TigerVNC + Xfce)をゲートウェイホストにインストールするため、sudo パスワードが必要です。そのホストにのみ送信されます。',sudoPlaceholder: 'sudo パスワード',secretTitle: 'シークレットが必要です',secretDesc: 'Hermes は続行するための認証情報が必要です。',diff --git a/apps/desktop/src/i18n/ru.ts b/apps/desktop/src/i18n/ru.tsindex e8ffa262a36..5f7a04d42b2 100644--- a/apps/desktop/src/i18n/ru.ts+++ b/apps/desktop/src/i18n/ru.ts@@ -3753,6 +3753,7 @@ export const ru = defineLocale({sudoTitle: 'Пароль администратора',sudoDesc:'Hermes нужен ваш пароль sudo, чтобы выполнить команду с повышенными правами. Он отправляется только вашему локальному агенту.',+ sudoInstallDesc: 'Hermes нужен ваш пароль sudo, чтобы установить пакеты Bot Screen (TigerVNC + Xfce) на хосте шлюза. Он отправляется только на этот хост.',sudoPlaceholder: 'пароль sudo',secretTitle: 'Требуется секрет',secretDesc: 'Hermes нужны учётные данные, чтобы продолжить.',diff --git a/apps/desktop/src/i18n/types.ts b/apps/desktop/src/i18n/types.tsindex 0c16cb4b069..e8b4a3eb25b 100644--- a/apps/desktop/src/i18n/types.ts+++ b/apps/desktop/src/i18n/types.ts@@ -3505,6 +3505,7 @@ export interface Translations {secretSendFailed: stringsudoTitle: stringsudoDesc: string+ sudoInstallDesc: stringsudoPlaceholder: stringsecretTitle: stringsecretDesc: stringdiff --git a/apps/desktop/src/i18n/zh-hant.ts b/apps/desktop/src/i18n/zh-hant.tsindex 4759253d154..21bc27f7fa6 100644--- a/apps/desktop/src/i18n/zh-hant.ts+++ b/apps/desktop/src/i18n/zh-hant.ts@@ -3311,6 +3311,7 @@ export const zhHant = defineLocale({secretSendFailed: '無法傳送密鑰',sudoTitle: '管理員密碼',sudoDesc: 'Hermes 需要您的 sudo 密碼來執行特權指令。它只會傳送給您的本機代理。',+ sudoInstallDesc: 'Hermes 需要您的 sudo 密碼,以在閘道主機上安裝 Bot Screen 套件(TigerVNC + Xfce)。它只會傳送到該主機。',sudoPlaceholder: 'sudo 密碼',secretTitle: '需要密鑰',secretDesc: 'Hermes 需要一個憑證才能繼續。',diff --git a/apps/desktop/src/i18n/zh.ts b/apps/desktop/src/i18n/zh.tsindex 7e78217d1b7..26f00c698da 100644--- a/apps/desktop/src/i18n/zh.ts+++ b/apps/desktop/src/i18n/zh.ts@@ -4124,6 +4124,7 @@ export const zh = defineLocale({secretSendFailed: '无法发送密钥',sudoTitle: '管理员密码',sudoDesc: 'Hermes 需要你的 sudo 密码来运行特权命令。它只会发送给你的本地 agent。',+ sudoInstallDesc: 'Hermes 需要你的 sudo 密码,以在网关主机上安装 Bot Screen 软件包(TigerVNC + Xfce)。它只会发送到该主机。',sudoPlaceholder: 'sudo 密码',secretTitle: '需要密钥',secretDesc: 'Hermes 需要一个凭据才能继续。',diff --git a/apps/desktop/src/plugins/hermes-bots/cron.tsx b/apps/desktop/src/plugins/hermes-bots/cron.tsxindex 931bd069ac6..74ec2deb2ae 100644--- a/apps/desktop/src/plugins/hermes-bots/cron.tsx+++ b/apps/desktop/src/plugins/hermes-bots/cron.tsx@@ -45,6 +45,7 @@ import { labeled } from './dialog-parts'import { botsText, useBots } from './i18n'import { displayName } from './labels'import { botConnectionRoute, botRosterMeta, requestForBot } from './routing'+import { ScreenPortal } from './screen-portal'import { ID } from './shared'import type { BotMeta, RosterRow, RoutineJob } from './types'@@ -1265,6 +1266,9 @@ export function RoutinesPane() {</Tip></div><div className="mx-3 border-t border-(--ui-stroke-secondary)" />+ <div className="px-3 pt-2">+ <ScreenPortal bot={owner} meta={meta} />+ </div>{staleNotice ? (<div className="mx-3 mt-2 rounded-md bg-(--chrome-action-hover) px-2 py-1.5 text-[0.6875rem] text-(--ui-text-tertiary)">{staleNotice}diff --git a/apps/desktop/src/plugins/hermes-bots/i18n.ts b/apps/desktop/src/plugins/hermes-bots/i18n.tsindex 12e63a6b71f..43550dd1ddc 100644--- a/apps/desktop/src/plugins/hermes-bots/i18n.ts+++ b/apps/desktop/src/plugins/hermes-bots/i18n.ts@@ -232,6 +232,19 @@ type BotsMessages = {notInstalledTitle: stringnotInstalledBody: stringinstallHint: string+ install: string+ installing: string+ installCancelled: string+ installFailed: string+ noPackageManager: string+ portalTitle: string+ portalOpen: string+ portalWatching: string+ portalYouControl: string+ portalOtherControls: string+ portalStopped: string+ portalNotInstalled: string+ portalUnsupported: stringrecheck: stringstoppedTitle: stringstoppedBody: string@@ -478,7 +491,20 @@ const en: BotsMessages = {unsupportedBody: 'Bot screens run on Linux gateway hosts. This bot uses the host\u2019s own display.',notInstalledTitle: 'Screen packages missing',notInstalledBody: 'The gateway host needs TigerVNC and the Xfce core to give this bot a screen. Run on the host:',- installHint: 'or: hermes computer-use screen install',+ installHint: 'Runs on the gateway host as the user Hermes runs as; sudo is asked for once, through Hermes.',+ install: 'Install on host',+ installing: 'Installing…',+ installCancelled: 'Install cancelled: no sudo password was provided.',+ installFailed: 'Install failed. Read the log above, or run the command on the host yourself.',+ noPackageManager: 'No supported package manager (apt, dnf, pacman) was found on the gateway host.',+ portalTitle: 'Screen',+ portalOpen: 'Open',+ portalWatching: 'Live · bot in control',+ portalYouControl: 'Live · you are in control',+ portalOtherControls: 'Live · another viewer in control',+ portalStopped: 'Stopped',+ portalNotInstalled: 'Not installed on host',+ portalUnsupported: 'Not available on this host',recheck: 'Check again',stoppedTitle: 'Screen is off',stoppedBody: 'Start this bot\u2019s desktop to watch what it does and take over when it needs you.',@@ -720,7 +746,20 @@ const ja: BotsMessages = {unsupportedBody: 'ボット画面は Linux のゲートウェイホストで動作します。このボットはホスト自身のディスプレイを使います。',notInstalledTitle: '画面パッケージが不足しています',notInstalledBody: 'このボットに画面を与えるには、ゲートウェイホストに TigerVNC と Xfce コアが必要です。ホストで実行:',- installHint: 'または: hermes computer-use screen install',+ installHint: 'Hermes を実行しているユーザーとしてゲートウェイホスト上で実行されます。sudo は Hermes 経由で一度だけ求められます。',+ install: 'ホストにインストール',+ installing: 'インストール中…',+ installCancelled: 'インストールを中止しました: sudo パスワードが入力されませんでした。',+ installFailed: 'インストールに失敗しました。上のログを確認するか、ホストでコマンドを直接実行してください。',+ noPackageManager: 'ゲートウェイホストに対応するパッケージマネージャー (apt, dnf, pacman) が見つかりません。',+ portalTitle: 'スクリーン',+ portalOpen: '開く',+ portalWatching: 'ライブ · ボットが操作中',+ portalYouControl: 'ライブ · あなたが操作中',+ portalOtherControls: 'ライブ · 別のビューアーが操作中',+ portalStopped: '停止中',+ portalNotInstalled: 'ホストに未インストール',+ portalUnsupported: 'このホストでは利用できません',recheck: '再確認',stoppedTitle: '画面はオフです',stoppedBody: 'このボットのデスクトップを起動すると、動作を見守り、必要なときに操作を引き継げます。',@@ -957,7 +996,20 @@ const zh: BotsMessages = {unsupportedBody: '机器人屏幕在 Linux 网关主机上运行。此机器人使用主机自身的显示器。',notInstalledTitle: '缺少屏幕软件包',notInstalledBody: '网关主机需要 TigerVNC 和 Xfce 核心组件才能为此机器人提供屏幕。在主机上运行:',- installHint: '或: hermes computer-use screen install',+ installHint: '在网关主机上以运行 Hermes 的用户身份执行;sudo 只会通过 Hermes 询问一次。',+ install: '安装到主机',+ installing: '正在安装…',+ installCancelled: '安装已取消:未提供 sudo 密码。',+ installFailed: '安装失败。请查看上方日志,或在主机上手动运行该命令。',+ noPackageManager: '网关主机上未找到受支持的包管理器(apt、dnf、pacman)。',+ portalTitle: '屏幕',+ portalOpen: '打开',+ portalWatching: '直播 · 机器人控制中',+ portalYouControl: '直播 · 你在控制',+ portalOtherControls: '直播 · 其他查看者控制中',+ portalStopped: '已停止',+ portalNotInstalled: '主机未安装',+ portalUnsupported: '此主机不可用',recheck: '重新检查',stoppedTitle: '屏幕已关闭',stoppedBody: '启动此机器人的桌面,观看它的操作,并在需要时接管。',@@ -1194,7 +1246,20 @@ const zhHant: BotsMessages = {unsupportedBody: '機器人螢幕在 Linux 閘道主機上執行。此機器人使用主機自身的顯示器。',notInstalledTitle: '缺少螢幕套件',notInstalledBody: '閘道主機需要 TigerVNC 與 Xfce 核心元件才能為此機器人提供螢幕。在主機上執行:',- installHint: '或: hermes computer-use screen install',+ installHint: '在閘道主機上以執行 Hermes 的使用者身分執行;sudo 只會透過 Hermes 詢問一次。',+ install: '安裝到主機',+ installing: '安裝中…',+ installCancelled: '安裝已取消:未提供 sudo 密碼。',+ installFailed: '安裝失敗。請查看上方日誌,或在主機上手動執行該指令。',+ noPackageManager: '閘道主機上找不到受支援的套件管理器(apt、dnf、pacman)。',+ portalTitle: '螢幕',+ portalOpen: '開啟',+ portalWatching: '直播 · 機器人控制中',+ portalYouControl: '直播 · 您在控制',+ portalOtherControls: '直播 · 其他檢視者控制中',+ portalStopped: '已停止',+ portalNotInstalled: '主機未安裝',+ portalUnsupported: '此主機不可用',recheck: '重新檢查',stoppedTitle: '螢幕已關閉',stoppedBody: '啟動此機器人的桌面,觀看它的操作,並在需要時接手。',diff --git a/apps/desktop/src/plugins/hermes-bots/plugin.tsx b/apps/desktop/src/plugins/hermes-bots/plugin.tsxindex 8032e16134f..d472473b6df 100644--- a/apps/desktop/src/plugins/hermes-bots/plugin.tsx+++ b/apps/desktop/src/plugins/hermes-bots/plugin.tsx@@ -15,8 +15,8 @@* bot-initiated sends use `hermes -p <bot> chat --in ~ -c "Bot Chat"`.*/-import { CHAT_EMPTY_AREA, COMPOSER_AREAS, host, PALETTE_AREA, translateNow } from '@hermes/plugin-sdk'-import type { ChatEmptyProps, PluginContext } from '@hermes/plugin-sdk'+import { CHAT_EMPTY_AREA, COMPOSER_AREAS, host, PALETTE_AREA, SIDEBAR_PROFILE_GROUP_HEADER_AREA, translateNow } from '@hermes/plugin-sdk'+import type { ChatEmptyProps, PluginContext, ProfileGroupRoute } from '@hermes/plugin-sdk'import { startFaceClock, stopFaceClock } from './avatar'import {@@ -69,6 +69,7 @@ import {sessionOwnsWorkspace} from './roster-pane'import { botRosterMeta, botWorkspaceOwnerKey, setBotsWorkspaceOwner } from './routing'+import { ProfileGroupScreenPortal } from './screen-portal'import { startHideSweepScheduler } from './session-sweep'import { bumpBotOpenGeneration, getBotOpenGeneration, ID, setPluginCtx } from './shared'import type { GroupChat, RosterRow } from './types'@@ -363,6 +364,13 @@ export default {// the meta/room storage hydrates above have landed; idempotent after that.// (Feature-guarded: bare vm test harnesses have no setTimeout global.)startHideSweepScheduler(ctx)+ // Sessions sidebar: each gateway/profile group gets the profile's Screen portal+ // above its sessions, so the bot's computer is reachable from either mode.+ ctx.register({+ id: 'screen-portal',+ area: SIDEBAR_PROFILE_GROUP_HEADER_AREA,+ data: { render: (route: ProfileGroupRoute) => <ProfileGroupScreenPortal route={route} /> }+ })ctx.register({id: 'pane',area: 'panes',diff --git a/apps/desktop/src/plugins/hermes-bots/screen-install.tsx b/apps/desktop/src/plugins/hermes-bots/screen-install.tsxnew file mode 100644index 00000000000..11662c0df86--- /dev/null+++ b/apps/desktop/src/plugins/hermes-bots/screen-install.tsx@@ -0,0 +1,110 @@+/**+ * Bot Screen install card — installs the TigerVNC + Xfce packages on the bot's+ * gateway host from inside Hermes Desktop.+ *+ * `display.install` starts the distro package command on the host; sudo, when+ * needed, arrives as the same masked password card the terminal tool uses+ * (`display.install.sudo.request`), so the password never touches this pane.+ * Output streams back as `display.install.log`; `display.install.done` carries+ * a fresh status the caller uses to flip the pane to "Start screen".+ */++import { Button, Codicon, GlyphSpinner, host } from '@hermes/plugin-sdk'+import type { RpcEvent } from '@hermes/plugin-sdk'+import { useCallback, useEffect, useRef, useState } from 'react'++import { useBots } from './i18n'+import { displayRequest, type DisplayStatus } from './screen-connection'+import type { RosterRow } from './types'++const LOG_KEEP = 200++interface ScreenInstallCardProps {+ bot: RosterRow+ status: DisplayStatus+ onInstalled: (status: DisplayStatus) => void+}++export function ScreenInstallCard({ bot, status, onInstalled }: ScreenInstallCardProps) {+ const t = useBots()+ const [phase, setPhase] = useState<'idle' | 'running' | 'failed'>('idle')+ const [log, setLog] = useState<string[]>([])+ const [error, setError] = useState<null | string>(null)+ const logEnd = useRef<HTMLDivElement>(null)++ useEffect(() => {+ logEnd.current?.scrollIntoView({ block: 'end' })+ }, [log])++ useEffect(() => {+ const offLog = host.onEvent('display.install.log', (event: RpcEvent) => {+ const payload = event.payload as { profile_key?: string; line?: string } | undefined++ if (payload?.profile_key === status.profile_key && typeof payload.line === 'string') {+ const line = payload.line+ setLog(prev => (prev.length >= LOG_KEEP ? [...prev.slice(1), line] : [...prev, line]))+ }+ })+ const offDone = host.onEvent('display.install.done', (event: RpcEvent) => {+ const payload = event.payload as { profile_key?: string; code?: number; status?: DisplayStatus } | undefined++ if (payload?.profile_key !== status.profile_key) {+ return+ }++ if (payload.code === 0 && payload.status?.installed) {+ setPhase('idle')+ onInstalled(payload.status)+ } else {+ setPhase('failed')+ setError(payload.code === -1 ? t.screen.installCancelled : t.screen.installFailed)+ }+ })++ return () => {+ offLog()+ offDone()+ }+ }, [onInstalled, status.profile_key, t.screen.installCancelled, t.screen.installFailed])++ const install = useCallback(async () => {+ setPhase('running')+ setLog([])+ setError(null)++ try {+ await displayRequest(bot, 'display.install')+ } catch (err) {+ setPhase('failed')+ setError(err instanceof Error ? err.message : String(err))+ }+ }, [bot])++ return (+ <div className="grid min-h-48 place-items-center p-6 text-center">+ <div className="flex w-full max-w-lg flex-col gap-2">+ <div className="text-sm font-medium">{t.screen.notInstalledTitle}</div>+ <div className="text-xs text-muted-foreground">{t.screen.notInstalledBody}</div>+ {status.install_command ? (+ <code className="select-text break-all rounded bg-muted px-2 py-1 text-left text-xs">{status.install_command}</code>+ ) : (+ <div className="text-xs text-muted-foreground">{t.screen.noPackageManager}</div>+ )}+ {status.install_command ? (+ <Button disabled={phase === 'running'} onClick={() => void install()} size="sm">+ {phase === 'running' ? <GlyphSpinner /> : <Codicon name="cloud-download" />}+ {phase === 'running' ? t.screen.installing : t.screen.install}+ </Button>+ ) : null}+ {log.length > 0 ? (+ <pre className="max-h-48 overflow-auto rounded bg-black/80 p-2 text-left font-mono text-[0.65rem] leading-tight text-white/85">+ {log.join('\n')}+ <div ref={logEnd} />+ </pre>+ ) : null}+ {error ? <div className="text-xs text-red-500">{error}</div> : null}+ <div className="text-xs text-muted-foreground">{t.screen.installHint}</div>+ </div>+ </div>+ )+}diff --git a/apps/desktop/src/plugins/hermes-bots/screen-pane.tsx b/apps/desktop/src/plugins/hermes-bots/screen-pane.tsxindex d270cadd90f..e4cf6a12e9b 100644--- a/apps/desktop/src/plugins/hermes-bots/screen-pane.tsx+++ b/apps/desktop/src/plugins/hermes-bots/screen-pane.tsx@@ -16,6 +16,7 @@ import { useCallback, useEffect, useRef, useState } from 'react'import { useBots } from './i18n'import { type DisplayLease, type DisplayObserveResult, displayRequest, type DisplayStatus, resolveScreenWsUrl, VIEWER_ID } from './screen-connection'+import { ScreenInstallCard } from './screen-install'import { $screenState, screenStateFor, setScreenLease, setScreenStatus } from './screen-state'import type { RosterRow } from './types'@@ -224,21 +225,7 @@ export function BotScreenPane({ bot }: { bot: RosterRow }) {}if (status && !status.installed) {- return (- <div className="grid min-h-48 place-items-center p-6 text-center">- <div className="flex max-w-md flex-col gap-2">- <div className="text-sm font-medium">{t.screen.notInstalledTitle}</div>- <div className="text-xs text-muted-foreground">{t.screen.notInstalledBody}</div>- {status.install_command ? (- <code className="select-text break-all rounded bg-muted px-2 py-1 text-left text-xs">{status.install_command}</code>- ) : null}- <div className="text-xs text-muted-foreground">{t.screen.installHint}</div>- <Button disabled={busy} onClick={() => void refresh()} size="sm" variant="secondary">- <Codicon name="refresh" /> {t.screen.recheck}- </Button>- </div>- </div>- )+ return <ScreenInstallCard bot={bot} onInstalled={next => setScreenStatus(bot, next)} status={status} />}if (status && !status.running) {diff --git a/apps/desktop/src/plugins/hermes-bots/screen-portal.tsx b/apps/desktop/src/plugins/hermes-bots/screen-portal.tsxnew file mode 100644index 00000000000..3204de79064--- /dev/null+++ b/apps/desktop/src/plugins/hermes-bots/screen-portal.tsx@@ -0,0 +1,174 @@+/**+ * Screen portal — the compact "this bot's computer" box that sits above a+ * bot's routines and on a gateway/profile group in the Sessions sidebar.+ * One click opens the live Screen pane; the subtitle says whether the screen+ * is live and who holds it, so the user knows before opening whether they+ * are about to watch, take over, install or start.+ *+ * Reads the same per-bot cache the pane paints (`$screenState`) and refreshes+ * it once on mount so a bot the user never opened still shows real state.+ */++import { Codicon, host, useValue } from '@hermes/plugin-sdk'+import type { RpcEvent } from '@hermes/plugin-sdk'+import type { ProfileGroupRoute } from '@hermes/plugin-sdk'+import { useEffect } from 'react'++import { $lastRoster } from './data'+import { useBots } from './i18n'+import { resolveBotConnectionRoute } from './routing'+import { type DisplayLease, displayRequest, type DisplayStatus, VIEWER_ID } from './screen-connection'+import { openBotScreen } from './screen-open'+import { $screenState, screenStateFor, setScreenLease, setScreenStatus } from './screen-state'+import type { BotMeta, RosterRow } from './types'++export type PortalTone = 'live' | 'human' | 'other' | 'off' | 'missing' | 'unsupported' | 'unknown'++/** Pure: map cached status + lease to what the portal says. */+export function portalTone(status: DisplayStatus | null, lease: DisplayLease | null): PortalTone {+ if (!status) {+ return 'unknown'+ }++ if (!status.supported) {+ return 'unsupported'+ }++ if (!status.installed) {+ return 'missing'+ }++ if (!status.running) {+ return 'off'+ }++ if (lease?.holder === 'human') {+ return lease.viewer_id === VIEWER_ID ? 'human' : 'other'+ }++ return 'live'+}++const TONE_ICON: Record<PortalTone, string> = {+ live: 'device-desktop',+ human: 'record-keys',+ other: 'eye',+ off: 'debug-stop',+ missing: 'cloud-download',+ unsupported: 'circle-slash',+ unknown: 'device-desktop'+}++const TONE_DOT: Record<PortalTone, string> = {+ live: 'bg-emerald-500',+ human: 'bg-red-500',+ other: 'bg-amber-500',+ off: 'bg-(--ui-text-quaternary)',+ missing: 'bg-(--ui-text-quaternary)',+ unsupported: 'bg-(--ui-text-quaternary)',+ unknown: 'bg-(--ui-text-quaternary)'+}++export function useScreenPortalState(bot: RosterRow) {+ const all = useValue($screenState)+ const state = screenStateFor(all, bot)+ const status = state?.status ?? null+ const profileKey = status?.profile_key++ useEffect(() => {+ if (status) {+ return+ }++ let cancelled = false++ void displayRequest<DisplayStatus>(bot, 'display.status')+ .then(next => {+ if (!cancelled) {+ setScreenStatus(bot, next)+ }+ })+ .catch(() => {+ /* offline bot / older backend: the portal stays in its unknown state */+ })++ return () => {+ cancelled = true+ }+ }, [bot, status])++ useEffect(+ () =>+ host.onEvent('display.lease', (event: RpcEvent) => {+ const payload = event.payload as { profile_key?: string; lease?: DisplayLease } | undefined++ if (payload?.lease && payload.profile_key && payload.profile_key === profileKey) {+ setScreenLease(bot, payload.lease)+ }+ }),+ [bot, profileKey]+ )++ return { status, lease: state?.lease ?? null, tone: portalTone(status, state?.lease ?? null) }+}++export function ScreenPortal({ bot, meta, compact = false }: { bot: RosterRow; meta?: BotMeta | null; compact?: boolean }) {+ const t = useBots()+ const { status, tone } = useScreenPortalState(bot)++ const subtitle = {+ live: t.screen.portalWatching,+ human: t.screen.portalYouControl,+ other: t.screen.portalOtherControls,+ off: t.screen.portalStopped,+ missing: t.screen.portalNotInstalled,+ unsupported: t.screen.portalUnsupported,+ unknown: status?.display ?? ''+ }[tone]++ if (tone === 'unsupported' && compact) {+ return null+ }++ return (+ <button+ aria-label={`${t.screen.portalTitle}: ${subtitle}`}+ className="group flex w-full items-center gap-2 rounded-md border border-(--ui-stroke-secondary) bg-(--chrome-action-hover)/40 px-2 py-1.5 text-left transition-colors hover:bg-(--chrome-action-hover)"+ onClick={() => openBotScreen(bot, meta ?? null)}+ type="button"+ >+ <span className="relative grid size-7 shrink-0 place-items-center rounded bg-black/70 text-white/90">+ <Codicon name={TONE_ICON[tone]} />+ <span className={`absolute -right-0.5 -top-0.5 size-2 rounded-full ring-2 ring-(--ui-bg-primary) ${TONE_DOT[tone]}`} />+ </span>+ <span className="min-w-0 flex-1">+ <span className="block truncate text-xs font-medium">{t.screen.portalTitle}</span>+ {subtitle ? <span className="block truncate text-[0.65rem] text-(--ui-text-tertiary)">{subtitle}</span> : null}+ </span>+ <span className="flex shrink-0 items-center gap-1 text-[0.65rem] text-(--ui-text-tertiary) opacity-0 transition-opacity group-hover:opacity-100">+ {t.screen.portalOpen} <Codicon name="arrow-right" />+ </span>+ </button>+ )+}++/** Sessions-sidebar variant: the gateway/profile group hands us its route; find the+ * bot that owns it, or synthesize a scoped row so a profile outside the current+ * roster filter still gets its portal (the portal only needs a routable row). */+export function ProfileGroupScreenPortal({ route }: { route: ProfileGroupRoute }) {+ const roster = useValue($lastRoster)++ const bot =+ roster.find(row => {+ const resolved = resolveBotConnectionRoute(row)++ return resolved.route+ ? resolved.route.profile === route.profile && (route.connectionId === null || resolved.route.connectionId === route.connectionId)+ : row.name === route.profile && route.connectionId === null+ }) ??+ (route.connectionId+ ? ({ name: route.profile, sourceScoped: true, connectionId: route.connectionId, connectionKind: route.connectionId === 'local' ? 'local' : 'remote' } as RosterRow)+ : ({ name: route.profile } as RosterRow))++ return <ScreenPortal bot={bot} compact />+}diff --git a/apps/desktop/src/sdk/index.ts b/apps/desktop/src/sdk/index.tsindex b3b2f85abf0..39ca078d0e2 100644--- a/apps/desktop/src/sdk/index.ts+++ b/apps/desktop/src/sdk/index.ts@@ -1501,7 +1501,15 @@ export {PanelRowMenu,PanelSectionLabel} from '@/app/overlays/panel'-export { type RouteContribution, ROUTES_AREA, SIDEBAR_NAV_AREA, type SidebarNavContribution } from '@/app/routes'+export {+ type ProfileGroupHeaderContribution,+ type ProfileGroupRoute,+ type RouteContribution,+ ROUTES_AREA,+ SIDEBAR_NAV_AREA,+ SIDEBAR_PROFILE_GROUP_HEADER_AREA,+ type SidebarNavContribution+} from '@/app/routes'/** THE full per-toolset config panel core Settings renders — provider picker,* env vars / API keys, model catalog picker, and post-setup runners. Route-diff --git a/apps/desktop/src/store/prompts.ts b/apps/desktop/src/store/prompts.tsindex 7325c4f54ed..e57fbf660bb 100644--- a/apps/desktop/src/store/prompts.ts+++ b/apps/desktop/src/store/prompts.ts@@ -98,6 +98,11 @@ interface PendingApprovalPayload {export interface SudoRequest extends KeyedPrompt {requestId: string+ /** JSON-RPC method that resolves this request; the terminal tool's `sudo.respond` by default,+ * `display.install.sudo.respond` for a Bot Screen package install. */+ respondMethod?: string+ /** Description override so the card can say WHAT the password is for. */+ description?: string}export interface SecretRequest extends KeyedPrompt {@@ -225,8 +230,10 @@ export async function replayPendingApproval(gateway: ApprovalGateway | null, ses* active-session `$*Request` views (same map, fixed key). */export const sessionApprovalRequest = (sessionId: string | null) =>computed(approval.$all, all => all[keyFor(sessionId)] ?? null)+/** A session's sudo card, else the app-level one (a Bot Screen package install is raised with no+ * session: it belongs to the connection, not to a turn, so whichever chat is focused shows it). */export const sessionSudoRequest = (sessionId: string | null) =>- computed(sudo.$all, all => all[keyFor(sessionId)] ?? null)+ computed(sudo.$all, all => all[keyFor(sessionId)] ?? (sessionId ? all[keyFor(null)] ?? null : null))export const sessionSecretRequest = (sessionId: string | null) =>computed(secret.$all, all => all[keyFor(sessionId)] ?? null)diff --git a/tests/tools/test_bot_desktop_install.py b/tests/tools/test_bot_desktop_install.pynew file mode 100644index 00000000000..5b0912d7e82--- /dev/null+++ b/tests/tools/test_bot_desktop_install.py@@ -0,0 +1,47 @@+"""Bot Desktop package install: sudo hand-off and single-flight invariants."""++from __future__ import annotations++import threading++import pytest++from tools.bot_desktop import install, runtime++[email protected](autouse=True)+def _isolated_host(tmp_path, monkeypatch):+ monkeypatch.setenv("HERMES_HOME", str(tmp_path))+ monkeypatch.setattr(install, "_sudo_nopasswd", lambda: False)+ monkeypatch.setattr(runtime, "is_supported_host", lambda: True)+ monkeypatch.setattr(runtime, "install_command", lambda: "sudo apt-get install -y tigervnc-standalone-server")+ yield+ install._running.clear()+++def test_empty_password_cancels_without_spawning(monkeypatch):+ monkeypatch.setattr(install.subprocess, "Popen", lambda *a, **k: pytest.fail("package manager spawned"))+ lines: list[str] = []+ code = install.install_packages(ask_password=lambda: "", on_line=lines.append)+ assert code == -1+ assert any("cancelled" in line for line in lines)+++def test_second_install_for_same_profile_is_refused(monkeypatch):+ gate = threading.Event()+ entered = threading.Event()++ def slow_run(cmd, *, ask_password, on_line, timeout_seconds):+ entered.set()+ gate.wait(5)+ return 0++ monkeypatch.setattr(install, "_run", slow_run)+ worker = threading.Thread(target=install.install_packages, kwargs={"ask_password": lambda: "pw", "on_line": lambda _l: None})+ worker.start()+ assert entered.wait(5)+ with pytest.raises(install.InstallBusy):+ install.install_packages(ask_password=lambda: "pw", on_line=lambda _l: None)+ gate.set()+ worker.join(5)+ install.assert_not_running() # slot released once the run finishesdiff --git a/tools/bot_desktop/install.py b/tools/bot_desktop/install.pynew file mode 100644index 00000000000..ef374a62e3e--- /dev/null+++ b/tools/bot_desktop/install.py@@ -0,0 +1,100 @@+"""Install the Bot Desktop packages on the gateway host from a Desktop client.++The install runs the distro command from ``runtime.install_command()`` (apt/dnf/pacman) as a child+process on THIS host. Privilege comes from the same masked ``sudo.request`` card the terminal tool+raises: ``sudo -n true`` is probed first (NOPASSWD / cached timestamp hosts never see a prompt); when+a password is needed the caller-supplied ``ask_password`` blocks on the card and the value is written+to sudo's stdin (``-S``) exactly once, never logged, never placed on the command line. Output lines+stream through ``on_line`` so the pane can show apt's progress; the return value is the exit code.++One install per profile at a time; a second request while one runs is refused.+"""++from __future__ import annotations++import logging+import os+import shlex+import subprocess+import threading+from typing import Callable, Optional++from hermes_constants import hermes_home_key+from tools.bot_desktop import runtime++logger = logging.getLogger(__name__)++_install_lock = threading.Lock()+_running: set[str] = set()+++class InstallBusy(RuntimeError):+ pass+++def assert_not_running() -> None:+ with _install_lock:+ if hermes_home_key() in _running:+ raise InstallBusy("an install is already running for this profile")+++def install_packages(*, ask_password: Callable[[], str], on_line: Callable[[str], None],+ timeout_seconds: float = 900.0) -> int:+ """Run the package install; returns the process exit code (0 = success, ``-1`` = cancelled)."""+ if not runtime.is_supported_host():+ raise RuntimeError("Bot Desktop runs on Linux gateway hosts only")+ cmd = runtime.install_command()+ if cmd is None:+ raise RuntimeError("no supported package manager (apt-get, dnf, pacman) found on this host")+ key = hermes_home_key()+ with _install_lock:+ if key in _running:+ raise InstallBusy("an install is already running for this profile")+ _running.add(key)+ try:+ return _run(cmd, ask_password=ask_password, on_line=on_line, timeout_seconds=timeout_seconds)+ finally:+ with _install_lock:+ _running.discard(key)+++def _sudo_nopasswd() -> bool:+ try:+ return subprocess.run(["sudo", "-n", "true"], capture_output=True, timeout=3,+ stdin=subprocess.DEVNULL).returncode == 0+ except Exception:+ return False+++def _run(cmd: str, *, ask_password: Callable[[], str], on_line: Callable[[str], None],+ timeout_seconds: float) -> int:+ argv = shlex.split(cmd)+ assert argv[0] == "sudo", cmd+ stdin_payload: Optional[str] = None+ if not _sudo_nopasswd():+ password = ask_password() or ""+ if not password:+ on_line("install cancelled: no sudo password provided")+ return -1+ # -S: read the password from stdin; -p '': no prompt text mixed into the streamed output.+ argv = ["sudo", "-S", "-p", "", *argv[1:]]+ stdin_payload = password + "\n"+ on_line(f"$ {cmd}")+ env = {"DEBIAN_FRONTEND": "noninteractive", "LC_ALL": "C.UTF-8"}+ proc = subprocess.Popen( # windows-footgun: ok — Linux-only (is_supported_host)+ argv, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,+ env={**os.environ, **env}, text=True, encoding="utf-8", errors="replace", start_new_session=True)+ try:+ if stdin_payload is not None:+ proc.stdin.write(stdin_payload) # type: ignore[union-attr]+ proc.stdin.close() # type: ignore[union-attr]+ except OSError:+ pass+ timer = threading.Timer(timeout_seconds, proc.kill)+ timer.start()+ try:+ for line in proc.stdout: # type: ignore[union-attr]+ on_line(line.rstrip("\n"))+ return proc.wait()+ finally:+ timer.cancel()diff --git a/tui_gateway/methods_display.py b/tui_gateway/methods_display.pyindex 9f9aede0100..7e853e0f7e1 100644--- a/tui_gateway/methods_display.py+++ b/tui_gateway/methods_display.py@@ -3,7 +3,10 @@``display.status`` reports runtime + lease; ``display.start`` / ``display.stop`` manage the Xvnc/Xfceprocess; ``display.observe`` mints a single-use ticket the renderer redeems on ``/api/display/ws``(``hermes_cli.web_routers.display``) to stream raw RFB; ``display.lease.acquire`` / ``release`` are-Take over / Hand back. Every handler is profile-scoped so a multiplexed gateway answers for the bot+Take over / Hand back. ``display.install`` runs the distro package install on the gateway host: sudo+privilege is asked for through the masked ``display.install.sudo.request`` card (same ``_block`` bridge as+the terminal tool's sudo prompt), stdout streams as ``display.install.log`` and the run ends with+``display.install.done`` carrying a fresh status snapshot. Every handler is profile-scoped so a multiplexed gateway answers for the botthe pane is looking at. Lease transitions fan out as the global ``display.lease`` event so everyconnected client repaints (badge on the bot row, red border on the viewer, agent handoff prompt).@@ -97,6 +100,49 @@ def _(rid, params: dict) -> dict:return _err(rid, _DISPLAY_ERR, str(e))+@method("display.install")+@_profile_scoped+def _(rid, params: dict) -> dict:+ """Start the package install in the background; the renderer follows ``display.install.log`` /+ ``display.install.done``. Refused while one is already running for this profile."""+ from hermes_constants import hermes_home_key+ from tools.bot_desktop import install as _bd_install, runtime as _bd_runtime+ if not _bd_runtime.is_supported_host():+ return _err(rid, _DISPLAY_ERR, "Bot Desktop runs on Linux gateway hosts only")+ if _bd_runtime.install_command() is None:+ return _err(rid, _DISPLAY_ERR, "no supported package manager (apt-get, dnf, pacman) on this host")+ profile_key = hermes_home_key()+ sid = str(params.get("session_id") or "")++ def _ask_password() -> str:+ return _block("display.install.sudo.request", sid, {"profile_key": profile_key}, timeout=300)++ def _line(text: str) -> None:+ _broadcast_global_event("display.install.log", {"profile_key": profile_key, "line": text})++ # The worker thread has no context-bound transport; the sudo card must reach the CLIENT that+ # clicked Install, so the caller's transport is carried across.+ from .transport import bind_transport, current_transport+ caller_transport = current_transport()++ def _run() -> None:+ bind_transport(caller_transport)+ try:+ code = _bd_install.install_packages(ask_password=_ask_password, on_line=_line)+ except Exception as e:+ _line(f"install failed: {e}")+ code = 1+ _broadcast_global_event("display.install.done", {"profile_key": profile_key, "code": code,+ "status": _bd_runtime.status().as_dict()})++ try:+ _bd_install.assert_not_running()+ except _bd_install.InstallBusy as e:+ return _err(rid, _DISPLAY_ERR, str(e))+ threading.Thread(target=_run, name=f"bot-desktop-install:{profile_key}", daemon=True).start()+ return _ok(rid, {"started": True, "command": _bd_runtime.install_command(), "profile_key": profile_key})++@method("display.lease.acquire")@_profile_scopeddef _(rid, params: dict) -> dict:diff --git a/tui_gateway/methods_prompt.py b/tui_gateway/methods_prompt.pyindex bdb0a40b929..8824dc3b23c 100644--- a/tui_gateway/methods_prompt.py+++ b/tui_gateway/methods_prompt.py@@ -1113,7 +1113,7 @@ def _(rid, params: dict) -> dict:_LATE_RESPOND_KEYS = {"terminal.read.respond": "text", "preview.read.respond": "text", "preview.act.respond": "text","window.read.respond": "text", "tour.respond": "text", "mcp.setup.respond": "result",- "sudo.respond": "password", "secret.respond": "value", "vault.unlock.respond": "password",+ "sudo.respond": "password", "display.install.sudo.respond": "password", "secret.respond": "value", "vault.unlock.respond": "password","vault.save_login.respond": "login", "vault.code.respond": "code"}for _name, _key in _LATE_RESPOND_KEYS.items():method(_name)(lambda rid, params, _k=_key: _respond(rid, params, _k, allow_expired=True))diff --git a/tui_gateway/server.py b/tui_gateway/server.pyindex bb99b563fa7..dcc55c923f3 100644--- a/tui_gateway/server.py+++ b/tui_gateway/server.py@@ -1252,7 +1252,7 @@ def _enable_gateway_prompts() -> None:# Blocking bridges whose `*.respond` tolerates a late reply (allow_expired=True): on timeout the tool# returns empty, but a slow renderer could still answer and hit a raw 4009 — `.expire` tears the card down._EXPIRING_REQUESTS = frozenset({- "secret.request", "sudo.request", "vault.unlock.request", "vault.save_login.request", "vault.code.request", "clarify.request",+ "secret.request", "sudo.request", "display.install.sudo.request", "vault.unlock.request", "vault.save_login.request", "vault.code.request", "clarify.request","terminal.read.request","preview.read.request", "preview.act.request", "window.read.request", "mcp.setup.request","tour.request",diff --git a/website/docs/user-guide/features/bot-screen.md b/website/docs/user-guide/features/bot-screen.mdindex 6079927774c..37c2db1a72d 100644--- a/website/docs/user-guide/features/bot-screen.md+++ b/website/docs/user-guide/features/bot-screen.md@@ -23,9 +23,13 @@ hosted-agent products).- The gateway host runs Linux. macOS and Windows hosts already have a realdisplay; the pane is not offered there.- TigerVNC's `Xvnc` and the Xfce core components are installed on the host.- Hermes Desktop and `hermes computer-use screen status` print the exact- package-manager line when they are missing; `hermes computer-use screen- install` runs it for you:+ Nothing installs them silently: `hermes update` and fresh installs leave every+ machine as it is. When they are missing the Screen pane in Hermes Desktop shows+ **Install on host** — one click runs the package manager on the gateway host+ (it asks for that host's sudo password in a masked card; the password goes to+ that host only and is never stored) and streams the log. From a shell,+ `hermes computer-use screen status` prints the exact line and+ `hermes computer-use screen install` runs it:| Distro | Packages ||---|---|@@ -39,7 +43,17 @@ hosted-agent products).## Using it-1. In Hermes Desktop open **Bots**, right-click a bot, choose **Open Screen**.+Every bot's computer is one click away in three places of Hermes Desktop:++- **Bots → a bot → Scheduled Jobs**: the **Screen** box at the top of the pane+ (above the routines) shows whether the screen is running and who holds+ control; click it to open.+- **Bots → right-click a bot → Open Screen**.+- **Sessions sidebar**, grouped by gateway / profile: the same **Screen** box+ sits under each profile's header, so a profile's machine is reachable from+ its conversations too.++1. Open the Screen with any of the entries above.The first time, click **Start screen** (or leave `bot_desktop.auto_start` on,the default: the screen starts on the bot's first `computer_use` call when thehost has no display). A headed browser opens on the screen once it is running.@@ -111,8 +125,9 @@ Xauthority, launcher log, per-profile xfconf).## Troubleshooting-- **"Screen packages missing"** — run the printed install line on the gateway- host (not on the machine running Hermes Desktop).+- **"Screen packages missing"** — click **Install on host** in the pane, or run+ the printed install line on the gateway host (not on the machine running+ Hermes Desktop). The pane refuses a second install while one is running.- **Screen starts then stops** — read `<HERMES_HOME>/bot-desktop/launcher.log`.- **Typing produces wrong characters** — the screen uses a US keymap so RFBkeysyms and cua-driver agree; change it with `setxkbmap` on that `DISPLAY`