opencode
opencode copied to clipboard
chore(server): split session routes to avoid TS2589
Addresses TS2589 (type instantiation depth) in openapi generation that I'm getting in #6154 because I add a new route
Fixes #7532
Refactor to reduce Hono schema type depth - no functional changes
Split session routes into a dedicated router
Seems to match the existing pattern for separate routers (ProjectRoute, TuiRoute)
Tested on #6154 to validate that it would fix build, but wanted a separate PR to keep things clean