Skip to content

Replace RoleAgents.onRoleResolved with an Ox resource scope - #197

Merged
adamw merged 5 commits into
masterfrom
replace-callback-with-resource-scope
Sep 23, 2026
Merged

adamw merged 5 commits into
masterfrom
replace-callback-with-resource-scope

Conversation

@adamw

@adamw adamw commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Removes the onRoleResolved callback and the roles/transferred vars from buildContext. Agents are now closed by one Ox resourceScope that covers building the context and running the flow.

Needs Ox 1.0.8: earlier versions fail with NoSuchMethodError when resourceScope is called from Scala 3.9 (scala/scala3#24653, fixed in softwaremill/ox#513).

@adamw
adamw marked this pull request as ready for review September 23, 2026 08:43
@adamw
adamw merged commit 1457d31 into master Sep 23, 2026
6 checks passed
@adamw
adamw deleted the replace-callback-with-resource-scope branch September 23, 2026 09:16
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.

1 participant