Skip to content

fix(ai): a saved gateway route table keeps only failover state, so a changed default route reaches every machine #2045

Closed

Description

@dan-petty

Problem

The gateway router loads a saved route table from <data dir>/agent/gateway_state.json in place of DEFAULT_GATEWAY_ROUTES, and nothing refreshes that table. So a change to the default routes, such as #1969's move to served models, never reaches a machine that already has the file. On the owner's workstation, the file from 2026-10-22 still holds old vLLM and ollama.llm.svc routes.

Found while #1969 was built; its task file names this follow-up.

Proposed fix

Acceptance criteria

  • A test with a saved file that holds an old default route shows that the router uses the current default.
  • A test shows that a saved failover:* route still applies after a restart.

Activity

  1. added
    type/bug
    scope/ai
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

  3. added a commit that references this issue on Oct 27, 2026
    4795a61
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

    scope/aitype/bug

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions