mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-13 17:52:38 +02:00
Deduplicate user-turn images by full base64 data and update desktop permissions copy for Screenshot Assist.
This commit is contained in:
parent
a07c44f496
commit
8b542ca3dd
2 changed files with 7 additions and 6 deletions
|
|
@ -19,14 +19,15 @@ const STEPS = [
|
||||||
id: "screen-recording",
|
id: "screen-recording",
|
||||||
title: "Screen Recording",
|
title: "Screen Recording",
|
||||||
description:
|
description:
|
||||||
"Lets SurfSense capture your screen to understand context and provide smart writing suggestions.",
|
"Lets SurfSense capture a region of your screen, full display, or browser (where supported) to attach to chat in Screenshot Assist, or to capture the full display from the composer.",
|
||||||
action: "requestScreenRecording",
|
action: "requestScreenRecording",
|
||||||
field: "screenRecording" as const,
|
field: "screenRecording" as const,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "accessibility",
|
id: "accessibility",
|
||||||
title: "Accessibility",
|
title: "Accessibility",
|
||||||
description: "Lets SurfSense insert suggestions seamlessly, right where you\u2019re typing.",
|
description:
|
||||||
|
"Lets SurfSense bring the app to the foreground and work with the active application (for example Quick Assist) when you use desktop shortcuts.",
|
||||||
action: "requestAccessibility",
|
action: "requestAccessibility",
|
||||||
field: "accessibility" as const,
|
field: "accessibility" as const,
|
||||||
},
|
},
|
||||||
|
|
@ -131,7 +132,8 @@ export default function DesktopPermissionsPage() {
|
||||||
<div className="space-y-1">
|
<div className="space-y-1">
|
||||||
<h1 className="text-2xl font-semibold tracking-tight">System Permissions</h1>
|
<h1 className="text-2xl font-semibold tracking-tight">System Permissions</h1>
|
||||||
<p className="text-sm text-muted-foreground">
|
<p className="text-sm text-muted-foreground">
|
||||||
SurfSense needs two macOS permissions to provide context-aware writing suggestions.
|
SurfSense needs two macOS permissions for Screenshot Assist and for desktop features that
|
||||||
|
require focusing the app or the active application.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -46,9 +46,8 @@ export function extractUserTurnForNewChatApi(
|
||||||
for (const url of merged) {
|
for (const url of merged) {
|
||||||
const p = dataUrlToPayload(url);
|
const p = dataUrlToPayload(url);
|
||||||
if (!p) continue;
|
if (!p) continue;
|
||||||
const key = `${p.media_type}:${p.data.length}`;
|
if (seen.has(p.data)) continue;
|
||||||
if (seen.has(key)) continue;
|
seen.add(p.data);
|
||||||
seen.add(key);
|
|
||||||
payloads.push(p);
|
payloads.push(p);
|
||||||
if (payloads.length >= MAX_IMAGES) break;
|
if (payloads.length >= MAX_IMAGES) break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue