Commit Graph
1 Commits
Author SHA1 Message Date
dylanhuff-at-coder 9c58283d8e fix(coderd/agentapi): reject missing RPC messages (#29150)
Reject `UpdateLifecycle`, `UpdateStartup`, and `BatchUpdateMetadata`
requests with a missing sub-message using `InvalidArgument` instead of
panicking. The whole metadata batch is validated before any value is
trimmed or queued.

Adds tests for each handler, a mixed metadata batch, and one DRPC
round-trip confirming the code propagates and the connection stays
usable.

Refs PLAT-596

Reviewed and updated by Coder Agents on behalf of @dylanhuff-at-coder.
2026-09-15 08:18:54 -07:00