[PR #7527] chore(server): split session routes to avoid TS2589 #12429

Open
opened 2026-02-16 18:17:20 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/7527

State: open
Merged: No


Addresses TS2589 (type instantiation depth) in openapi generation that I'm getting in #6154 because I add a new route
Fixes #7532

Screen Shot 2026-01-09 at 9 20 12 PM

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

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/7527 **State:** open **Merged:** No --- Addresses `TS2589` (type instantiation depth) in openapi generation that I'm getting in #6154 because I add a new route Fixes #7532 [<img width="1159" height="133" alt="Screen Shot 2026-01-09 at 9 20 12 PM" src="https://github.com/user-attachments/assets/3ce51894-e6b4-4354-b119-ede53a13b321" />](https://github.com/anomalyco/opencode/actions/runs/20865565839/job/59955731241?pr=6154) 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
yindo added the pull-request label 2026-02-16 18:17:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12429