Kanshō/Task reroute control

Task reroute control

The four ways to redirect a task that is not going where it should: reassign to another agent, split into subtasks, duplicate, or mark blocked. The destructive block action carries the danger tone.

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

Default

All four actions

Last action: none yet

Subset

Reassign and split only

Disabled

Terminal task — no rerouting

Component documentation

Task Reroute Control

components/tasks/task-reroute-control.tsx

Purpose

Offers reassign, split, duplicate, and block operations for a task.

Appropriate use

Use when an operator can redirect stalled work and the host can confirm and apply the chosen operation.

Example

components/tasks/task-reroute-control.tsx has a representative live example in the "Default" section on /components/task-reroute-control.

States

Actions are reassign, split, duplicate, and block; the set is caller-ordered, the whole control can be disabled, and destructive block uses confirmation.

API and props

TaskRerouteControl accepts actions, onAction, disabled, and className.

Dependencies

Direct imports are React, Lucide icons, and cn.

Accessibility

Actions are native buttons with labels; block uses a keyboard-reachable confirmation step and the live region announces the pending confirmation.

Limitations

It does not choose targets, mutate tasks, validate permissions, or show pending and failed host results; every action is disabled when onAction is omitted.

Source

Source: components/tasks/task-reroute-control.tsx.

Full pack

components/tasks/task-reroute-control.tsx is documented at /components/task-reroute-control and installs only through the single Kansho full pack; no individual component install is offered.