Skip to content

refactor: destroy Todo facade#21962

Merged
kitlangton merged 3 commits intodevfrom
kit/migrate-todo-facade
Apr 11, 2026
Merged

refactor: destroy Todo facade#21962
kitlangton merged 3 commits intodevfrom
kit/migrate-todo-facade

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

Second facade destruction. Tiny diff — proves the second migration pattern (non-effectful caller → AppRuntime).

Changes

  • server/routes/session.ts — the GET /session/:id/todo handler now does AppRuntime.runPromise(Todo.Service.use((svc) => svc.get(sessionID))) instead of calling the Todo.get promise facade
  • session/todo.ts — deleted the export async function get facade, the makeRuntime(...) line, and the unused makeRuntime import

Test plan

  • Typecheck clean
  • Full suite: 1883 pass, 0 fail
  • CI green

Second facade destruction, proving the non-effectful-caller → AppRuntime
pattern. The single caller (server route) now uses
AppRuntime.runPromise(Todo.Service.use(...)) instead of the Todo.get
facade. The async facade and makeRuntime are removed from session/todo.ts.
@kitlangton kitlangton force-pushed the kit/migrate-todo-facade branch from f838f0f to 1a68fe7 Compare April 11, 2026 01:28
@kitlangton kitlangton marked this pull request as ready for review April 11, 2026 01:46
@kitlangton kitlangton merged commit a4c6860 into dev Apr 11, 2026
8 of 9 checks passed
@kitlangton kitlangton deleted the kit/migrate-todo-facade branch April 11, 2026 01:47
mrsimpson pushed a commit to mrsimpson/opencode that referenced this pull request Apr 14, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
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