fix: complete goal resume and comment input follow-ups (#3361)
This commit is contained in:
committed by
GitHub
parent
f3f844463b
commit
7c9fdd1ee5
@@ -707,7 +707,7 @@ export const createSessionGoalRuntime = ({
|
||||
// A second consecutive completed, non-summary length-truncated turn is a
|
||||
// bounded recovery failure. Derive this from the loaded transcript rather
|
||||
// than persisting another goal counter.
|
||||
if (lengthTail && hasRepeatedLengthTail(messages, lastAssistant, goal.createdAt)) {
|
||||
if (lengthTail && goal.statusReason !== 'resumed' && hasRepeatedLengthTail(messages, lastAssistant, goal.createdAt)) {
|
||||
await settleGoal({
|
||||
sessionId, directory, goal, status: 'blocked', statusReason: 'repeated output truncation', tokensUsed, tokensBaseline, tokensCommitted, lastAccountedMessageID,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user