Skip to content

Conversation action-item delete returns 200 while the released mobile client expects 204 #15096

Closed

Description

@aryanorastar

Deleting an action item from a conversation succeeds on the backend but reads as a failure in the released mobile client, because the two sides disagree on the success status code.

  • Backend: backend/routers/conversations.py:1406 declares @router.delete("/v1/conversations/{conversation_id}/action-items", response_model=ConversationStatusResponse), so a successful delete returns 200 with {"status": "Ok"}.
  • Client: app/lib/backend/http/api/conversations.dart:567 (deleteConversationActionItem) ends with return response.statusCode == 204;, so every successful delete is reported as false to the caller.

This is the remaining half of the pattern #14691 is fixing for DELETE /v1/conversations/{conversation_id}, whose 204 → 200 change came from the response_model backfill wave in e22938a (2026-07-04). #14691's notes list two other endpoints as part of the same wave; both match their clients on current main, so they are not affected: DELETE /v1/action-items/{action_item_id} is status_code=204 (backend/routers/action_items.py:781) against a client that checks 204 (app/lib/backend/http/api/action_items.dart:303), and POST /v1/action-items/batch-delete returns 200 with a body against a client that checks 200 (action_items.dart:316).

Closing it means either restoring status_code=204 on the route and regenerating the API clients the way #14691 does, or moving the client to the 200 contract — which of those is right is a maintainer call, since the generated desktop and web clients read the typed body today.

Not verified here: I read this from source on main and did not run the mobile app, so I cannot say what the user-visible symptom is beyond the call reporting failure (stale row, error toast, or both).

Activity

  1. aryanorastar commented on Sep 20, 2026

    @aryanorastar
    CollaboratorAuthor

    Closing: the only consumer of this endpoint is the released mobile client — desktop and web never call it, and I am not working mobile-side contracts. Leaving the analysis here in case someone picks the client contract up.

  2. moved this from Someday to In review in omi TODO / bountieson Sep 20, 2026
  3. aryanorastar commented on Nov 5, 2026

    @aryanorastar
    CollaboratorAuthor

    Current-code clarification after the closing note: this analysis remains applicable on main f8edd96cdbe5849dd59951a9e86d8360b2bb373e. Mobile deleteConversationActionItem still checks 204; the backend conversation-detail task delete still returns a 200 status body. The standalone /v1/action-items/{id} route is a different, matching 204 contract.

    A new intake of auriens' November 1 Android/web report is tracked under OPEN #24719. Which task screen was used is unknown. Current mobile callers also ignore the async result, so this mismatch alone does not establish the customer's visible failure or explain web behavior. No task fix or customer resolution should be inferred from this issue's CLOSED/COMPLETED state; the closing note records a scope deferral, not implementation.

    Preserving this issue's state and assignments; this comment links the still-relevant boundary to the active cross-client deletion investigation without claiming a common cause or a reproduced customer failure.

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions