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

Function isActiveAgentChat

coderd/workspaceagents.go:2774–2789  ·  view source on GitHub ↗
(chat database.Chat)

Source from the content-addressed store, hash-verified

2772}
2773
2774func isActiveAgentChat(chat database.Chat) bool {
2775 if chat.Archived {
2776 return false
2777 }
2778
2779 switch chat.Status {
2780 case database.ChatStatusWaiting,
2781 database.ChatStatusPending,
2782 database.ChatStatusRunning,
2783 database.ChatStatusPaused,
2784 database.ChatStatusRequiresAction:
2785 return true
2786 default:
2787 return false
2788 }
2789}
2790
2791func clearAgentChatContext(
2792 ctx context.Context,

Callers 4

resolveAgentChatFunction · 0.85
clearAgentChatContextFunction · 0.85

Calls

no outgoing calls

Tested by 1