fix: treat CI watcher completions as system input (#191)

This commit is contained in:
Eyejoker
2026-05-29 19:15:14 +09:00
committed by GitHub
parent 5c8def0674
commit 0bbb3fe14f
8 changed files with 218 additions and 19 deletions

View File

@@ -9,6 +9,7 @@ import {
advanceLastAgentCursor,
filterLoopingPairedBotMessages,
getProcessableMessages,
isExternalHumanMessage,
resolveCursorKey,
shouldSkipBotOnlyCollaboration,
} from './message-runtime-rules.js';
@@ -32,9 +33,7 @@ import type {
type RuntimeLog = Pick<typeof logger, 'info' | 'debug'>;
function hasExternalHumanMessage(messages: NewMessage[]): boolean {
return messages.some(
(message) => message.is_from_me !== true && !message.is_bot_message,
);
return messages.some(isExternalHumanMessage);
}
export function enqueueGenericFollowUpAfterDeliveryRetry(args: {