Skip to content

Route the local dev server through the shared HTTP dispatcher #1303

Closed

Description

@soberm

The local dev server (packages/core/src/scripts/dev-server.ts) still runs its own copy of the HTTP dispatch logic: its own parseRpcRequest → resolve → errorResponseSetCookies flow and its own matchRoute RawRoute path. PR #1104 moved that logic into createDispatcher (packages/core/src/dispatch.ts), which the Lambda handler and the container HTTP server now share, so a change to cookie or error-envelope handling there doesn't reach local dev.

Proposal: route the dev server's RawRoute and RPC handling through createDispatcher, keeping its sandbox-specific parts (config endpoint, proxying, static serving, supervisor/telemetry hooks) as an adapter, the way lambda-handler.ts does. Pin current dev-server responses with characterization cases first so the move is provably behavior-preserving.

Activity

  1. osama-rizk commented on Nov 18, 2026

    @osama-rizk
    Contributor

    Done in #1317 (merged), which routes the dev server's RPC and RawRoute handling through createDispatcher. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions