fix: treat human-interrupted paired runs as preempted
This commit is contained in:
7
src/message-close-reasons.ts
Normal file
7
src/message-close-reasons.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
export const HUMAN_MESSAGE_DETECTED_CLOSE_REASON = 'human-message-detected';
|
||||
|
||||
export function isHumanMessageCloseReason(
|
||||
reason: string | null | undefined,
|
||||
): boolean {
|
||||
return reason === HUMAN_MESSAGE_DETECTED_CLOSE_REASON;
|
||||
}
|
||||
Reference in New Issue
Block a user