Skip to content

codemode: echo the execution call log on the proxy tool output#1904

Merged
mattzcarey merged 3 commits into
mainfrom
feat/codemode-tool-call-log
Jul 9, 2026
Merged

codemode: echo the execution call log on the proxy tool output#1904
mattzcarey merged 3 commits into
mainfrom
feat/codemode-tool-call-log

Conversation

@mattzcarey

@mattzcarey mattzcarey commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Closes #1845.

The durable codemode runtime already records every connector call and codemode.step in its replay log (ToolLogEntry: seq, connector, method, args, result, approval requirement, state). This surfaces that log on ProxyToolOutput as an optional calls field on all three outcomes (completed, paused, error), so UIs can render an audit trail of what ran — and what is pending approval — straight from the tool output, without a separate executions() round trip.

No new recording machinery: the field just echoes the execution's existing durable log at the end of the pass.

  • ProxyToolOutput gains calls?: ToolLogEntry[] on every variant
  • runPass attaches execution.log to the returned output (initial run and resume-after-approval alike)
  • e2e test covering the log across a pause → approve → completion cycle
  • patch changeset for @cloudflare/codemode

Open in Devin Review

@changeset-bot

changeset-bot Bot commented Jul 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 02d8dc3

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/codemode Patch

Not sure what this means? Click here to learn what changesets are.

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

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 9, 2026

Copy link
Copy Markdown

Open in StackBlitz

agents

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

@cloudflare/ai-chat

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

@cloudflare/codemode

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

create-think

npm i https://pkg.pr.new/create-think@1904

hono-agents

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

@cloudflare/shell

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

@cloudflare/think

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

@cloudflare/voice

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

@cloudflare/worker-bundler

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

commit: 02d8dc3

@mattzcarey mattzcarey merged commit 88f7f69 into main Jul 9, 2026
4 checks passed
@mattzcarey mattzcarey deleted the feat/codemode-tool-call-log branch July 9, 2026 16:33
@github-actions github-actions Bot mentioned this pull request Jul 9, 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.

log of tool calls in codemode executor result

1 participant