OPENPROGRAM / INTERACTION DESIGN

Group resources by type; use consistent action icons in the preview window

Custom-menu review passed · Installed-App acceptance recorded separately

The right-hand Resources panel groups entries by type and preserves existing row buttons; the preview window provides Open, More and Close preview actions.

For UI design review. Scope includes groups, resource entries, preview actions and state restoration. The prototype uses sample data and does not connect to real pages, virtual machines or sessions.

01 / CATEGORY

Web pages, virtual machines, terminals…

Group titles come from resource types. Session names and page titles no longer serve as categories.

02 / CONTENT

Baidu: search and find out

Specific content appears only in resource-entry, preview-window and full-view titles.

03 / ACTIONS

Open, hide and close have distinct meanings

Hiding affects only the preview. Closing a page or terminating an environment is a separate resource operation.

Interactive prototype

Click right-hand type headings to collapse groups; click resources to open previews; after clicking the preview's top-right X, reopen it through the original right-hand preview button. Right-hand button positions, icons and behavior remain unchanged.

These buttons are for review only and do not enter the product UI.
OpenProgramCurrent sessionView within session
YouOpen the page and inspect the development environment.
AgentResources remain in the current session. Select content to inspect from the right-hand panel.
Baidu: search and find out
Session input area · This prototype sends no messages

Web-page and virtual-machine examples share a title bar but use different internal views. Actual terminal and application presentation remains governed by existing capabilities; this prototype does not establish that those capabilities are connected to previews.

Stable types, changing content names

Right-hand top-level groups

Display nameClassification basis
Web pagesweb; browser sources map here for compatibility
Virtual machinesvm; declared by the actual integration
Desktopsdesktop
Terminalsterminal
Applicationsapplication
Containersdocker and other registered container types
Remote environmentsremote
Other resourcesUnmapped types; details preserve original type and source

Entry names and supporting information

Use the actual resource name as the primary title, such as Baidu: search and find out or Ubuntu development environment. Page-title changes update the entry without changing its group.

The subtitle displays states such as Operating, Running or Connection failed and, when needed, the owning Agent. Preserve source, branch and connection information without an extra session-title grouping level.

External is a source, not a separate type. External VMs remain under Virtual machines and external pages under Web pages. Only truly unrecognized objects use Other resources.

Show only resources actually associated with the current session. Display types only when they contain resources, in the fixed order above; Agent switches or renaming do not reorder categories. Counts represent valid resources of that type.

Remove closed or exited resources from the active list; existing history capabilities may expose them through details. Retain resources with uncertain status under their original type and show an error rather than treating them as closed. Persist collapse state by session and type.

Keep preview actions explicit

Location / actionVisible changeResource itself
Entry / OpenDisplay the resource within the session; repeated clicks keep it openReuse the same instance without recreation
Preview / Close preview (X)Preview disappears; resource entry remainsPage still exists; environment keeps running
Existing right-hand buttonsKeep Preview, Open in tab and Close page; do not replace them with an open/hide toggleRetain existing behavior; Close page closes the resource, unlike preview X
Preview / OpenSwitch to the same resource's full view; web pages use existing top tabsNo duplicate instance; hide this action when no full-view capability exists
More / Automatically show the page the Agent is operatingWhen enabled, show the page being operated in this session; when disabled, keep the current pageDo not change Agent targets or start/pause tasks
Existing resource action / Close page or terminate environmentUse an explicit action naming the object in a text menu, distinct from the title-bar X that only closes the previewShow only supported actions; environment termination retains existing confirmation and permission rules

Title bar

The page badge associated with the input area shows only the page name, omitting Left / Right / Center position text; hover still explains Agent access.

Resource name + Open icon + More icon + Close preview icon (X). Remove pin and expand/shrink buttons. Retain dragging and edge resizing and compatibility with saved dimensions.

In narrow windows, truncate the title first and retain every action icon. Open uses an outward arrow, More uses dots and Close preview uses X; all have hover hints and accessible names.

More menu

Use the application's own overlay menu. The automatic-display option has an explicit checkbox, wrapping title and separate description below. Keep the description visible rather than putting it in a single-line menu title or tooltip. Desktop uses the existing HTML menu overlay over native pages; Web uses the same content and styling. Display operations use checkboxes; action history retains a submenu. Toggling keeps the menu open and updates checks immediately for consecutive adjustments. Escape, outside click, clicking More again or closing the preview dismisses it. If automatic preview is enabled with no Agent-operated page, retain the current page; automatic page switches also keep the menu open.

Web pages retain Automatically show the page the Agent is operating; action records and display-action markers move to More. VMs, terminals and applications show only actually supported features.

Persist type collapse, resource-panel hiding and preview hiding independently: collapsing a type hides list rows only; hiding the right panel does not automatically hide the preview.

State transitions and boundaries

Resource available, preview hiddenClick entry → Show that resource

Manually selecting a page enters keep-current-page mode. Existing right-hand buttons remain unchanged.

Preview visibleClick Hide → Hide only the view

Retain resource selection and display mode. Later Agent activity must not reopen it automatically.

Follow enabled, preview visibleAgent switches page → Update preview

Select only pages allowed in the current session, without replacing a VM or terminal being viewed.

Implementation order and acceptance

StepChange locationAcceptance condition
1. Type groupinggroupSessionResources and resource-panel title mappingPages and VMs form separate groups; session/page renaming does not change groups; same-type resources across branches remain in one type group
2. Hide and menuWebTabPip, preview menu and bilingual labels; retain right-hand row buttonsPreview X hides the view; the right-hand Preview button reopens it; row-button behavior is unchanged; no pin/expand buttons; menu follow semantics agree
3. Resource-specific presentationExisting Terminal / Application views and provider capabilitiesShared display/hide semantics; no new VM-control backend; unsupported preview falls back to details
4. State and installed-App verificationExisting resource store, session selection and persistent stateSession isolation, no auto-reopening after hiding, refresh restoration and an unobstructed Hide button at minimum width

Settle interactions here first, then change production code, update existing canonical designs, run independent reviews and tests, and finally verify the default App. Refresh the default App after implementation and verify real resource buttons and previews.

Desktop menus use the existing native-menu service. Main-process IPC and control overlays share one service instance; module exports and caller references must agree. Acceptance covers authorized-window popup, selection return and cancellation cleanup.

Current implementation basis and remaining work

The grouping function creates stable categories by resource type; the panel owns bilingual type labels and per-session collapse state. Preview X only hides the preview; automatic display reuses manual/follow state. Existing expanded dimensions remain compatible, while the title bar no longer offers an expand button.

Type grouping, preview icons and the application custom menu have changed; related tests and independent specification/quality reviews passed. Automatic display uses an explicit checkbox and separate description; desktop overlays cover native pages, and Web reuses the same content layout. Full checks and default-App acceptance are recorded in task evidence; the VM example does not represent a new VM-control backend.

Page checks: script syntax, DOM interaction and internal anchors passed; built-in browser policy rejected local HTML, so desktop and narrow-screen visual acceptance remain incomplete. Final task evidence determines site build and link-check status.