mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-25 03:45:46 -06:00
5fce2f6b0f
Adds validated gateway.controlUi.chatMessageMaxWidth support for grouped Control UI chat messages, carries it through the Gateway bootstrap payload into UI state, applies it as a CSS custom property, and documents the setting while preserving the existing default width.
Fixes #67935.
Validation:
- Targeted config, gateway, and Control UI tests passed locally.
- Config schema/docs checks passed.
- Testbox changed-file gate passed.
- GitHub CI and security checks are green on cea25a4ca9.
19 lines
634 B
TypeScript
19 lines
634 B
TypeScript
export const CONTROL_UI_BOOTSTRAP_CONFIG_PATH = "/__openclaw/control-ui-config.json";
|
|
|
|
export type ControlUiEmbedSandboxMode = "strict" | "scripts" | "trusted";
|
|
|
|
export type ControlUiBootstrapConfig = {
|
|
basePath: string;
|
|
assistantName: string;
|
|
assistantAvatar: string;
|
|
assistantAvatarSource?: string | null;
|
|
assistantAvatarStatus?: "none" | "local" | "remote" | "data" | null;
|
|
assistantAvatarReason?: string | null;
|
|
assistantAgentId: string;
|
|
serverVersion?: string;
|
|
localMediaPreviewRoots?: string[];
|
|
embedSandbox?: ControlUiEmbedSandboxMode;
|
|
allowExternalEmbedUrls?: boolean;
|
|
chatMessageMaxWidth?: string;
|
|
};
|