Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Conversation

@mattjohnsonpint
Copy link
Contributor

This was missed in #843

@mattjohnsonpint mattjohnsonpint requested review from a team and Copilot May 19, 2025 19:47
@linear
Copy link

linear bot commented May 19, 2025

@trunk-io
Copy link

trunk-io bot commented May 19, 2025

Running Code Quality on PRs by uploading data to Trunk will soon be removed. You can still run checks on your PRs using trunk-action - see the migration guide for more information.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR renames outdated event stubs in AgentBase, correcting method names and adding a missing termination handler.

  • Rename OnStopOnSuspend
  • Rename OnReloadOnRestore
  • Add new OnTerminate stub
  • Update CHANGELOG.md with the fix entry

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
sdk/go/pkg/agents/agents.go Renamed two methods and added a missing termination stub
CHANGELOG.md Added changelog entry for Go SDK 0.18.0-alpha.2
Comments suppressed due to low confidence (1)

sdk/go/pkg/agents/agents.go:232

  • No tests appear to cover the new OnTerminate stub. Add unit tests or integration tests to verify that the termination event is correctly propagated.
func (a *AgentBase) OnTerminate() error {

@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) May 19, 2025 20:42
@mattjohnsonpint mattjohnsonpint merged commit ef37f4b into main May 19, 2025
46 checks passed
@mattjohnsonpint mattjohnsonpint deleted the mjp/hyp-3384-agentbase-is-missing-some-default-event-stubs branch May 19, 2025 20:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants