fix: complete goal resume and comment input follow-ups (#3361)

This commit is contained in:
Bohdan Triapitsyn
2026-09-05 10:53:34 +03:00
committed by GitHub
parent f3f844463b
commit 7c9fdd1ee5
9 changed files with 172 additions and 62 deletions
@@ -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,
});