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)
| 1469 | // returned from /api/experimental/chats/{id}/stream/git when the |
| 1470 | // chat workspace's agent is not in the connected state. |
| 1471 | func 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 |