Skip to content

refactor(core): own todo event schema#33420

Open
kitlangton wants to merge 1 commit into
devfrom
consolidate-todo-event
Open

refactor(core): own todo event schema#33420
kitlangton wants to merge 1 commit into
devfrom
consolidate-todo-event

Conversation

@kitlangton

Copy link
Copy Markdown
Contributor

Summary

  • make Core the single owner of the shared Todo schema and todo.updated event definition
  • reuse those definitions from the existing OpenCode todo service
  • preserve the current event payload, route behavior, and generated API output

Why

Core and OpenCode independently registered equivalent todo.updated definitions in the global EventV2 registry. Reusing the Core definition removes import-order ownership and future schema-drift risk without migrating either service.

Verification

  • bun run test test/session-todo.test.ts
  • Core typecheck
  • OpenCode typecheck
  • full generation produced no generated artifact changes
  • pre-push workspace typecheck (23/23 tasks)

@kitlangton kitlangton enabled auto-merge (squash) June 22, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant