Skip to content

[cli-tools-test] logs: empty message field when no results found (future/old dates return no guidance) #41620

Description

@github-actions

When the logs tool returns zero results due to a query with a future date or a very old date beyond retention, the message field in the response is an empty string. This provides no guidance about why no results were found.

In contrast, querying a non-existent workflow name correctly returns a helpful message: "workflow 'x' not found. Use the 'status' tool..."

Steps to Reproduce

  1. Run: agenticworkflows logs --start_date "2030-01-01" --count 3 --max_tokens 3000
  2. Read the cached JSON at the returned file_path
  3. Check the message field

Expected Behavior

The message field should explain why no results were found, e.g.:

  • Future date: "No runs found. The start_date '2030-01-01' is in the future."
  • Old date: "No runs found. Data may not be available beyond the 90-day retention period."

Actual Behavior

{"summary": {"total_runs": 0}, "runs": [], "message": ""}

The message field is an empty string — zero guidance.

Environment

  • Repository: github/gh-aw
  • Run ID: 28221459539 (daily-cli-tools-tester, 2026-06-26)

Impact

  • Severity: Medium
  • Frequency: Always (reproducible with any future date or date beyond retention)
  • Workaround: None — user receives no feedback

Generated by 🧪 Daily CLI Tools Exploratory Tester · 104.6 AIC · ⌖ 14.9 AIC · ⊞ 9.5K ·

  • expires on Jul 2, 2026, 10:46 PM UTC-08:00

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions