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

Method dispatchSuccessfulTurnPush

coderd/x/chatd/chatd.go:9722–9736  ·  view source on GitHub ↗
(
	ctx context.Context,
	chat database.Chat,
	statusLabel string,
	logger slog.Logger,
)

Source from the content-addressed store, hash-verified

9720}
9721
9722func (p *Server) dispatchSuccessfulTurnPush(
9723 ctx context.Context,
9724 chat database.Chat,
9725 statusLabel string,
9726 logger slog.Logger,
9727) {
9728 if !p.webpushConfigured() {
9729 return
9730 }
9731 pushBody := fallbackTurnStatusLabel(database.ChatStatusWaiting)
9732 if statusLabel != "" {
9733 pushBody = statusLabel
9734 }
9735 p.dispatchPush(ctx, chat, pushBody, database.ChatStatusWaiting, logger)
9736}
9737
9738func (p *Server) maybeClearLastTurnSummaryAsync(
9739 ctx context.Context,

Calls 3

webpushConfiguredMethod · 0.95
dispatchPushMethod · 0.95
fallbackTurnStatusLabelFunction · 0.85

Tested by

no test coverage detected