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

Function shouldClearRetryPhaseForStatus

coderd/x/chatd/chatd.go:4458–4470  ·  view source on GitHub ↗
(status codersdk.ChatStatus)

Source from the content-addressed store, hash-verified

4456}
4457
4458func shouldClearRetryPhaseForStatus(status codersdk.ChatStatus) bool {
4459 switch status {
4460 case codersdk.ChatStatusWaiting,
4461 codersdk.ChatStatusPending,
4462 codersdk.ChatStatusPaused,
4463 codersdk.ChatStatusCompleted,
4464 codersdk.ChatStatusError,
4465 codersdk.ChatStatusRequiresAction:
4466 return true
4467 default:
4468 return false
4469 }
4470}
4471
4472func (p *Server) clearProvisionalStreamParts(chatID uuid.UUID) {
4473 val, ok := p.chatStreams.Load(chatID)

Callers 1

publishToStreamMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected