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

Open
mafredri wants to merge1 commit intomain
base:main
Choose a base branch
Loading
frommafredri/fix-agent-agentcontainers-subagent-assignment

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
iferr!=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.

deferfunc() {
iferr!=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
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@DanielleMaywoodDanielleMaywoodDanielleMaywood approved these changes

@johnstcnjohnstcnAwaiting requested review from johnstcn

Assignees

@mafredrimafredri

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@mafredri@DanielleMaywood

[8]ページ先頭

©2009-2025 Movatter.jp