MCPcopy Index your code
hub / github.com/coder/coder / ChatGitWatchAgentStateMessage

Function ChatGitWatchAgentStateMessage

codersdk/chats.go:1471–1473  ·  view source on GitHub ↗

ChatGitWatchAgentStateMessage is the user-visible error message returned from /api/experimental/chats/{id}/stream/git when the chat workspace's agent is not in the connected state.

(actual WorkspaceAgentStatus)

Source from the content-addressed store, hash-verified

1469// returned from /api/experimental/chats/{id}/stream/git when the
1470// chat workspace's agent is not in the connected state.
1471func ChatGitWatchAgentStateMessage(actual WorkspaceAgentStatus) string {
1472 return fmt.Sprintf("%s%q, it must be in the %q state.", ChatGitWatchAgentStatePrefix, actual, WorkspaceAgentConnected)
1473}
1474
1475// IsChatGitWatchFallbackMessage reports whether msg matches one of
1476// the 400-response messages /api/experimental/chats/{id}/stream/git

Callers 1

watchChatGitMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected