Skip to content

Persist the --debug executor transcript as a log artifact - #1660

Merged
kblok merged 1 commit into
mainfrom
fix/1657-debug-executor-transcript
Nov 15, 2026
Merged

kblok merged 1 commit into
mainfrom
fix/1657-debug-executor-transcript

Conversation

@kblok

@kblok kblok commented Nov 15, 2026

Copy link
Copy Markdown
Member

Closes #1657

What changed

  • The tool loop now builds the debug transcript (--- turn N ---, tool call: lines, results, [loop] notes, preamble notes) and attaches it with AttachTranscript, capped at 262,144 chars.
  • ActContext.WriteTranscript writes transcript-<step id>.txt into the attempt's artifact directory and registers it as a step-attributed log artifact (upstream's writeTranscript). The old ScreenshotContext.KeepTranscript is removed.
  • LoopGuardsAndTranscriptsTests now ports the whole upstream it (name, debug on, log artifact kind and producer, tool call: tap, --- turn 1 ---); the Partial_ prefix and comment are gone.
  • Docs: skill debugging.md, COMPATIBILITY.md, XML doc and API page of AttachTranscript.

Upstream parity

Ported from tester-army/e2e agent/tool-loop.ts (attachTranscript, MAX_TRANSCRIPT_CHARS, preamble) and agent/act.ts (writeTranscript), and the loop guards and transcripts it in agent-act.test.ts. Verdict: complete.

  • Port-only: the test helper CoreTests.RunAsync gained a debug flag and Attempt fields to read the artifact (test plumbing). Redact-before-clip in the loop is the existing deliberate difference.
  • Not ported: none.

Checks

Targeted tests pass (18 transcript/debug/loop-guard tests). The full suite and real-model tests were not run: no Playwright browser and no Copilot login in this environment.


Generated by Claude Code

…pstream loop guards and transcripts test)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ls2e1z2aRNMPxSDhMu96at
@coderabbitai

coderabbitai Bot commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 25 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between cc701be and 761f892.

Files selected for processing: 9

  • COMPATIBILITY.md
  • docs-site/src/content/docs/api/E2E/StepExecutorContext.md
  • skills/e2e-dotnet/references/debugging.md
  • src/E2E/Agent/ActContext.cs
  • src/E2E/Agent/Executor.cs
  • src/E2E/Agent/ToolLoop.cs
  • src/E2E/Run/ScreenshotContext.cs
  • tests/E2E.Tests/AgentAct/LoopGuardsAndTranscriptsTests.cs
  • tests/E2E.Tests/CoreTests.cs
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@kblok
kblok merged commit dfec117 into main Nov 15, 2026
4 checks passed
@kblok
kblok deleted the fix/1657-debug-executor-transcript branch November 15, 2026 14:22
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.

Executor transcript as a --debug log artifact (upstream loop guards and transcripts test)

2 participants