The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
style(desktop): import and JSX prop order for the hub iframe policy
Brooklyn Nicholson0d9579ff718a
diff --git a/apps/desktop/electron/main.ts b/apps/desktop/electron/main.tsindex b3f73ed73d5..7c5f05db427 100644--- a/apps/desktop/electron/main.ts+++ b/apps/desktop/electron/main.ts@@ -310,6 +310,7 @@ import {import { assertNoSecondLocalBackend, assertNotPassiveSpawn } from './host-backend-singleton'import { lookupPublishedSessionToken } from './host-published-token'import { claimHostSpawnGate } from './host-spawn-gate'+import { HERMES_HUB_FALLBACK_ORIGIN, HERMES_HUB_ORIGIN, isHermesHubClipboardWrite } from './hub-iframe-policy'import { requestHudClose } from './hud-close'import { cursorPointInWindow } from './hud-cursor'import { startHudGameOverlayWatch } from './hud-game-overlay'@@ -613,7 +614,6 @@ import {import { registerWindowControlIpc, windowControlState } from './window-controls'import { revealAction, shouldFocusToTakeKeyboard } from './window-focus-policy'import { createWindowOpenHandler } from './window-open-policy'-import { HERMES_HUB_FALLBACK_ORIGIN, HERMES_HUB_ORIGIN, isHermesHubClipboardWrite } from './hub-iframe-policy'import { installWindowRendererLifecycle } from './window-renderer-lifecycle'import { wireWindowReveal } from './window-reveal'import {@@ -7095,6 +7095,7 @@ function installMediaPermissions() {session.defaultSession.setPermissionRequestHandler((webContents, permission, callback, details) => {if ((permission as string) === 'clipboard-sanitized-write') {callback(isHermesHubClipboardWrite(focusedFrameOrigin(webContents)))+return}diff --git a/apps/desktop/src/plugins/hermes-bots/skills-hub.tsx b/apps/desktop/src/plugins/hermes-bots/skills-hub.tsxindex 1e3c82b1df9..98042110099 100644--- a/apps/desktop/src/plugins/hermes-bots/skills-hub.tsx+++ b/apps/desktop/src/plugins/hermes-bots/skills-hub.tsx@@ -227,7 +227,6 @@ export function HubSkillsSection({ bot, onInstalled }: HubSkillsSectionProps) {}}><iframe- ref={frameRef}// The hub page needs three capabilities beyond the bare sandbox// posture (#91612): same-origin so its own routing and storage// work, popups so its external links (docs, GitHub, Discord)@@ -238,6 +237,7 @@ export function HubSkillsSection({ bot, onInstalled }: HubSkillsSectionProps) {// will-frame-navigate guard in main keeps this frame pinned to// the picker URL.allow="clipboard-write"+ ref={frameRef}sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox"src={hubPickerUrl}style={{