Skip to content

Remove back-compat branch in evaluateSubAgentStop - #616

Merged
TheGreatAxios merged 1 commit into
mainfrom
cl-6788-remove-the-back-compat-branch-that-lets-a-worker-complete
Aug 24, 2026
Merged

Remove back-compat branch in evaluateSubAgentStop#616
TheGreatAxios merged 1 commit into
mainfrom
cl-6788-remove-the-back-compat-branch-that-lets-a-worker-complete

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • lastAssistantText in evaluateSubAgentStop is now required; the omitted-text branch that unconditionally completed a tool-less turn is deleted.
  • Every call path (only production caller is nudge-director.ts, which already always passed the text) now gets the incomplete-report nudge, then salvage, when a tool-using run ends in envelope-less narration.

Test plan

  • Updated src/subagent/index.test.ts: the one test that omitted lastAssistantText (asserting unconditional "complete") now passes lastAssistantText: "" and asserts "incomplete-report" — this is the exact hole the ticket closes. All other hasToolCalls: true call sites got an explicit lastAssistantText: "" since it's now a required field they don't otherwise exercise.
  • bun run check passes (lint, typecheck, build, 5324 tests).

lastAssistantText is now required so every call path gets the
incomplete-report nudge instead of letting omitted text complete
a tool-less turn unconditionally.
@linear-code

linear-code Bot commented Aug 24, 2026

Copy link
Copy Markdown

CL-6788

@TheGreatAxios
TheGreatAxios enabled auto-merge (squash) August 24, 2026 10:09
@TheGreatAxios
TheGreatAxios merged commit 785a538 into main Aug 24, 2026
5 checks passed
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
lastAssistantText is now required so every call path gets the
incomplete-report nudge instead of letting omitted text complete
a tool-less turn unconditionally.
TheGreatAxios added a commit that referenced this pull request Aug 27, 2026
lastAssistantText is now required so every call path gets the
incomplete-report nudge instead of letting omitted text complete
a tool-less turn unconditionally.
@TheGreatAxios
TheGreatAxios deleted the cl-6788-remove-the-back-compat-branch-that-lets-a-worker-complete branch August 28, 2026 00:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant