fix(cli): correct logic around CODER_MCP_APP_STATUS_SLUG (#17391)

Past me was not smart.
This commit is contained in:
Cian Johnston
2025-04-14 16:24:02 +01:00
committed by GitHub
parent a98605913a
commit 2d2c9bda98

View File

@ -411,7 +411,7 @@ func mcpServerHandler(inv *serpent.Invocation, client *codersdk.Client, instruct
} else {
cliui.Warnf(inv.Stderr, "CODER_AGENT_TOKEN is not set, task reporting will not be available")
}
if appStatusSlug != "" {
if appStatusSlug == "" {
cliui.Warnf(inv.Stderr, "CODER_MCP_APP_STATUS_SLUG is not set, task reporting will not be available.")
} else {
clientCtx = toolsdk.WithWorkspaceAppStatusSlug(clientCtx, appStatusSlug)