From 8327e1f65fa5a5db71b05c3fcd5f6433307f4b09 Mon Sep 17 00:00:00 2001 From: Spike Curtis Date: Wed, 4 Mar 2026 21:52:22 +0400 Subject: [PATCH] chore: mark PatchAppStatus as deprecated in agentsdk (#22355) relates to #21335 Marks the sdk method that directly calls Coderd to patch App status as deprecated in favor of the Agent API. --- codersdk/agentsdk/agentsdk.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codersdk/agentsdk/agentsdk.go b/codersdk/agentsdk/agentsdk.go index 78bc71f20d..4255e41d49 100644 --- a/codersdk/agentsdk/agentsdk.go +++ b/codersdk/agentsdk/agentsdk.go @@ -584,6 +584,8 @@ type PatchAppStatus struct { NeedsUserAttention bool `json:"needs_user_attention"` } +// PatchAppStatus updates the status of a workspace app. +// Deprecated: use the DRPCAgentClient.UpdateAppStatus instead func (c *Client) PatchAppStatus(ctx context.Context, req PatchAppStatus) error { res, err := c.SDK.Request(ctx, http.MethodPatch, "/api/v2/workspaceagents/me/app-status", req) if err != nil {