Kanshō/Replay / fork checkpoint control

Replay / fork checkpoint control

A time-travel control for a single checkpoint: retry from here, branch from here, or compare a branch outcome. The action set narrows as the checkpoint moves through its lifecycle.

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

Checkpoint states

Static preview: Replay, Fork, and Compare require host callbacks
ckpt-7 · after tool callAvailable
captured 6m ago

State captured after the source-search tool call.

ckpt-7 · after tool callReplaying
captured 6m ago

Re-running from this checkpoint with the same inputs.

ckpt-7 · after tool callForked
captured 6m ago

Branched run started — exploring a higher temperature.

ckpt-7 · after tool callBranch accepted
captured 6m ago

Branch outcome adopted as the new main path.

ckpt-7 · after tool callBranch abandoned
captured 6m ago

Branch discarded; original path retained.

Component documentation

Replay Fork Checkpoint Control

components/tasks/replay-fork-checkpoint-control.tsx

Purpose

Presents replay, fork, and compare operations for a captured task checkpoint.

Appropriate use

Use in a time-travel workflow when the host owns checkpoint execution and branch state.

Example

components/tasks/replay-fork-checkpoint-control.tsx has a representative live example in the "Checkpoint states" section on /components/replay-fork-checkpoint-control.

States

Checkpoint states are available, replaying, forked, branch-abandoned, and branch-accepted; compare appears for forked and branch-accepted states when onCompare is supplied.

API and props

ReplayForkCheckpointControl accepts label, capturedAt, summary, state, onReplay, onFork, onCompare, and className.

Dependencies

Direct imports are React, Lucide icons, Spinner, StatusPill, shared task types, and cn.

Accessibility

State and checkpoint details are textual; available actions are native buttons and the replaying state includes a labelled loader.

Limitations

It does not execute checkpoints, confirm branching, update state, or report callback failure; the host must supply lifecycle feedback.

Source

Source: components/tasks/replay-fork-checkpoint-control.tsx.

Full pack

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