Repository navigation
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Member
Author
|
@clawsweeper review |
Contributor
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release blocker
The packaged Telegram recovery scenario in Full Release Validation 34261943173 reached the settled-tool continuation from #141916, then produced no matching final marker. Its artifact records four model fetches before the only outbound reply and a retry of the same Telegram inbound message.
Root cause
#141916 disabled tools for its one recovery pass but left the already-persisted inbound message as the next attempt's prompt. That replays the source user turn instead of continuing from the settled assistant/tool transcript. The runner already owns the canonical boundary for this case: internal continuations use a new model prompt and suppress re-persisting the current inbound message.
Fix
When the current channel message is known to be persisted, use the settled-tool instruction as the next model prompt and mark the next attempt as persistence-suppressed. The recovery still has no tools. If persistence is not proven, retain #141916's existing prompt-addition path rather than dropping user input.
Proof
prompt: "hello\\n\\n<continuation>"withsuppressNextUserMessagePersistence: false.node scripts/run-vitest.mjs src/agents/embedded-agent-runner/run.incomplete-turn.test.ts— 113 passed.pnpm exec oxfmt --check src/agents/embedded-agent-runner/run.ts src/agents/embedded-agent-runner/run.incomplete-turn.test.ts— passed.node scripts/check-changed.mjs --dry-run -- src/agents/embedded-agent-runner/run.ts src/agents/embedded-agent-runner/run.incomplete-turn.test.ts—core, coreTests.git diff --check— passed.Production delta: +9 lines; test delta: +13 lines. The production addition is the current-message identity gate plus an ownership comment; it avoids reintroducing a second user leaf into a persisted conversation.