fix(core): preserve spawned-agent task payload and profile - #510
Draft
andrei-hasna wants to merge 2 commits into
Draft
fix(core): preserve spawned-agent task payload and profile#510andrei-hasna wants to merge 2 commits into
andrei-hasna wants to merge 2 commits into
Conversation
Agent: Theophrastus
andrei-hasna
force-pushed
the
fix/e7ce510d-spawn-agent-payload
branch
from
August 8, 2026 20:25
60c7666 to
a66da29
Compare
Agent: Theophrastus
andrei-hasna
force-pushed
the
fix/e7ce510d-spawn-agent-payload
branch
from
August 8, 2026 20:33
a66da29 to
a723e53
Compare
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.
Why
spawn_agentcould omit a large encrypted initial task before the child’s first model sample, and a forked child could inherit a stale turn/profile default instead of the parent session’s live selected auth profile.What
send_messagebehavior unchanged.Test plan and current evidence
31276010499on tests-only SHAde9d7494b36dd66ed43b083f82791b2bcf3bd493: failed twice atassertion failed: child_request.body_contains_text("agent_message").31276361125on60c766664eae68c6c79af21cf83d15f977c46576: reproduced the same behavioral failure, showing the first fix lost the native item shape.31276892457ona66da29f0624b1c0f4e8a33cc5026ae23183b4e0: compile failure from one stale unit-test reference; the obsolete test was removed.31277205960is in progress on exact heada723e537f68a546d7e02134f5150646c68093940, covering:fork_turns=none, a small positive count, andfork_turns=all;cargo fmt -- --check: exit 0.git diff --check: exit 0.[pre-push] scanning 1 commit(s) for HEAD.This PR remains draft pending the terminal focused result, exact-head required checks, and one independent adversarial review. It must not merge or publish before those gates.
Todos:
e7ce510d-bbf8-4fc1-8252-6af983d529e0Agent: Theophrastus