# Agent task list

Inspect consumer-owned queued, active, blocked, cancelled, completed and failed tasks within an agent run.

Access: pro. Category: Data. Kind: composite.

## When to use

- Use it when a page needs inspect consumer-owned queued, active, blocked, cancelled, completed and failed tasks within an agent run.
- Choose it when the data structure, labels, and state are supplied by the application and must remain consumer controlled.

## Alternatives

- Choose data-table instead when sortable column controls, native row selection and a scrollable table is the actual interface need, rather than agent task list.

## Setup for agents

Use React 19 and TypeScript. Initialize shadcn for your framework, then merge this exact entry into components.json:

```json
{
  "registries": {
    "@tidal-pro": {
      "url": "https://tidalui.com/r/pro/{name}.json",
      "headers": {
        "Authorization": "Bearer ${TIDALUI_TOKEN}"
      }
    }
  }
}
```

The namespace must be named **@tidal-pro** because transitive Pro dependencies use that namespace. Obtain an agent key from your active Pro account at https://tidalui.com/account. Keep TIDALUI_TOKEN in your local environment, never in components.json, client code, Git or logs.

```sh
export TIDALUI_TOKEN='your-private-agent-key'
npx shadcn@latest add @tidal-pro/waitlist-form
npx shadcn@latest add https://tidalui.com/r/tidal-button.json
```

Free command: `npx shadcn@latest add https://tidalui.com/r/<name>.json`.
Pro command: `npx shadcn@latest add @tidal-pro/<name>`.

Import the base stylesheet and every stylesheet listed on the installed item's metadata. For example:

```tsx
import "./components/ui/tidal.css";
import "./components/ui/hero-section.css";
// Place installed components inside this wrapper:
<div className="tidal-scope" data-theme="dark">...</div>
```

Omit data-theme for the default light theme. Put the attribute on the same tidal-scope element for dark mode. Every component installs the shared free tidal-base dependency. After upgrading, run `npx shadcn@latest add https://tidalui.com/r/tidal-base.json --overwrite` to receive current tokens. Review local modifications before overwriting.

Vite: Use React + TypeScript. Map @/* to ./src/* in paths and Vite resolve.alias. Import tidal.css and each component stylesheet in your application entry.

Next.js 15 App Router: Next.js App Router: import tidal.css and component CSS in app/layout.tsx. Interactive examples belong in a client component with "use client". Map @/* to ./* or ./src/* to match your project.

TypeScript 6: use paths without baseUrl:

```json
{
  "compilerOptions": {
    "paths": {
      "@/*": [
        "./src/*"
      ]
    }
  }
}
```

Pro registry requests are server/CLI-only. Use the same-origin account interface in a browser; cross-origin Authorization preflights are intentionally unsupported.


## Install Agent task list

```sh
npx shadcn@latest add @tidal-pro/agent-task-list
```

Stylesheets: `components/ui/tidal.css`, `components/ui/agent-task-list.css`.

## Minimal example

```tsx
import"./components/ui/tidal.css";
import"./components/ui/agent-task-list.css";
import{TidalAgentTaskList}from"./components/ui/agent-task-list";
export default()=><div className="tidal-scope"><TidalAgentTaskList expandedIds={["example"]} filter={"active"} onExpandedChange={() => {}} onFilterChange={() => {}} tasks={[{id:"example",title:"Demo",status:"active"}]} title={"Demo"}/></div>;
```

## Structured props

- `TidalAgentTaskList.expandedIds: ReadonlyArray<string>`: Required expanded ids value accepted by this exported component.
- `TidalAgentTaskList.filter: "all" | TidalAgentTaskStatus`: Required filter value accepted by this exported component.
- `TidalAgentTaskList.onExpandedChange: (ids: readonly string[], event: MouseEvent<HTMLButtonElement>) => void`: Callback invoked when the expanded change interaction is proposed.
- `TidalAgentTaskList.onFilterChange: (filter: "all" | TidalAgentTaskStatus, event: MouseEvent<HTMLButtonElement>) => void`: Callback invoked when the filter change interaction is proposed.
- `TidalAgentTaskList.tasks: ReadonlyArray<TidalAgentTask>`: Required tasks value accepted by this exported component.
- `TidalAgentTaskList.title: ReactNode`: Required title value accepted by this exported component.
- `TidalAgentTaskList.description?: ReactNode`: Optional description value accepted by this exported component.
- `TidalAgentTaskList.disabled?: boolean | undefined` (default false): Optional disabled value accepted by this exported component.
- `TidalAgentTaskList.getTaskActionProps?: ((task: TidalAgentTask, index: number) => TidalAgentTaskActionProps | undefined) | undefined`: Optional get task action props value accepted by this exported component.
- `TidalAgentTaskList.headingLevel?: "h2" | "h3" | "h4" | "h5" | undefined` (default "h2"): Optional heading level value accepted by this exported component.
- `TidalAgentTaskList.labels?: Partial<TidalAgentTaskListLabels> | undefined`: Optional labels value accepted by this exported component.
- `TidalAgentTaskList.onCancel?: ((task: TidalAgentTask, event: MouseEvent<HTMLButtonElement>) => void) | undefined`: Callback invoked when the cancel interaction is proposed.
- `TidalAgentTaskList.onRetry?: ((task: TidalAgentTask, event: MouseEvent<HTMLButtonElement>) => void) | undefined`: Callback invoked when the retry interaction is proposed.
- `TidalAgentTaskList.pending?: boolean | undefined` (default false): Optional pending value accepted by this exported component.

## Complete usage example

[Source](https://tidalui.com/examples/agent-task-list.tsx) | [Manifest](https://tidalui.com/examples/agent-task-list.json). Install the listed additional dependencies. Consumer fixture: TypeScript pass; Vite pass. This fixture check is distinct from the actual shadcn install receipt.

```tsx
import "./components/ui/tidal.css";

import { useState } from "react";

import { TidalAgentTaskList, type TidalAgentTask, type TidalAgentTaskStatus } from "./components/ui/agent-task-list";

import "./components/ui/agent-task-list.css";



const tidalExampleStyles = ".agent-task-demo {\n  display: grid;\n  width: 100%;\n  max-width: 920px;\n  min-width: 0;\n  gap: 10px;\n  margin-inline: auto;\n}\n.agent-task-demo > footer {\n  margin: 0;\n  padding: 0;\n  border: 0;\n  color: var(--t-muted);\n  font-size: 11px;\n  line-height: 1.45;\n  text-align: center;\n}";

const initialTasks: readonly TidalAgentTask[] = [
  {
    id: "brief",
    title: "Read the sample project brief",
    status: "completed",
    assignee: "Ava",
    detail: "The goals and constraints are ready for the run.",
  },
  {
    id: "interface",
    title: "Draft the settings interface",
    status: "active",
    assignee: "Noah",
    dependsOn: ["brief"],
    description: "Preparing the responsive form and review state.",
  },
  {
    id: "copy",
    title: "Review empty-state copy",
    status: "blocked",
    assignee: "Mila",
    dependsOn: ["interface"],
    blockedReason: "Waiting for the interface draft.",
  },
  {
    id: "qa",
    title: "Check the phone layout",
    status: "queued",
    dependsOn: ["interface"],
  },
];

export function AgentTaskListDemo() {
  const [tasks, setTasks] = useState(initialTasks),
    [filter, setFilter] = useState<"all" | TidalAgentTaskStatus>("all"),
    [expanded, setExpanded] = useState<readonly string[]>(["interface"]),
    [status, setStatus] = useState(
      "Sample tasks. Changes stay in this preview.",
    );
  return (
    <div className="agent-task-demo">
      <TidalAgentTaskList
        title="Run tasks"
        description="Inspect the work queued for this sample run."
        tasks={tasks}
        filter={filter}
        onFilterChange={setFilter}
        expandedIds={expanded}
        onExpandedChange={setExpanded}
        onCancel={(task) => {
          setTasks((current) =>
            current.map((item) =>
              item.id === task.id ? { ...item, status: "cancelled" } : item,
            ),
          );
          setStatus(`${task.title} was cancelled locally.`);
        }}
        onRetry={(task) => {
          setTasks((current) =>
            current.map((item) =>
              item.id === task.id ? { ...item, status: "queued" } : item,
            ),
          );
          setStatus(`${task.title} returned to the local queue.`);
        }}
      />
      <footer>{status}</footer>
    </div>
  );
}

export default function AgentExample() {
  return (
    <div className="tidal-scope" data-theme="light" dir="ltr">
      <style>{tidalExampleStyles}</style>
      <AgentTaskListDemo />
    </div>
  );
}

```

## Gotchas

- The host application owns data, validation, persistence, navigation, and service side effects described by this API.

## Theme and accessibility

{"tokens":["--t-accent","--t-border","--t-border-strong","--t-canvas","--t-danger","--t-display","--t-ease-out","--t-ease-spring","--t-faint","--t-font","--t-ink","--t-line","--t-muted","--t-primary","--t-primary-contrast","--t-radius-card","--t-radius-control","--t-radius-overlay","--t-radius-panel","--t-ring","--t-shadow-lg","--t-shadow-soft","--t-soft","--t-subtle","--t-surface","--t-wash"],"darkMode":true}

{"keyboard":["Tab and Shift+Tab follow the component's native focus order.","Arrow-key behavior follows the exported composite-control implementation."],"aria":"The component wires labels and relationships from consumer-provided visible text or ARIA props; preserve those labels in production.","notes":"Verify focus visibility, text alternatives, contrast, and reduced motion in the final composition."}

Consumer-owned unique task IDs, exact queued/active/blocked/cancelled/completed/failed status, descriptions, assignees, known dependencies, blocked reasons and detail content. Controlled status filter and expansion callbacks receive native click events. Task toggles are described by localized status, and known dependencies display their task titles. Optional Cancel is shown only for queued/active tasks and Retry only for blocked/cancelled/failed tasks; consumers own all state and effects. getTaskActionProps resolves once per visible task per render, native handlers run first for enabled actions, prevention stops proposals, disabled and aria-disabled=true resolve to native disabled, and explicit false remains enabled. Arrow Up/Down/Home/End move among visible detail toggles with IME/modifier guards and list-only reveal. Removed, filtered or newly disabled focused controls recover only from the exact source/body to the same task toggle, nearest visible toggle or labelled root. Cleanup-aware root/toggle/action refs, h2-h5 headings, numeric ReactNode detail slots, 100-task validation, empty/error states, 44px actions, 16px coarse controls, 180/320/390 responsive layouts, RTL, forced colors and reduced motion are supported. The component never schedules, executes, cancels or retries a task by itself.
