Skip to content

bug(platform): Inbox enables bulk Close for 201 rows but sends a request capped at 200 #3733

Closed

Description

@yannickmonney

Inbox can load and select more than 200 conversations, but its enabled bulk Close action sends all selected IDs in one request. The native endpoint rejects that request at 201, so the visible bulk operation cannot complete.

Reproduce locally

  1. In a local Inbox, create 201 synthetic open conversations matching one filter. Let all matching pages load (a filter causes the list to load additional pages).
  2. Use Select all. Confirm the toolbar says 201 selected and Close is enabled.
  3. Choose Close and inspect the single bulk request.

Expected: the UI either supports the selected set with bounded requests and truthful partial-failure handling, or communicates/enforces the supported limit before offering the action.

Observed: one POST /api/app/conversations/bulk/close?orgId={org} contains 201 IDs and returns 400: conversationIds: Too big: expected array to have <=200 items. All 201 remain open and selected. Reducing the set is necessary but the UI does not explain this limit before the action.

Independent evidence and controls

The parent replay used the actual Conversations component, pagination/selection/bulk hooks and HTTP adapters against authenticated native localhost:3078 routes and real PostgreSQL. Seven GET pages yielded 201 owned fixture rows; one bulk POST submitted all 201 and failed. Native exact-200 Close and Reopen controls both returned 200 and persisted; all fixture rows were restored open before the UI failure proof. No outbound messages were sent.

Identity, shell and unrelated channel reads were supplied by the harness; the detail pane was not mounted. This proves the component-to-native boundary, not browser layout.

Cause and repair boundary

app/features/conversations/hooks/use-bulk-actions.ts gathers the full visible selection and passes it to one mutation. backend/domains/conversations/routes.ts:589 caps the status verb body at 200. The shared selection path has no corresponding bound.

Cover 200/201, filtered selections, progress and partial refusal. Sweep the status verbs sharing this adapter; this report counts their common selection/request mismatch once. It does not claim that bulk mail was tested.

Audit scope and reproduction record

  • Tested source: 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d; local-only audit on 2026-09-28.
  • Relevant source compared with origin/main 2be6c267eaf8b7a67d0e5abe1b0b3d655eb2ca25. The cause remains present; the only changes in the compared Inbox UI files are unrelated accent/filter-error affordances.
  • Full-body dedup reviewed against the all-state issue snapshot and the existing 102-finding baseline. This is one distinct cause, not an endpoint/locale variant or documented debt.
  • Parent replay log: /Users/yannick/.codex/notes/tale-1000-additional/inbox-next/parent-boundaries.log. Retained proof code lives in the same notes directory outside the repository. No production testing, real customer data, provider calls or application source edits.
  • Source links are rooted at the tested commit.
  • Severity: P2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions