Skip to content

list_tasks markdown output truncates IDs to 8 chars, making them unusable #1

@Oortonaut

Description

@Oortonaut

Bug Description

list_tasks in markdown format truncates task IDs to 8 characters, which makes the displayed IDs unusable for subsequent tool calls (e.g., get, update, claim).

Root Cause

In src/format.rs, both format_task_short (line 202) and format_scan_task_short (line 475) truncate the task ID:

&task.id[..8.min(task.id.len())]

Impact

Task IDs are generated as 2-word petnames (e.g., gentle-turtle, brave-falcon). These are typically 12-20 characters long. Truncating to 8 characters produces broken prefixes like gentle-t or brave-fa that:

  1. Cannot be used with any other toolget, update, claim, delete, etc. all require the full task ID
  2. Are ambiguous — multiple petnames could share the same 8-char prefix
  3. Break the agent workflow — agents calling list_tasks to discover tasks cannot use the returned IDs without a separate get call

Reproduction

  1. Create a task (auto-generates petname ID, e.g., gentle-turtle)
  2. Call list_tasks with default (markdown) format
  3. Observe the ID is truncated to 8 chars (e.g., gentle-t)
  4. Try to use the truncated ID with get — it fails with "task not found"

Expected Behavior

list_tasks should display the full task ID so agents can use it directly in follow-up calls.

Affected Code

  • src/format.rs:202format_task_short()
  • src/format.rs:475format_scan_task_short()

Suggested Fix

Replace &task.id[..8.min(task.id.len())] with &task.id in both locations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions