Skip to content

Command listing must await plugin readiness #849

Open

Description

@agenteinstinct1-max

Problem

Refs #826. The command-listing HTTP handler must wait for plugin readiness before asking the command service for its list. The current handler calls CommandV2.list() without first awaiting PluginInternal.ready, so it does not enforce that ordering itself.

Acceptance

  • The mounted /api/command handler enters and waits for PluginInternal.ready before calling the command-list service.
  • A controlled readiness gate proves no early list call, then releases the gate and verifies a 200 response with the expected command names.
  • Preserve normal command-list behavior and pass fresh required CI, including typecheck, on the proposed integration head.

This is a narrowly scoped ordering requirement. The controlled test uses substituted PluginInternal and CommandV2 services behind the real mounted HTTP handler. It is not a natural reproduction of every command-list CI failure and does not establish that this barrier explains every cause recorded in #826. General completion of #826 is outside this issue.

Activity

  1. added
    priority: high
    on Nov 12, 2026
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

    priority: high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions