MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / rejectQuestion

Function rejectQuestion

services/cloud-agent-next/wrapper/src/connection.ts:108–119  ·  view source on GitHub ↗
(
  questionId: string | undefined,
  reason: 'code-review' | 'plan-follow-up',
  kiloClient: WrapperKiloClient
)

Source from the content-addressed store, hash-verified

106 properties: Record<string, unknown>,
107 rootSessionID: string | undefined
108): boolean {
109 if (!rootSessionID || getActivitySessionID(eventType, properties) !== rootSessionID) return false;
110 if (eventType === 'session.turn.open') return true;
111 return eventType === 'session.status' && statusTypeFromProperties(properties) === 'busy';
112}
113
114export const CODE_REVIEW_PERMISSION_REJECTION_MESSAGE =
115 'Permission rejected for code-review non-interactive mode. Continue using another read-only, non-interactive method if available.';
116
117function rejectQuestion(
118 questionId: string | undefined,
119 reason: 'code-review' | 'plan-follow-up',
120 kiloClient: WrapperKiloClient
121): void {
122 if (!questionId) return;

Callers 1

consumeEventStreamFunction · 0.70

Calls 2

logToFileFunction · 0.85
rejectQuestionMethod · 0.45

Tested by

no test coverage detected