Skip to content

Bee state reports BUZZING with no opencode process actually running #195

Description

@scuba10steve

Summary

trowel bee status/bee list reports a bee in state BUZZING (actively running) with a hatchedAt timestamp, but no corresponding process is actually running inside the grove's devcontainer.

Repro

  1. Plant a grove and install an opencode bee.
  2. trowel bee list --grove <id> reports OPENCODE BUZZING <bee-id> <hatchedAt>.
  3. trowel bee status --grove <id> reports swarm status BUZZING: 1.
  4. Exec into the actual fruit container running for that grove and list processes — no opencode (or related) process exists. Only the devcontainer's own placeholder init (sh -c '... while sleep 1 & wait $!; do :; done') is running.

Evidence

Grove was confirmed FLOURISHING with the repo correctly cloned to /workspace (verified via direct container inspection), so provisioning itself succeeded. The bee's .opencode/ config directory exists on disk, but docker exec <container> ps aux inside the seedling shows nothing beyond the devcontainer placeholder — no opencode process was ever launched, or it exited immediately without the state being corrected.

Impact

The server-reported bee state can't be trusted to reflect whether the AI assistant is actually usable — a cultivator has no reliable signal (short of manually exec'ing into the container) that their bee isn't actually running.

Suspected area

Whatever apiary/BeeKeeper code transitions bee state to BUZZING appears to do so without confirming the launched process is actually alive (or a failure during launch isn't being caught and reflected back into the state).

Metadata

Metadata

Assignees

No one assigned

    Labels

    beeAgent integration (Bee) featurebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions