Kanshō/Long-running task

Long-running task card

Used when an agent task takes long enough that the user might step away. Reports elapsed and ETA, offers detach-and-notify, surfaces the last meaningful update.

Included in the single kansho full pack. Components are not offered as separate installs.

Determinate — running with ETA

Pause, Cancel, Detach, and Notify are static-preview callbacks

Indexing knowledge base for connections pass

Running

Reading 412 markdown files and building a similarity graph.

Elapsed 2m 14s62%ETA ≈ 1m 30s
Last update· just now

Processing topics/agent-execution-product-brief.md (item 254 of 412).

Indeterminate — unknown duration

Cancel, Detach, and Notify are static-preview callbacks

Re-training preference embeddings

Running

No fixed step count; depends on convergence.

Elapsed 4m 02s
Last update· 6s ago

Loss 0.412 (was 0.480 at step 14).

Error & recovery

Static preview callbacks show placement; without handlers the footer stays empty

Refresh search index

Failed
Elapsed 12s18%
Last update· moments ago

Indexer crashed: out of memory at item 4,210.

Refresh search index

Failed
Elapsed 12s18%
Last update· moments ago

Indexer crashed: out of memory at item 4,210.

State matrix

The running-row Notify action is a static-preview callback
Paused — awaiting approval

Apply 142 file rename

Paused
Elapsed 38s92%ETA ≈ 4s
Last update· now

Awaiting human approval for filesystem:write.

Complete

Generate weekly report

Success
Elapsed 3m 41s100%
Last update· 2 min ago

Saved to /reports/2026-05-19-weekly.md.

Failed

Refresh search index

Failed
Elapsed 12s18%
Last update· moments ago

Indexer crashed: out of memory at item 4,210.

Detached — background

Rebuild design tokens

Running

Running in background; you'll be pinged when it finishes.

Elapsed 6m 22s42%ETA ≈ 8m

Included components

This page is the canonical destination for these components. All ship in the single Kansho pack.

Long-running task card

components/agent/long-running-task-card.tsx

Component documentation

Long-running task card

components/agent/long-running-task-card.tsx

Purpose

Summarises a long task with status, elapsed time, ETA, progress, updates, and recovery controls.

Appropriate use

Use for background work that needs persistent progress and operator intervention.

Example

components/agent/long-running-task-card.tsx has a representative live example in the "Error & recovery" section on /components/long-running-task.

States

Uses the shared status set; progress may be determinate or indeterminate, errors may expose retry/dismiss, and running tasks may expose pause, cancel, detach, or notify.

API and props

LongRunningTaskCard accepts title, description, status, elapsed, eta, progress, lastUpdate fields, notifyEnabled, action callbacks, and className.

Dependencies

Direct imports are React, Lucide icons, StatusGlyph, StatusPill, and cn.

Accessibility

Named buttons expose notify pressed state and background-run intent; visible status text accompanies the glyph.

Limitations

Elapsed and ETA strings are caller-supplied, progress is not a native progressbar, and the indeterminate animation relies on the global reduced-motion rule.

Source

Source: components/agent/long-running-task-card.tsx.

Full pack

components/agent/long-running-task-card.tsx is documented at /components/long-running-task and installs only through the single Kansho full pack; no individual component install is offered.