Skip to content

QA: check_task flooding in Live Block — need dedup for repeated tools #84

@randomm

Description

@randomm

Bug

When the PM agent polls check_task repeatedly, each call gets its own line in the Live Block:

✓ check_task  check_task  tsk_c00d947a3001AAwzCv13FtinQT
✓ check_task  check_task  tsk_c00d947a3001AAwzCv13FtinQT
✓ check_task  check_task  tsk_c00d947a3001AAwzCv13FtinQT
... (15+ lines)

The old inline display had a dedup counter (×N). The Live Block doesn't because each tool call has a unique callID.

Expected Behavior

Consecutive calls to the same tool with the same arguments should collapse:

✓ check_task  tsk_c00d947a3001AAwzCv13FtinQT (×15)

Approach

Add dedup logic in streamResponse() — when a new tool_start has the same name and summary as the previous tool, reuse the same Live Block ID and update a counter instead of creating a new entry.

Alternatively, add dedup inside liveblock.ts itself.

Screenshots

Found during QA of commit 85c396e on feature/oclite-ui-components.

Related

Part of #82 (Live Block). Previously tracked as #80.

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