OpenProgram Docs

Resource panel and preview

Groups come from the resource type. Names belong to entries. Hiding a preview never touches the resource.

Groups

Label, in panel orderKind
Webpageweb; sources web and browser map here.
Desktopdesktop: what a call operates on this computer
Machinemachine: what a call operates on another machine
Terminalterminal
Applicationapplication
Other resourcesAny other kind; details keep the original type and source

A group, header included, appears only when it has resources; with none at all the panel shows one line saying so.

AspectRule
Entry titleThe actual resource name. A page-title change updates the entry, not its group.
Entry subtitleState (operating, running, connection failed), the owning Agent when needed, source, branch and connection. No session-title level.
ExternalA source, not a type: external pages stay under Webpage
ScopeOnly resources tied to the current session. Same-type resources across branches share one group.
CountValid resources of that type. Agent switches and renames do not reorder groups.
Closed or exitedLeave the active list; history may show them in details
Uncertain statusStays under its type and shows an error; not treated as closed
Refresh failureKnown types and entries stay; nothing is said and the status is read again behind them. No renaming, no selecting another resource, no retrying a close of unknown outcome.

Actions

ActionViewResource
EntryShown in the conversation; repeated clicks keep it openSame instance
Row: Preview in conversationReopens the previewUnchanged
Row: Open in tabSwitches to the existing tabUnchanged
Row: Close webpageEntry and its preview go awayClosed
Preview: Open pageFull view of the same resource; web pages use the top tabs. Hidden without a full view.No duplicate
Preview: Close preview (X)Preview hidden; entry staysPage exists; environment keeps running
Preview: Review requestShown while the Agent waits for confirmationUnchanged
More: Automatically show what the Agent is usingOn: shows the page being operated in this session. Off: keeps the current page.Agent targets and tasks unchanged
Terminate environmentExplicit named action in a text menu; only where supportedExisting confirmation and permission rules apply

Preview title bar

Contents
Resource name, Open page (outward arrow), More (dots), Close preview (X). All have hover hints and accessible names. No pin or expand buttons.
Kept
Dragging, edge resizing, saved dimensions
Narrow window
The title truncates first; every action stays
Input-area badge
Page name only, without Left, Right or Center; hover still explains Agent access

More menu

AspectBehaviour
Items on web pagesAutomatically show what the Agent is using (checkbox, wrapping title, visible description); Show actions (checkbox); Operation history (submenu). Desktops, machines, terminals and applications show only what they support.
SurfaceThe application's own menu. Desktop draws it in the HTML overlay above native pages, through the one native-menu service shared by main-process IPC and control overlays. Web uses the same content and styling.
TogglingMenu stays open and checks update at once; automatic page switches also keep it open
Dismissed byEscape, outside click, More again, closing the preview
Follow with no operated pageKeeps the current page

States

NowEventResult
Preview hiddenClick an entryShows it. Selecting a page by hand turns follow off.
Preview visibleClose previewHides the view only; selection and mode stay. Later Agent activity does not reopen it.
Follow on, preview visibleAgent switches pagePreview updates, only to pages allowed in this session
Viewing a desktop, machine, terminal or applicationAgent switches pagePage following does not replace it
Web page reopenedReopenThe session's saved display policy applies; an explicitly chosen page stays
AnySwitch resourceReplaces the one preview's view
AnySwitch sessionHides the old preview; restores the new session's own selection and visibility
No preview capabilityOpenExisting details, no fake preview or connected state. Unknown, connecting and failed are explicit states.
  • Resource identity, session ownership and access rights do not change with grouping or view switches.
  • Group collapse, panel hiding and preview hiding persist independently. Collapsing hides rows only; hiding the panel leaves the preview. Group collapse is per session and type.

Implementation

PartCodeMust hold
Type groupingsession-resources.ts: groupSessionResources, resource types, preview preferences. session-resources-panel.tsx: labels, row actions, collapse.Pages and machines are separate groups; renaming changes no group; branches of one type stay together
Preview and menuweb-tab-pip.tsxX hides; the row's Preview button reopens; row buttons unchanged; follow semantics agree
Resource-specific viewsExisting Terminal and Application views, provider capabilitiesShared show and hide semantics; no new machine-control backend; unsupported preview falls back to details
StateResource store, session selection, saved preferencesSession isolation, no reopening after hiding, restore on refresh, Close preview unobstructed at minimum width
Desktop menuNative-menu servicePopup in authorized windows, selection return, cancellation cleanup

Session resources · Browser control

Last updated · 2026-11-25