Skip to content

[Bug] cleo find with empty string errors instead of returning all tasks #85

@kryptobaseddev

Description

@kryptobaseddev

Bug Report

Running cleo find "" returns an error requiring a search query, but agents often need to list all tasks for discovery.

Steps to reproduce:

  1. Run cleo find ""
  2. Expect: all tasks returned (or a helpful suggestion)
  3. Actual: E_INVALID_INPUT: Search query or --id is required

Expected behavior: Either:

  • Empty string search returns all tasks (like cleo find with a wildcard)
  • Or the error message suggests cleo find '*' or another way to list all tasks

Context: The CLEO protocol injection doc says 'ALWAYS use tasks find for discovery. NEVER use tasks list for browsing.' but cleo find requires a non-empty query, creating a gap when agents need to discover what tasks exist without knowing any keywords.

Severity: Minor
Area: cli

Are you using an AI agent?

Yes - AI agent filed this issue


Environment

Component Version
CLEO 2026.2.1
Node.js v24.13.1
OS linux 6.19.8-200.fc43.x86_64 x64 (x64)
Shell /bin/bash
gh CLI gh version 2.87.3 (2026-02-23)
Install /home/keatonhoskins/.npm-global/bin/cleo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions