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

Function toChatPlanModePayload

site/src/api/queries/chats.ts:544–549  ·  view source on GitHub ↗
(
	planMode: TypesGen.ChatPlanMode | undefined,
)

Source from the content-addressed store, hash-verified

542const CLEAR_PLAN_MODE_WIRE_VALUE = "" satisfies ChatPlanModeOrClear;
543
544const toChatPlanModePayload = (
545 planMode: TypesGen.ChatPlanMode | undefined,
546): ChatPlanModeOrClear => {
547 // The API expects an empty string on the wire to clear plan mode.
548 return planMode ?? CLEAR_PLAN_MODE_WIRE_VALUE;
549};
550
551const getInfiniteChatsQueryString = (
552 filters: InfiniteChatsFilters | undefined,

Callers 1

updateChatPlanModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected