Skip to content

The agent that grows with you

style(desktop): blank lines around the scoped approval-mode read (eslint padding warnings)

teknium164ea12456a5b
diff --git a/apps/desktop/src/store/approval-mode.ts b/apps/desktop/src/store/approval-mode.ts
index abf9c744c26..4cf43e85ed8 100644
--- a/apps/desktop/src/store/approval-mode.ts
+++ b/apps/desktop/src/store/approval-mode.ts
@@ -65,10 +65,12 @@ export async function syncApprovalModeForProfile(
): Promise<ApprovalMode> {
const key = profileKey(profile)
const revision = nextRevision(key)
+
const result = (await requestGateway(
'config.get',
scopeToProfile(profile, { key: 'approvals.mode' })
)) as { value?: string }
+
const mode = normalizeApprovalMode(result?.value)
if (revisions.get(key) === revision) {