Skip to content

Only one comment in a batch gets handled; the rest silently disappear #10

Description

@Sfgangloff

What happens

When I select a few things on the page and submit them together as one batch, the agent often answers only the first comment. The other comments disappear from the panel and look handled, but they were never addressed.

Why

In lib/feedback.js, the page marks a whole batch as done as soon as any one of its comments is answered. lastBatchProcessed() returns true on the first matching in_response_to, so the "processing" state clears for the entire batch. The other comments were already removed from the pending list when the batch was submitted, so they leave no trace.

Evidence

A real 3-comment batch in my inbox: history.json recorded an answer for only one of the three comment ids. The other two ids never appear in any in_response_to again, and the panel showed nothing pending.

Suggested fix

Track progress per comment instead of per batch: only clear the batch once every comment is answered, and show which comments are still waiting. PR coming.

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