chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-07 05:58:27 +00:00
parent 218147271c
commit 472b33113e
6 changed files with 25 additions and 13 deletions
+5 -1
View File
@@ -131,7 +131,11 @@ export function registerIpcHandlers(deps: Deps) {
})
if (result.canceled) return null
const files = await Promise.all(
result.filePaths.map(async (filePath) => ({ path: filePath, name: basename(filePath), size: (await stat(filePath)).size })),
result.filePaths.map(async (filePath) => ({
path: filePath,
name: basename(filePath),
size: (await stat(filePath)).size,
})),
)
assertAttachmentBudget(files)
const token = pickedFiles.add(event.sender.id, result.filePaths)