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.
This commit is contained in:
Spike Curtis
2026-03-04 21:52:22 +04:00
committed by GitHub
parent c7dd429bbf
commit 8327e1f65f
+2
View File
@@ -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 {