( questionId: string | undefined, reason: 'code-review' | 'plan-follow-up', kiloClient: WrapperKiloClient )
| 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 | |
| 114 | export 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 | |
| 117 | function rejectQuestion( |
| 118 | questionId: string | undefined, |
| 119 | reason: 'code-review' | 'plan-follow-up', |
| 120 | kiloClient: WrapperKiloClient |
| 121 | ): void { |
| 122 | if (!questionId) return; |
no test coverage detected