Skip to content

test(company-os): a due agent calling the backend before the knowledge base is ready #20393

Open

Description

@mrveiss

Found in review of #20392 (for #20232). That PR starts the heartbeat and routine schedulers before the knowledge base init, so a due agent can call the backend while the knowledge base isn't ready. That path isn't tested. Chat resolves the knowledge base per request, and phase 1 already starts chat without it, but nothing shows every route an agent calls does the same.

Before #20392 the schedulers waited, so this window didn't exist for scheduled runs. Event wakes already ran in it.

Acceptance criteria

  • A test calls a knowledge route an agent uses while the knowledge base is not ready and shows a defined answer, not a 500 or a hang.
  • The issue records which agent-facing routes need the knowledge base, and any that fail are fixed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions