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.
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()returnstrueon the first matchingin_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.jsonrecorded an answer for only one of the three comment ids. The other two ids never appear in anyin_response_toagain, 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.