(status codersdk.ChatStatus)
| 4456 | } |
| 4457 | |
| 4458 | func 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 | |
| 4472 | func (p *Server) clearProvisionalStreamParts(chatID uuid.UUID) { |
| 4473 | val, ok := p.chatStreams.Load(chatID) |