Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion src/config/config-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,11 @@ export interface AtomicAgentConfig {
*/
tui: {
theme: string;
/**
* Interval in ms for cycling rotating prompt placeholders. Set to `0`
* to disable the rotating suggestions entirely. Default `4000`.
*/
placeholderRotationMs: number;
};
/**
* Anonymous product analytics (PostHog). Mirrors
Expand Down Expand Up @@ -1271,6 +1276,11 @@ export interface UserConfigFile {
*/
tui: {
theme: string;
/**
* Interval in ms for cycling rotating prompt placeholders. Set to `0`
* to disable the rotating suggestions entirely. Default `4000`.
*/
placeholderRotationMs: number;
};
/**
* Anonymous product analytics (PostHog). Added in config v33. Older
Expand Down Expand Up @@ -1316,7 +1326,9 @@ export interface UserConfigFile {
// v31: skills gains `clawhub` (ClawHub registry — the primary skill
// marketplace). Older files inherit it enabled against the public registry
// with suspicious skills hidden.
export const USER_CONFIG_VERSION = 33 as const;
// v34: tui gains `placeholderRotationMs` (disable rotating prompt
// placeholders by setting to 0).
export const USER_CONFIG_VERSION = 34 as const;

/**
* Config v21+ flips the full memory-v2 fabric on by default. Upgrades
Expand Down Expand Up @@ -1429,6 +1441,7 @@ const SUPPORTED_INPUT_VERSIONS: readonly number[] = [
30,
31,
32,
33,
USER_CONFIG_VERSION,
];

Expand Down Expand Up @@ -1663,6 +1676,7 @@ export const USER_CONFIG_DEFAULTS: UserConfigFile = {
},
tui: {
theme: "auto",
placeholderRotationMs: 4000,
},
analytics: {
enabled: true,
Expand Down Expand Up @@ -3264,6 +3278,10 @@ export function parseUserConfigFile(raw: unknown): UserConfigFile {
tui.theme ?? USER_CONFIG_DEFAULTS.tui.theme,
"tui.theme",
),
placeholderRotationMs: parseNonNegativeInt(
tui.placeholderRotationMs ?? USER_CONFIG_DEFAULTS.tui.placeholderRotationMs,
"tui.placeholderRotationMs",
),
},
analytics: {
enabled: parseBool(
Expand Down
1 change: 1 addition & 0 deletions src/config/load-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,7 @@ export function loadConfig(): AtomicAgentConfig {
},
tui: {
theme: user.tui.theme,
placeholderRotationMs: user.tui.placeholderRotationMs,
},
analytics: {
enabled: user.analytics.enabled,
Expand Down
7 changes: 6 additions & 1 deletion src/tui/tui-app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import {
useState,
type ReactElement,
} from "react";
import { getConfig } from "../config/index.js";
import { reduceTuiState } from "./agent-event-reducer.js";
import type { TuiAction } from "./tui-action.js";
import { handleAppKey } from "./app-key-bindings.js";
Expand Down Expand Up @@ -765,7 +766,11 @@ export function TuiApp({
<PromptShell
value={state.inputValue}
placeholder="Type a message or `/` for commands…"
rotatingPlaceholders={PROMPT_PLACEHOLDERS}
rotatingPlaceholders={
getConfig().tui.placeholderRotationMs > 0
? PROMPT_PLACEHOLDERS
: []
}
model={promptLlm.model}
provider={promptLlm.provider}
leftSlot={promptLeftSlot}
Expand Down