// Raw debug view (R7): the stored task record and the task's events, verbatim. // // The events are deliberately NOT filtered to the selected attempt. A debug // view that silently hid events would be worse than useless, so every event is // shown and each carries its own `attempt` for the operator to attribute. The // selected attempt is reported in the note and in the envelope's own `attempt` // field; nothing here is summarised, projected or prettified beyond JSON // indentation. export function DebugView({ state, attempt, onRetry }) { if (state === undefined) { return
Loading the stored record…
; } if (state === null) { return (
Could not load the stored record
archied did not answer for this task's debug view. It may be restarting — retry, or check the daemon.
{onRetry ? ( ) : null}
); } return (

The stored task record and its events, verbatim. Events are unfiltered on purpose: this is every event the task has, and each one carries the attempt it belongs to. Attempt {attempt}{" "} is the one selected above.

{JSON.stringify(state, null, 2)}
); }