Skip to content

The agent that grows with you

fix(desktop): sort the clearSudoRequest import (lint)

teknium145c16a3d4c5f
diff --git a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/input-requests.ts b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/input-requests.ts
index ac0ab916f65..2ad74121fb2 100644
--- a/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/input-requests.ts
+++ b/apps/desktop/src/app/session/hooks/use-message-stream/gateway-event/input-requests.ts
@@ -17,9 +17,9 @@ import {
$vaultCodeRequests,
$vaultSaveLoginRequests,
$vaultUnlockRequests,
+ clearSudoRequest,
clearVaultCodeRequest,
clearVaultSaveLoginRequest,
- clearSudoRequest,
clearVaultUnlockRequest,
receiveApprovalRequest,
setSecretRequest,
diff --git a/apps/desktop/src/components/prompt-overlays.tsx b/apps/desktop/src/components/prompt-overlays.tsx
index 187bd341013..6c6c5647c2c 100644
--- a/apps/desktop/src/components/prompt-overlays.tsx
+++ b/apps/desktop/src/components/prompt-overlays.tsx
@@ -80,12 +80,14 @@ function SudoDialog({ sessionId }: { sessionId: string | null }) {
try {
const method = request.respondMethod ?? 'sudo.respond'
const reply = { password: value, request_id: request.requestId }
+
// Pinned to the socket the request came from: the foreground gateway may be another host.
if (request.origin) {
await requestGatewayForAgent<{ status?: string }>(request.origin.connectionId, request.origin.profile, method, reply)
} else {
await gateway.request<{ status?: string }>(method, reply)
}
+
triggerHaptic('submit')
clearSudoRequest(request.sessionId, request.requestId)
} catch (error) {
diff --git a/apps/desktop/src/plugins/hermes-bots/screen-install.tsx b/apps/desktop/src/plugins/hermes-bots/screen-install.tsx
index 11662c0df86..2bc9a9131ba 100644
--- a/apps/desktop/src/plugins/hermes-bots/screen-install.tsx
+++ b/apps/desktop/src/plugins/hermes-bots/screen-install.tsx
@@ -45,6 +45,7 @@ export function ScreenInstallCard({ bot, status, onInstalled }: ScreenInstallCar
setLog(prev => (prev.length >= LOG_KEEP ? [...prev.slice(1), line] : [...prev, line]))
}
})
+
const offDone = host.onEvent('display.install.done', (event: RpcEvent) => {
const payload = event.payload as { profile_key?: string; code?: number; status?: DisplayStatus } | undefined