SubAgentFSM — pure planner for sub-agent fade-out ticks. Lifecycle authority: the server-reported sub-agent status is the sole owner of a sub-agent's lifetime (issue #102). PixelOffice reconciles that status into `killSubAgent()` / `reviveSubAgent()` calls; this planner only ru
// Source: https://github.com/SweetSophia/openclaw-pixel-agents | License: MIT | Copyright 2026 Sherina
// Provided via justclaw.it.com; keep this notice with the code.
/** SubAgentFSM — pure planner for sub-agent fade-out ticks.
*
* Lifecycle authority: the server-reported sub-agent status is the sole
* owner of a sub-agent's lifetime (issue #102). PixelOffice reconciles that
* status into `killSubAgent()` / `reviveSubAgent()` calls; this planner only
* runs the fade-out once a character is dying and reports when it should be
* removed. There is intentionally NO age-based expiry: a sub-agent whose
* status stays `running` lives indefinitely.
*/
export const SUBAGENT_FADE_DURATION = 2_000;
export interface SubAgentInput {
dying: boolean;
fadeAlpha: number;
}
export interface
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key