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

Function chatdContext

coderd/x/chatd/chatdebug/service.go:212–216  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

210}
211
212func chatdContext(ctx context.Context) context.Context {
213 //nolint:gocritic // AsChatd provides narrowly-scoped daemon access for
214 // chat debug persistence reads and writes.
215 return dbauthz.AsChatd(ctx)
216}
217
218// IsEnabled returns whether debug logging is enabled for the given chat.
219func (s *Service) IsEnabled(

Callers 11

IsEnabledMethod · 0.85
CreateRunMethod · 0.85
UpdateRunMethod · 0.85
CreateStepMethod · 0.85
classifyMissingRunMethod · 0.85
UpdateStepMethod · 0.85
TouchStepMethod · 0.85
DeleteByChatIDMethod · 0.85
DeleteAfterMessageIDMethod · 0.85
FinalizeStaleMethod · 0.85
AggregateRunSummaryMethod · 0.85

Calls 1

AsChatdFunction · 0.92

Tested by

no test coverage detected