Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(agent/agentcontainers): prevent reassigning proc.agent until successful#18609

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

mafredri
Copy link
Member

@mafredrimafredri commentedJun 26, 2025
edited
Loading

This change applies a bit more defensive coding to the SubAgentClient. I don't have any concrete evidence of this going wrong other than some random observations of "duplicate agent", which are likely unrelated but prompted me to explore.

@mafredrimafredriforce-pushed themafredri/fix-agent-agentcontainers-subagent-assignment branch 3 times, most recently froma147216 to20d2cf1CompareJune 26, 2025 17:19
@mafredrimafredriforce-pushed themafredri/fix-agent-agentcontainers-subagent-assignment branch from20d2cf1 to77a3d19CompareJune 26, 2025 17:25
if err != nil {
returnagent, err
returnSubAgent{}, err
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Review: In either this or above, we could have returned a semi-valid agent and assigned toproc.agent was is not ideal.

defer func() {
if err != nil {
// Best effort.
_, _ = a.api.DeleteSubAgent(ctx, &agentproto.DeleteSubAgentRequest{
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

The steps below should never fail, but if they do, we try to clean up.

@mafredrimafredri changed the titlefix(agent/agentcontainers): do not reassign proc.agent until successfix(agent/agentcontainers): prevent reassigning proc.agent until successfulJun 26, 2025
@mafredrimafredri marked this pull request as ready for reviewJune 26, 2025 17:30
@mafredrimafredri merged commit4f44dd0 intomainJun 26, 2025
42 checks passed
@mafredrimafredri deleted the mafredri/fix-agent-agentcontainers-subagent-assignment branchJune 26, 2025 18:30
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJun 26, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@johnstcnjohnstcnjohnstcn approved these changes

@DanielleMaywoodDanielleMaywoodDanielleMaywood approved these changes

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@mafredri@johnstcn@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp