Skip to content

WIP: Think on the harness: messenger recovery (C4, part 3) - #3411

Closed
mattzcarey wants to merge 2 commits into
mainfrom
slim/deliveries-channels-c4-recovery2
Closed

mattzcarey wants to merge 2 commits into
mainfrom
slim/deliveries-channels-c4-recovery2

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Nov 27, 2026 •

Copy link
Copy Markdown
Member

Draft, C4 part 3: recovery for the harness-backed Think's messengers, and the cases Devin raised on #3347.

So far:

  • A run that a reset cut while a tool call's input was still arriving no longer counts as having finished something. Its rerun makes the call again, so the cut response posts nothing beside the rerun's answer.
  • A TEMPORARY importer on the harness-backed class handles replies [email protected] left unfinished (__cf_internal_messenger_reply runs with their __cf_messenger_recovery:* snapshot), as Think does: answered again at stage accepted, apologized for at streaming, nothing more at completed. Remove it in the next minor, with Think's own importer.
  • "answers a repeated reply id once…" reads the class's reply-run rows, so it is class-only (harness-class-only.json). Its successor, "answers a webhook its platform sent twice once", runs on both configs.

Still to do in this PR: a finished text part copied from the session's state after a restart can show twice; successors for the remaining class-only recovery and queue-drain tests.

Validation so far: a new agents deliveries.test.ts case that failed before the change. Both [email protected] upgrade tests pass on both configs. Messengers on the harness class: 94 of 116 → 97 of 117 (measured locally; the table is regenerated at the end).

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 07f5e65

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

agents

npm i https://pkg.pr.new/agents@3411

@cloudflare/ai-chat

npm i https://pkg.pr.new/@cloudflare/ai-chat@3411

@cloudflare/codemode

npm i https://pkg.pr.new/@cloudflare/codemode@3411

hono-agents

npm i https://pkg.pr.new/hono-agents@3411

@cloudflare/shell

npm i https://pkg.pr.new/@cloudflare/shell@3411

@cloudflare/think

npm i https://pkg.pr.new/@cloudflare/think@3411

@cloudflare/voice

npm i https://pkg.pr.new/@cloudflare/voice@3411

@cloudflare/worker-bundler

npm i https://pkg.pr.new/@cloudflare/worker-bundler@3411

commit: 07f5e65

@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

✅ agents import sizes: no significant changes (05a0c532 → 07f5e65a, workflow run)

@mattzcarey
mattzcarey force-pushed the slim/deliveries-channels-c4-recovery2 branch from f1005a9 to 07f5e65 Compare November 27, 2026 08:53
@mattzcarey

Copy link
Copy Markdown
Member Author

Closed to drain open PRs (COMMON, 27 Nov). The work continues on branch slim/deliveries-channels-c4-recovery2 and comes back as one PR once #3453 merges.

@mattzcarey mattzcarey closed this Nov 27, 2026
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