AIPanel UI component

Purpose

AIPanel is the assistant-pane frame for a workbench. Use it inside AssistantShell when a product screen needs a consistent assistant surface for child components.

Inputs

Field Required Type Behavior
title no string Pane title; default Assistant.
status no string Short status text, such as Idle, Working, or a product error label.
children yes gx.Node Assistant content composed from focused Bus UI components.
onClose no func(AIPanelCloseEvent) gx.Result Enables the close control. Omit when the pane is controlled only by the surrounding shell.

Boundary

AIPanel does not own conversation records, provider runs, file writes, command execution, or approval decisions. It renders the child nodes it receives and emits only the close callback when that prop is supplied.

type AIPanelCloseEvent struct {
	Reason string
}

Reason is button when the panel close button is activated and keyboard when the host maps an accepted keyboard close gesture to the panel callback. The component emits no other reason values in this candidate.

Example

var panel = <AIPanel
  title="Assistant"
  status={assistantStatus}
  onClose={closeAssistant}>
  <Text value={assistantSummary}></Text>
</AIPanel>

Runtime Terms

Callback props documents function callback props, validation, and confirmation policy. When onClose is omitted, the local close control is hidden.

Expression children document ordinary Go expressions inside markup bodies.

Sources