Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#86634)

hermes-seaeye[bot]efc3cd8697f3
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.ts
index d7bd748c477..9f2b3c9f26f 100644
--- a/apps/desktop/electron/main.ts
+++ b/apps/desktop/electron/main.ts
@@ -2924,6 +2924,7 @@ function execText(command, args) {
async function processStartMarker(pid) {
if (process.platform === 'linux') {
const stat = await fs.promises.readFile(`/proc/${pid}/stat`, 'utf8')
+
const fields = stat
.slice(stat.lastIndexOf(')') + 1)
.trim()
@@ -7121,7 +7122,9 @@ async function discoverCloudAgents(org?: string) {
// A 401 means the portal session lapsed (and silent renewal could not
// recover it) — surface it as a re-login, not a generic failure.
if (error && error.statusCode === 401) {
- const err = new Error('Your Hermes Cloud session has expired. Open Settings → Gateway and sign in again.') as any
+ const err = new Error(
+ 'Your Hermes Cloud session has expired. Open Settings → Gateway and sign in again.'
+ ) as any
err.needsCloudLogin = true
err.cause = error
throw err
diff --git a/apps/desktop/src/store/prompts.ts b/apps/desktop/src/store/prompts.ts
index c70a0965cb5..da9c7dedb54 100644
--- a/apps/desktop/src/store/prompts.ts
+++ b/apps/desktop/src/store/prompts.ts
@@ -137,6 +137,7 @@ export async function replayPendingApproval(gateway: ApprovalGateway | null, ses
const result =
rawResult && typeof rawResult === 'object' ? (rawResult as { approvals?: PendingApprovalPayload[] }) : {}
+
const pending = Array.isArray(result?.approvals) ? result.approvals[0] : undefined
if (!pending || typeof pending.request_id !== 'string') {