<char-agent-shell>
<char-agent-shell> custom element.
Opinionated host shell that composes a persistent inner <char-agent> and
owns responsive mode policy plus host layout orchestration.
This shell does not render chat controls, prompts, or composer UI.
Visible assistant UI is always iframe-owned.
Policy:
- closed to
pip - open desktop to
inline - open narrow viewport to
fullscreen
Registration and import
Auth, open-state, and shell helpers
Attributes
Properties
Methods
setAuth(options: ConnectOptions | null): void
Convenience method for declarative wrappers.
Applies auth when provided, otherwise clears auth.
Parameters:
options(ConnectOptions | null): Auth payload to connect, ornullto disconnect.
void
connect(options: ConnectOptions): void
Connects shell authentication and starts availability health checks.
Parameters:
options(ConnectOptions): Authentication payload (publishableKey+ optionalidToken).
void
disconnect(): void
Clears authentication and disconnects the inner <char-agent>.
Returns: void
setHostContext(hostContext: CharHostContext): void
Merges and forwards host context to the inner <char-agent>.
Shell-owned fields (displayMode, availableDisplayModes) are ignored.
Parameters:
hostContext(CharHostContext): Partial host context patch to forward.
void
setOpen(open: boolean): void
Sets shell open state.
Parameters:
open(boolean): Next desired open state.
void
toggleOpen(): void
Toggles shell open state.
Returns: void
Events
Slots
None.CSS Custom Properties
Forwards styling to the inner<char-agent>. See CSS Variables Reference.

