Worker Steering Controls (components/SteeringControls.tsx)

bernstein · web/src/components/SteeringControls.tsx · typescript · Apache-2.0
ui, pos, security, fw:react, tag:task, tag:control

UI component offering pause, resume, guidance, redirect, and abort actions for a running worker, sending receipt‑backed commands that are audited before execution and displaying the receipt hash as proof.

// Source: https://github.com/sipyourdrink-ltd/bernstein | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
// Receipt-backed steering controls for a single running worker (#2508).
//
// Pause, resume, guidance, redirect, or abort a worker mid-task. Every action
// is a receipt first and an effect second: the server binds the command into
// the audit chain before any effect runs and returns the receipt hash the
// delivered effect references. The "queued" indicator below the action bar is
// that returned receipt - proof the intervention was recorded, not just sent.

import { useState } from 'react';
import { useMutation } from '@tanstack/react-query';
import { CircleSlash, Compass,

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key