Skip to content

Conversation

@ozgen
Copy link
Member

@ozgen ozgen commented Jan 23, 2026

What

  • Updated the agent PATCH payload to include update_to_latest only when it is explicitly provided in the update request.
  • Added a unit test to ensure update_to_latest is not sent when omitted.

Why

  • Keeps PATCH behavior correct by updating only the fields that are requested.
  • Avoids unintended changes when update_to_latest is not meant to be modified.
  • Makes the payload clearer and safer for the agent controller API.

References

GEA-1532

Checklist

  • Tests

@ozgen ozgen requested review from a team as code owners January 23, 2026 15:54
@greenbonebot greenbonebot enabled auto-merge (rebase) January 23, 2026 15:54
@github-actions
Copy link

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 789c3ce.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

Scanned Files

None

@greenbonebot greenbonebot merged commit d1becbc into main Jan 24, 2026
23 checks passed
@greenbonebot greenbonebot deleted the fix-agent-controller-update-to-latest-optional branch January 24, 2026 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants