Skip to content

BOOT.md startup hook bypasses gateway runtime auth #5239

@malaiwah

Description

@malaiwah

Summary

The built-in BOOT.md startup hook creates a bare AIAgent(...) instead of using the gateway's resolved model/runtime configuration.

In a gateway configured with a custom endpoint or other non-default runtime provider, the BOOT agent can start without the expected auth/runtime kwargs and fail immediately with 401s such as Missing Authentication header.

Expected

BOOT.md should run with the same resolved gateway model/runtime settings as a normal gateway turn.

Repro

  1. Configure the gateway to use a provider that requires explicit runtime auth (for example a custom OpenAI-compatible endpoint).
  2. Add ~/.hermes/BOOT.md.
  3. Start the gateway.
  4. Observe the startup BOOT agent fail before it can do any useful work.

Proposed fix

Resolve the BOOT agent's model/runtime via the same gateway helpers used for normal turns and add a regression test so the runtime kwargs keep flowing through.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium — degraded but workaround existscomp/gatewayGateway runner, session dispatch, deliverytype/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions