Skip to content

Bug: approvals mutations + human_input mutations throw raw Error — approval rejections are opaque Server Errors #2009

Closed

Description

@yannickmonney

Area

services/platform/convex/approvals/mutations.ts, agent_tools/human_input/mutations.ts.

Steps to reproduce

  1. Submit/reject an approval request while unauthenticated or when the approval does not exist.
  2. Respond to a human input request that has already been responded to, has the wrong type, or is not linked to a thread.
  3. All rejections surface as opaque "Server Error" in the client console.

Expected

All user-facing conditions should be ConvexError({ code: ... }) so the frontend can surface actionable errors.

Actual

approvals/mutations.ts:

  • line 25 — Unauthenticated
  • line 30 — Approval not found
  • line 110 — Unauthenticated
  • line 115 — Approval not found

agent_tools/human_input/mutations.ts:

  • line 51 — Approval not found
  • line 56 — Only a completed response can be edited
  • line 61 — Workflow responses cannot be edited
  • line 64 — Human input request has already been responded to
  • line 68 — Invalid approval type
  • line 75 — Human input request is not associated with a thread
  • line 86 — Wait for the current response to finish before editing your answer
  • line 171 — budget exceeded message (user-facing)
  • line 254 — budget exceeded

Evidence

  • services/platform/convex/approvals/mutations.ts:22-31 and :107-116
  • services/platform/convex/agent_tools/human_input/mutations.ts:40-90 and :165-175, :248-256

Notes

Human input responses are directly user-triggered (the "Submit" button in the approval card). When the server rejects, the user sees no feedback.

Activity

  1. added
    priority: medium
    bug
    service: platform
    automated
    on Jun 23, 2026
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

    automatedbugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions