web: address #1671 review nit — simplify redundant autoOpen guard

DeepLink.autoOpen is a non-optional boolean, so the `?? false` was dead once
openApp was truthy. Collapse to Boolean(deepLink?.openApp && deepLink.autoOpen)
— still false when there's no deep link, still gated on openApp so a malformed
autoOpen-without-openApp link can't fire.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BrihGWcrM9JGRyu41nzZYw
This commit is contained in:
cliffhall 2026-07-11 23:24:20 -04:00
commit b8cd4fd431

View file

@ -1190,9 +1190,7 @@ export function InspectorView({
onOpenApp={onOpenApp} onOpenApp={onOpenApp}
onCloseApp={onCloseApp} onCloseApp={onCloseApp}
onError={onAppError} onError={onAppError}
autoOpen={ autoOpen={Boolean(deepLink?.openApp && deepLink.autoOpen)}
Boolean(deepLink?.openApp) && (deepLink?.autoOpen ?? false)
}
/> />
</ScreenStage> </ScreenStage>
<ScreenStage active={activeTab === "Prompts"}> <ScreenStage active={activeTab === "Prompts"}>