feat: keep typing during scheduled tasks and tell waiting users
A group-context scheduled task occupies the room queue, so a human message sent meanwhile waited silently (up to the whole task run) with no typing indicator; the room looked unresponsive. - Scheduled tasks (not CI watchers) hold the room's typing indicator for their whole run (DiscordChannel.setTypingHold: typing stays on while any hold is active, independent of message-turn setTyping(false)). - A human message that has to wait behind a running scheduled task gets a one-time notice per wait: "지금 예약 작업을 진행하고 있습니다. 이 작업을 마친 뒤 바로 답변드리겠습니다." (GroupQueue.claimScheduledTaskWaitNotice, reset when the waiting messages run). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,6 +44,8 @@ export interface GroupState {
|
||||
postCloseTermTimer: ReturnType<typeof setTimeout> | null;
|
||||
postCloseKillTimer: ReturnType<typeof setTimeout> | null;
|
||||
startedAt: number | null;
|
||||
/** A "will answer after the scheduled task" notice went out for the human messages now waiting. */
|
||||
scheduledTaskWaitNoticeSent: boolean;
|
||||
}
|
||||
|
||||
const MAX_RECORDED_DIRECT_TERMINAL_RUNS = 16;
|
||||
@@ -67,6 +69,7 @@ export function createGroupState(): GroupState {
|
||||
postCloseTermTimer: null,
|
||||
postCloseKillTimer: null,
|
||||
startedAt: null,
|
||||
scheduledTaskWaitNoticeSent: false,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user