Repository navigation
Add emit_message_history to record an agent transcript without seeding it - #74811
Open
pankajastro wants to merge 2 commits into
Open
pankajastro wants to merge 2 commits into
pankajastro wants to merge 2 commits into
Conversation
pankajastro
requested review from
Lee-W,
ashb,
gopidesupavan and
kaxil
as code owners
October 15, 2026 18:54
kaxil
reviewed
Oct 16, 2026
…g it Single-turn agents that want their transcript on XCom had to pass message_history=[], a parameter for seeding a conversation, not for observing a run. A dedicated flag states that intent directly, and do_xcom_push=False now also suppresses the transcript push, as it does the other XCom pushes. Co-Authored-By: Claude <noreply@anthropic.com>
Gating the transcript push on do_xcom_push also stopped it for message_history users, narrowing a stable feature. A tri-state emit_message_history defaults to whether the run is seeded, so existing sessions keep pushing, a single-turn run can opt in, and a seeded run can opt out. Co-Authored-By: Claude <noreply@anthropic.com>
pankajastro
force-pushed
the
afl-271-push-the-agent-transcript-to-xcom-without-seeding
branch
from
October 20, 2026 06:03
39a4c59 to
36325dd
Compare
Member
Author
|
CI failure is unrelated PR: #75188 should fix it |
This branch has not been deployed
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.
AgentOperatorpushes the transcript to XCom only whenmessage_history is not None.A single-turn agent that only wants its transcript recorded has to pass
message_history=[],which is the parameter for seeding a conversation.
This adds
emit_message_history: bool | None = None:None(default): push the transcript whenmessage_historyis set, as before.True: also push it for a run withoutmessage_history; the run is not seeded.False: keep a seeded run from pushing it.emit_message_historyresolving toTruetogether withenable_hitl_reviewraises, for thesame reason
message_historydoes: the post-review transcript is not recoverable.Was generative AI tooling used to co-author this PR?
Generated-by: Claude Code (Sonnet 5.5) following the guidelines
🤖 Generated with Claude Code