Skip to content

refactor(session): inline init route orchestration#21754

Merged
kitlangton merged 4 commits intodevfrom
session-init-extract
Apr 9, 2026
Merged

refactor(session): inline init route orchestration#21754
kitlangton merged 4 commits intodevfrom
session-init-extract

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • remove the special-case Session.initialize method and inline the existing init command flow directly in the session.init route
  • keep the dedicated route for API compatibility for now, with a TODO to remove it in v2
  • replace two local casts in Session with typed alternatives (MessageV2.Part.parse(...) and a typed empty-array fallback)

Testing

  • bun typecheck
  • bun turbo typecheck

@kitlangton kitlangton marked this pull request as ready for review April 9, 2026 20:14
@kitlangton kitlangton enabled auto-merge (squash) April 9, 2026 20:14
@kitlangton kitlangton disabled auto-merge April 9, 2026 20:28
@kitlangton kitlangton merged commit b2f621b into dev Apr 9, 2026
4 checks passed
@kitlangton kitlangton deleted the session-init-extract branch April 9, 2026 20:28
timrichardson pushed a commit to timrichardson/opencode that referenced this pull request Apr 9, 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