Skip to content

Fix CLI commands to route through daemon instead of creating local Ring #6

@humancto

Description

@humancto

Problem

punch fighter send and punch fighter kill create their own local Ring instead of calling the daemon API. Fighters spawned via daemon are invisible to these commands.

Audit Results

Daemon-aware (working): spawn, list, status, chat, gorilla commands, move, workflow, trigger
NOT daemon-aware (broken): fighter send, fighter kill

Root Cause

These two commands instantiate a local Ring in-process instead of calling:

  • POST /api/fighters/{id}/message for send
  • DELETE /api/fighters/{id} for kill

Fix

Both commands should:

  1. Check daemon_url() first
  2. Route through Arena API when daemon is running
  3. Only create local Ring as fallback (or error gracefully)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions