docs: document the OpenCode client migration surfaces (OM-179)

Adds JSDoc comments to the functions this branch adds or changes, so the touched-code docstring coverage clears the review threshold. Comments only; no code, formatting or import changes.
This commit is contained in:
Chris Scott committed 2026-11-05 16:32:43 -05:00
1 parent 64e87ba1ea
commit 6297403a41
41 files changed
+691

No files matched your search

@@ -36,6 +36,12 @@ interface PermissionRequestDialogProps {
onOpenChange?: (open: boolean) => void
}
/**
* Renders a modal prompt for the current pending permission request with
* allow-once, always-allow, and reject actions plus a count of further queued
* requests. Focus starts on allow-once, and the rejection reason resets
* whenever the request changes.
*/
export function PermissionRequestDialog({
permission,
pendingCount,
@@ -60,6 +66,10 @@ export function PermissionRequestDialog({
if (!permission) return null
if (parentOpen === false) return null
/**
* Sends the user's reply for the current permission request, passing the trimmed rejection reason
* only for rejections, and reports failures as a toast while clearing the pending action state.
*/
const handleResponse = async (response: PermissionReply) => {
setIsLoading(true)
setLoadingAction(response)