Skip to content

fix(core): implement proper workspace routing for session routes#16930

Open
jlongster wants to merge 2 commits intodevfrom
jlongster/automatic-session-routing
Open

fix(core): implement proper workspace routing for session routes#16930
jlongster wants to merge 2 commits intodevfrom
jlongster/automatic-session-routing

Conversation

@jlongster
Copy link
Contributor

Previously we only used x-opencode-workspace but we will want to get rid of that once we have syncing. At that point, we will want to forward only certain routes to a workspace based on information from the URL. This implements simple routing to do that for the session routes; there are more routes in the future we will route too.

Basically, the server provides a unified set of routes, but we are "taking over" a subset of those routes and automatically forwarding them to workspace. For example, if you call the endpoint to delete message in the session, that should route to the workspace which will do that, and then the syncing mechanism will sync that mutation back to anywhere else it needs to go.

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