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

Function turnStatusLabelStateContext

coderd/x/chatd/quickgen.go:949–962  ·  view source on GitHub ↗
(status database.ChatStatus)

Source from the content-addressed store, hash-verified

947}
948
949func turnStatusLabelStateContext(status database.ChatStatus) string {
950 switch status {
951 case database.ChatStatusWaiting:
952 return "The turn finished and the chat is idle."
953 case database.ChatStatusPending:
954 return "Another user message is queued and the chat will continue."
955 case database.ChatStatusRequiresAction:
956 return "The chat is waiting for user input or action."
957 case database.ChatStatusError:
958 return "The chat ended with an error."
959 default:
960 return "The chat state is unknown."
961 }
962}
963
964func fallbackTurnStatusLabel(status database.ChatStatus) string {
965 switch status {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected