Skip to content
Draft
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
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
or `release-policy.json`. OpenBot is live: anything a released app uses keeps working for 12 months,
and a migration never breaks a running server.

Before you plan a screen or a feature for the phone app, the web app or OpenBot Desktop, read
[docs/app-guidelines.md](docs/app-guidelines.md): the one color scheme every app keeps to, what the
phone app is for, and the stack it is built with.

Skills for coding agents live in `.claude/skills/<name>/SKILL.md`. Claude Code finds them on its
own. Other agents: when a task matches a skill, read its `SKILL.md` before starting.

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,11 @@ Newest first. `Unreleased` is what is on `main` and not yet tagged.

### Smaller changes

- **Warnings and successes are drawn with the theme's colors.** What waits on a person, or may not go
as they expect, is the new `--warning` token, and what worked is `--success`, in place of Tailwind's
amber and green. A skin's `--success` now colors them too, and a theme in `brand.yaml`'s
`skin.stylesheet` may set `--success`, `--warning` and `--empty-pattern-color`. The light warning
is a darker amber than before, easier to read on white.
- **A Bot's command is no longer refused as "not saved", and the Bot gets what it printed.** Every
command a Bot runs is checked against the saved conversation first, and the saved copy can trail
the conversation on screen by several seconds on a busy day. A command checked too soon was
Expand Down
8 changes: 3 additions & 5 deletions app/src/components/admin/controls/describe-capabilities.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function settingWords(change: CapabilityChange): {
change.scopeKind === "team" || change.scopeKind === "group"
? "Grant"
: "On",
className: "text-emerald-600 dark:text-emerald-400",
className: "text-success",
};
}

Expand Down Expand Up @@ -195,7 +195,7 @@ function verdictOf(person: PreviewPerson): { text: string; className: string } {
if (person.capabilities.some(gains))
return {
text: "Gains access",
className: "text-emerald-600 dark:text-emerald-400",
className: "text-success",
};
return { text: "Keeps access", className: "text-muted-foreground" };
}
Expand Down Expand Up @@ -325,9 +325,7 @@ export function PermissionsPreview({
</FieldDescription>
</div>
{data.warning ? (
<p className="text-amber-600 text-sm dark:text-amber-500">
{data.warning}
</p>
<p className="text-warning text-sm">{data.warning}</p>
) : null}
{data.people.length > 0 ? (
<PageRows>
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/admin/controls/network-describe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function HostRows({ hosts }: { hosts: NetworkReplayHost[] }) {
className={
block
? "font-medium text-destructive text-sm"
: "font-medium text-emerald-600 text-sm dark:text-emerald-400"
: "font-medium text-success text-sm"
}
>
{block ? "Would block" : "Would allow"}
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/admin/shared-computers-notice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function SharedComputersNotice({ className }: { className?: string }) {
return (
<p
className={cn(
"rounded-md border border-amber-500/40 bg-amber-500/10 px-3 py-2 text-sm",
"rounded-md border border-warning/40 bg-warning/10 px-3 py-2 text-sm",
className,
)}
data-shared-computers-notice=""
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/agents/new-bot-sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ function CreatedView({ name }: { name: string }) {
</motion.div>
<motion.span
animate={{ opacity: 1, scale: 1 }}
className="absolute -right-0.5 -bottom-0.5 flex size-7 items-center justify-center rounded-full bg-emerald-500 text-white ring-3 ring-popover"
className="absolute -right-0.5 -bottom-0.5 flex size-7 items-center justify-center rounded-full bg-success text-white ring-3 ring-popover"
initial={{ opacity: 0, scale: 0 }}
transition={{
delay: 0.45,
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/approvals/describe-rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ function replayRowOf(change: BacktestChange): ReplayRow {
: change.change === "removes_ask"
? change.person === "deny"
? "text-destructive"
: "text-amber-600 dark:text-amber-500"
: "text-warning"
: "text-foreground",
note: [fixed ? change.reason : null, answer].filter(Boolean).join(" "),
};
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/approvals/guidance-backtest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ const WOULD: Record<GuidanceBacktestRow["would"], string> = {

const COLOURS: Record<GuidanceBacktestRow["outcome"], string> = {
let_through_denied: "text-destructive",
asked_allowed: "text-amber-600 dark:text-amber-500",
asked_allowed: "text-warning",
agree: "text-foreground",
unreviewed: "text-muted-foreground",
};
Expand Down Expand Up @@ -158,7 +158,7 @@ export function GuidanceBacktestField({
</p>
) : null}
{stale && !run.isPending ? (
<p className="text-amber-600 text-sm dark:text-amber-500">
<p className="text-warning text-sm">
You've changed the guidance since it was tested. Test it again to
see what your edit changes.
</p>
Expand Down
10 changes: 2 additions & 8 deletions app/src/components/audit/ask-the-trail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,7 @@ export function AuditAnswerNote({
return (
<div className="flex max-w-3xl flex-col gap-1.5 text-sm">
{answer.answerable === "no" ? (
<p
className="flex gap-1.5 text-amber-700 dark:text-amber-500"
data-audit-unanswered
>
<p className="flex gap-1.5 text-warning" data-audit-unanswered>
<IconInfoCircle className="mt-0.5 size-4 shrink-0" />
<span>The trail can't answer this. {answer.unanswered}</span>
</p>
Expand All @@ -136,10 +133,7 @@ export function AuditAnswerNote({
</p>
) : null}
{answer.answerable === "partly" && answer.unanswered ? (
<p
className="flex gap-1.5 text-amber-700 dark:text-amber-500"
data-audit-unanswered
>
<p className="flex gap-1.5 text-warning" data-audit-unanswered>
<IconAlertTriangle className="mt-0.5 size-4 shrink-0" />
<span>The rows answer part of this. {answer.unanswered}</span>
</p>
Expand Down
10 changes: 4 additions & 6 deletions app/src/components/audit/audit-cells.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1065,9 +1065,7 @@ export function StartedByCell({
return (
<span
className={
unattended
? "font-medium text-amber-600 dark:text-amber-500"
: "text-muted-foreground"
unattended ? "font-medium text-warning" : "text-muted-foreground"
}
>
{startedByLine(startedByText(event, nameFor, deployment, viewer))}
Expand Down Expand Up @@ -1103,7 +1101,7 @@ export function DecisionCell({
outcome === "refused"
? "font-medium text-destructive"
: outcome === "did-not-happen"
? "font-medium text-amber-600 dark:text-amber-500"
? "font-medium text-warning"
: "text-muted-foreground"
}
>
Expand Down Expand Up @@ -1189,14 +1187,14 @@ function RuleExpression({ expression }: { expression: string }) {
/** The square at the start of each row: what happened, at a glance down the log. */
export const OUTCOME_MARK: Record<AuditOutcome, string> = {
refused: "bg-destructive",
"did-not-happen": "bg-amber-500",
"did-not-happen": "bg-warning",
allowed: "bg-muted-foreground/20",
};

/** The faint tint on rows worth stopping at. Allowed rows stay plain. */
export const OUTCOME_ROW: Record<AuditOutcome, string> = {
refused: "bg-destructive/5 hover:bg-destructive/10",
"did-not-happen": "bg-amber-500/5 hover:bg-amber-500/10",
"did-not-happen": "bg-warning/5 hover:bg-warning/10",
allowed: "",
};

Expand Down
4 changes: 2 additions & 2 deletions app/src/components/bot-profile/activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export function ActivityRow({
}: {
agentId: string;
item: ActivityItem;
/** Under way now: a pulsing dot on its icon, amber when it is waiting on the person. */
/** Under way now: a pulsing dot on its icon, the warning colour when it is waiting on the person. */
live?: boolean;
}) {
const stop = useMutation(stopHandoffMutationOptions(queryClient));
Expand Down Expand Up @@ -144,7 +144,7 @@ export function ActivityRow({
aria-hidden="true"
className={cn(
"absolute -top-0.5 -right-0.5 size-2 animate-pulse rounded-full ring-2 ring-card",
item.needsYou ? "bg-amber-500" : "bg-emerald-500",
item.needsYou ? "bg-warning" : "bg-success",
)}
/>
) : null}
Expand Down
10 changes: 3 additions & 7 deletions app/src/components/boundaries/rule-reading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export function ReadingStatus({
<div className={cn("flex flex-col gap-2", edited && "opacity-60")}>
{check.ok ? (
<p className="flex items-center gap-1.5">
<IconCircleCheck className="size-4 shrink-0 text-emerald-600 dark:text-emerald-400" />
<IconCircleCheck className="size-4 shrink-0 text-success" />
{passed}
</p>
) : (
Expand All @@ -67,13 +67,9 @@ export function ReadingStatus({
<p className="mt-0.5 text-muted-foreground">{explanation}</p>
</div>
) : null}
{warning ? (
<p className="text-amber-600 dark:text-amber-500">{warning}</p>
) : null}
{warning ? <p className="text-warning">{warning}</p> : null}
</div>
{edited ? (
<p className="text-amber-600 dark:text-amber-500">{edited}</p>
) : null}
{edited ? <p className="text-warning">{edited}</p> : null}
</div>
);
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/browser/learning-next.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,8 @@ export function LearningNextRow({
<ItemMedia
variant="icon"
className={cn(
tone === "ok" && "text-emerald-600 dark:text-emerald-400",
tone === "warn" && "text-amber-600 dark:text-amber-400",
tone === "ok" && "text-success",
tone === "warn" && "text-warning",
tone === "busy" && "[&_svg]:animate-spin",
)}
>
Expand Down
8 changes: 4 additions & 4 deletions app/src/components/browser/narration.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export function NativeNarrationRow({
{/* Decorative: the word beside it says it is live. */}
<span
aria-hidden="true"
className="size-1.5 shrink-0 rounded-full bg-emerald-500 motion-safe:animate-pulse"
className="size-1.5 shrink-0 rounded-full bg-success motion-safe:animate-pulse"
/>
{nativeNarrationSentence(voice)}
</span>
Expand Down Expand Up @@ -170,13 +170,13 @@ export function NarrationSwitch({
>
{listening ? (
<span
className="inline-flex items-center gap-1.5 text-emerald-600 dark:text-emerald-400"
className="inline-flex items-center gap-1.5 text-success"
role="status"
>
{/* Decorative: the word beside it says it is live. */}
<span
aria-hidden="true"
className="size-1.5 shrink-0 rounded-full bg-emerald-500 motion-safe:animate-pulse"
className="size-1.5 shrink-0 rounded-full bg-success motion-safe:animate-pulse"
/>
Listening
</span>
Expand Down Expand Up @@ -320,7 +320,7 @@ export function NarrationRow({
{/* Decorative: the word beside it says it is live. */}
<span
aria-hidden="true"
className="size-1.5 shrink-0 rounded-full bg-emerald-500 motion-safe:animate-pulse"
className="size-1.5 shrink-0 rounded-full bg-success motion-safe:animate-pulse"
/>
{sentence}
</span>
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/browser/recording.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -299,12 +299,12 @@ export function StoppedIcon({
return stopped.empty || stopped.kept || stopped.retrying ? (
<IconAlertTriangle
aria-hidden="true"
className={cn("text-amber-600 dark:text-amber-400", className)}
className={cn("text-warning", className)}
/>
) : (
<IconCircleCheck
aria-hidden="true"
className={cn("text-emerald-600 dark:text-emerald-400", className)}
className={cn("text-success", className)}
/>
);
}
Expand Down
8 changes: 4 additions & 4 deletions app/src/components/channels/coding-tool-cards.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ function OutcomeStatus({
);
if (outcome.state === "failed")
return (
<span className="shrink-0 text-xs text-amber-600 dark:text-amber-500">
<span className="shrink-0 text-xs text-warning">
{outcome.exitCode === undefined
? "Didn't work"
: `Exit code ${outcome.exitCode}`}
Expand Down Expand Up @@ -252,14 +252,14 @@ function diffRows(before: string, after: string): DiffRow[] {
}

const ROW_TONES = {
add: "bg-emerald-500/10 dark:bg-emerald-500/15",
add: "bg-success/10",
del: "bg-red-500/10 dark:bg-red-500/15",
same: "text-muted-foreground",
gap: "text-muted-foreground",
} as const;

const MARK_TONES = {
add: "text-emerald-700 dark:text-emerald-400",
add: "text-success",
del: "text-red-700 dark:text-red-400",
} as const;

Expand Down Expand Up @@ -418,7 +418,7 @@ export function TodoCard({ todos }: { todos: readonly Todo[] }) {
className={cn(
"mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-[5px] border text-[10px]",
status === "completed"
? "border-transparent bg-emerald-500 text-white"
? "border-transparent bg-success text-white"
: status === "in_progress"
? "border-foreground/60"
: "border-border",
Expand Down
6 changes: 1 addition & 5 deletions app/src/components/channels/subtask-step.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,7 @@ function SubtaskStatus({
if (handedBack)
return <span className="shrink-0 text-muted-foreground">Handed back</span>;
if (step.failed)
return (
<span className="shrink-0 text-amber-600 dark:text-amber-500">
Didn't finish
</span>
);
return <span className="shrink-0 text-warning">Didn't finish</span>;
const said = steps || (answered ? ANSWERED_DIRECTLY : "");
return said ? (
<span className="shrink-0 text-muted-foreground">{said}</span>
Expand Down
6 changes: 1 addition & 5 deletions app/src/components/channels/tool-activity.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -742,11 +742,7 @@ export function StepStatus({
if (step.refused)
return <span className="shrink-0 text-destructive">Blocked</span>;
if (step.failed)
return (
<span className="shrink-0 text-amber-600 dark:text-amber-500">
Didn't work
</span>
);
return <span className="shrink-0 text-warning">Didn't work</span>;
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion app/src/components/channels/tool-line.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export function ToolLine({
const tone = refused
? "text-destructive"
: failed
? "text-amber-600 dark:text-amber-500"
? "text-warning"
: "text-muted-foreground";

/*
Expand Down
4 changes: 1 addition & 3 deletions app/src/components/computer/command-output.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ export function CommandOutput({
</p>
) : null}
{failed ? (
<p className="text-amber-600 text-xs dark:text-amber-500">
Exit code {exitCode}.
</p>
<p className="text-warning text-xs">Exit code {exitCode}.</p>
) : null}
</div>
);
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/computer/computer-controls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function ComputerChatControls({
{needsYou ? (
<span
aria-label="Needs you"
className="absolute top-1 right-1 size-2 rounded-full bg-amber-500 ring-2 ring-background"
className="absolute top-1 right-1 size-2 rounded-full bg-warning ring-2 ring-background"
role="img"
/>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/computer/computer-panel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ function LiveComputerPanel({
</TabsList>
{youHaveIt ? (
<span
className="rounded-full bg-amber-500/15 px-2.5 py-1 font-medium text-amber-800 text-xs dark:text-amber-300"
className="rounded-full bg-warning/15 px-2.5 py-1 font-medium text-warning text-xs"
role="status"
>
You have control
Expand Down
2 changes: 1 addition & 1 deletion app/src/components/computer/computer-terminal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function ComputerTerminal({ computerId }: { computerId: string }) {
) : null}
</div>
<div
className={`flex flex-wrap items-center justify-between gap-2 border-t px-3 py-2 ${driving ? "bg-amber-500/10" : ""}`}
className={`flex flex-wrap items-center justify-between gap-2 border-t px-3 py-2 ${driving ? "bg-warning/10" : ""}`}
>
{driving ? (
<span className="text-sm">
Expand Down
4 changes: 2 additions & 2 deletions app/src/components/computer/computer-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ export function ComputerView({

{/* The request reason appears above the always-available ownership controls. */}
{!driving && !settled && control?.requested ? (
<div className="flex items-start justify-between gap-3 border-t bg-amber-500/10 px-3 py-2 text-sm">
<div className="flex items-start justify-between gap-3 border-t bg-warning/10 px-3 py-2 text-sm">
<span>
<strong className="font-medium">The Bot needs you.</strong>{" "}
{reason}
Expand Down Expand Up @@ -1080,7 +1080,7 @@ export function ComputerView({
quietly waiting on them.
*/}
{!settled && driving && !control?.transitioning ? (
<div className="flex flex-wrap items-center justify-between gap-2 border-t bg-amber-500/10 px-3 py-2">
<div className="flex flex-wrap items-center justify-between gap-2 border-t bg-warning/10 px-3 py-2">
<span className="text-sm">
<strong className="font-medium">You have control.</strong> The Bot
waits until you hand it back. Open the screen to click and type.
Expand Down
Loading
Loading