Skip to content

harness-backed Think: onChatRecovery's createdAt is the turn's acceptance time (A-3) - #3429

Merged
mattzcarey merged 3 commits into
mainfrom
slim/harness-score-recovery-3
Nov 27, 2026
Merged

mattzcarey merged 3 commits into
mainfrom
slim/harness-score-recovery-3

Conversation

@mattzcarey

Copy link
Copy Markdown
Member

On the harness-backed Think, onChatRecovery now gets createdAt as the time the operation was accepted (its Tasks run's creation time), not the time of the callback. That's what Think gives an app, so a guard that refuses stale work after an outage works on both Thinks (arch's Q11).

The shell reads it through the harness's existing inspection(session, operationId), and falls back to now only if the run is gone. Nothing new is stored.

Validated: the new successor "gives onChatRecovery the time the turn was asked for, not the time of the stall" in chat-recovery-public.test.ts passes on both configs, 6/6 in the file. Without the shell change it fails on the harness config, because createdAt is the stall's time. This PR is stacked on #3393.

@changeset-bot

changeset-bot Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f3b11ba

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

Base automatically changed from slim/harness-score-recovery-2 to main November 27, 2026 08:29
@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@3429

@cloudflare/ai-chat

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

@cloudflare/codemode

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

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: f3b11ba

@mattzcarey
mattzcarey force-pushed the slim/harness-score-recovery-3 branch from bd01889 to b6a78e4 Compare November 27, 2026 08:53
@mattzcarey
mattzcarey marked this pull request as ready for review November 27, 2026 08:53
@agent-think

agent-think Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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

devin-ai-integration[bot]

This comment was marked as resolved.

…e in the queue; the successor's bound allows a slow setup
@mattzcarey
mattzcarey merged commit 559f203 into main Nov 27, 2026
18 checks passed
@mattzcarey
mattzcarey deleted the slim/harness-score-recovery-3 branch November 27, 2026 09:51
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