Skip to content

CLI batch resolution/listing truncates at 100 batches (same class as #743) #825

Description

@frankbria

Follow-up flagged during review of #824 (fix for #743).

Problem

The batch CLI commands resolve a partial batch id in Python over conductor.list_batches(workspace, limit=100), mirroring the #743 task bug for the Batch entity. Batches beyond the first 100 are unaddressable by cf work batch status/stop/resume/follow.

Evidence

codeframe/cli/app.py ~ lines 3955 / 4100 / 4169 / 4368 — [b for b in all_batches if b.id.startswith(batch_id)] over a capped list_batches.

Fix sketch

Add a find_by_prefix-style SQL LIKE 'prefix%' lookup for batches (as done for tasks in #743), or pass an uncapped limit for batch listing/resolution. Escape LIKE metachars.

Scope

Out of scope for #743 (tasks-only). Realistic only if a workspace accumulates >100 batches.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions