fix: complete config path and review follow-ups (#3348)

This commit is contained in:
Bohdan Triapitsyn
2026-09-05 02:19:59 +03:00
committed by GitHub
parent 0543b954c3
commit 260bfe666b
14 changed files with 119 additions and 29 deletions
+4 -6
View File
@@ -1301,12 +1301,10 @@ class OpencodeService {
* endpoint introduced in OpenCode SDK v1.17.12. Wraps
* `session.permission.get`.
*
* Returns a tagged `FetchPermissionResult` so the caller can distinguish
* a confirmed-resolved permission (HTTP 404) from a fetch failure
* (network error, malformed response, or pre-v1.17.12 server without
* the V2 endpoint). The auto-accept flow uses this distinction to drop
* resolved permissions from the resync output, preventing stale
* `permission.list` entries from sticking around in the UI.
* Returns the state of the V2 permission authority. Its HTTP 404 result
* does not prove that a request from `permission.list` has settled:
* list-derived reconciliation must use that list's own reply path.
* Fetch failures remain distinct from the V2 resolved result.
*/
async fetchPermission(
sessionID: string,