Skip to content

fix(sequentialagent): correct New godoc placement and copy-pasted error string (#1151) - #1531

Merged
baptmont merged 1 commit into
v1from
backport/v1/pr-1151
Sep 8, 2026
Merged

baptmont merged 1 commit into
v1from
backport/v1/pr-1151

Conversation

@baptmont

@baptmont baptmont commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Backports #1151 from main to v1.

Done by hand: the automated replay conflicts. v1 carries the same two defects as main did, in a different arrangement — the New godoc is attached to seqAgent and New is left with an orphaned fragment above it — so the patch context does not match and git apply, including --3way, rejects hunk 2.

The result is byte-identical to main after the module-path rewrite, apart from the pre-existing agent.Context / agent.ToolContext difference between the branches, which is unrelated to this change.

Carries the (cherry picked from commit …) trailer, so the backport tooling recognises #1151 as done and drops it from the queue.

go build and go test ./agent/workflowagents/sequentialagent/ pass.

…or string (#1151)

The "New creates a SequentialAgent" doc comment was attached to the
seqAgent type after the live-mode changes inserted the type between the
comment and func New, leaving New with only an orphaned fragment.
Reunite the full doc comment with New and give seqAgent its own comment.

Also fix the custom-Run guard error, which reported "LoopAgent" instead
of "SequentialAgent" (copy-paste from loopagent; parallelagent names
itself correctly).

Co-authored-by: David Mora <david.mora@huli.io>
Co-authored-by: wolo <wolo@google.com>

Backported by hand: the automated replay could not apply, because v1 had
the same two defects in a different arrangement -- the New godoc was
attached to seqAgent with a dangling fragment above New -- so the
patch context did not match. The resulting file is identical to main
after the module-path rewrite, apart from the pre-existing
agent.Context/agent.ToolContext difference between the branches.

(cherry picked from commit 0da17d5)
@baptmont baptmont added the v1 PR targeting v1 branch. label Sep 7, 2026
@wojtas000
wojtas000 self-requested a review September 7, 2026 17:34
@baptmont
baptmont merged commit 031386c into v1 Sep 8, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v1 PR targeting v1 branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants