M2.5 Stall Detector Detects when an autopilot run has been inactive for too long. Only checks stall while orchestrationState is 'running'. /
// Source: https://github.com/TeFuirnever/oh-my-matrix | License: MIT | Copyright 2026 oh-my-matrix contributors
// Provided via justclaw.it.com; keep this notice with the code.
/**
* M2.5 Stall Detector
*
* Detects when an autopilot run has been inactive for too long.
* Only checks stall while orchestrationState is 'running'.
*/
export interface StallCheckInput {
orchestrationState: string;
lastActivityAt?: number;
now: number;
stallTimeoutMs: number;
}
export interface StallResult {
stalled: boolean;
stallDurationMs?: number;
}
/**
* Check if the run has stalled based on last activity time.
* Considers stall when orchestrationState is 'running' (active turn) or 'claimed'
* (M3: a claimed run that never receives a turn is a dead-end โ detect it so the
* stall_timeou
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key