Skip to content

GH-5361 scaffold: multi-event automation becomes one handler class - #5375

Merged
jeremydmiller merged 1 commit into
mainfrom
stoat/nov-5-releases/wv-5361
Nov 5, 2026
Merged

jeremydmiller merged 1 commit into
mainfrom
stoat/nov-5-releases/wv-5361

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

Fixes #5361

scaffoldAutomation no longer reports UNKNOWN when an automation declares several .On<T>(). writeSlice now takes the list of triggers and writes one static handler class named for the automation with a Handle per consumed event. The single-event and no-event cases are unchanged.

Test: new an_automation_reacting_to_several_events_is_one_handler_class_with_a_Handle_per_event. The critterstack-sdd-code-from-specs skill is not in this repo, so I did not touch it.

🤖 Generated with Claude Code

…lass with a Handle per event

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@jeremydmiller

Copy link
Copy Markdown
Member Author

Ran dotnet test --project src/Testing/CoreTests -f net9.0 --filter-class "*event_model_scaffold*": 66 passed, 0 failed (includes the new test). No other suites run; CI is off for this repo.

@jeremydmiller
jeremydmiller merged commit fff50ae into main Nov 5, 2026
This was referenced Nov 6, 2026
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.

scaffold: an automation declared with several .On<T>() is UNKNOWN; one handler class with a Handle per event is the idiomatic shape

1 participant