feat: skip or slim down the owner finalize turn
(a) When the reviewer approves the owner's first TASK_DONE answer on the first review (one review round, outputs are exactly owner -> reviewer, no revision or arbiter turns) and the owner workspace still matches the approved tree with a clean working tree, no owner run happens: the task is completed as done and the reviewed answer (status line stripped) is posted as the final message. If the review was requested with a bare "검토해줘" after a review-skipped answer, a one-line confirmation is posted instead of repeating the answer. (b) Every other finalize turn runs in a fresh, non-persisted session (no resume of the task's long working session, no room memory briefing) with a self-contained prompt: this task's user messages, the latest six turn outputs and the finalize instructions/format. All three finalize entry points (pending turn, inline bot-only follow-up, queued turn) use it. The owner prompt now states that the first TASK_DONE answer must already follow the final-message format because it may be posted as the final message unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -163,6 +163,7 @@ export async function processQueuedGroupDispatch(args: {
|
||||
await executeBotOnlyPairedFollowUpAction({
|
||||
action: botOnlyFollowUpAction,
|
||||
chatJid,
|
||||
timezone: args.timezone,
|
||||
group,
|
||||
runId: botOnlyFollowUpRunId,
|
||||
channel,
|
||||
|
||||
Reference in New Issue
Block a user