Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

fix: restore resetAndRequestPermission binding + fix Windows git longpaths

Louis Beaumontb215cd2e3063
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index b9be176f5..6d582c922 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -177,9 +177,10 @@ jobs:
shell: powershell
run: |
Write-Host "Enabling git core.longpaths..."
- git config --system core.longpaths true
+ # Use --global instead of --system to avoid permission issues on self-hosted runners
+ git config --global core.longpaths true
# Verify the setting
- $longpaths = git config --system --get core.longpaths
+ $longpaths = git config --global --get core.longpaths
Write-Host "core.longpaths is set to: $longpaths"
if ($longpaths -ne "true") {
throw "Failed to enable git long paths"
diff --git a/apps/screenpipe-app-tauri/lib/utils/tauri.ts b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
index 7a92e9b2e..8b9e1b621 100644
--- a/apps/screenpipe-app-tauri/lib/utils/tauri.ts
+++ b/apps/screenpipe-app-tauri/lib/utils/tauri.ts
@@ -28,6 +28,19 @@ async checkMicrophonePermission() : Promise<OSPermissionStatus> {
async checkAccessibilityPermissionCmd() : Promise<OSPermissionStatus> {
return await TAURI_INVOKE("check_accessibility_permission_cmd");
},
+/**
+ * Reset a permission using tccutil and re-request it
+ * This removes the app from the TCC database and triggers a fresh permission request
+ */
+async resetAndRequestPermission(permission: OSPermission) : Promise<Result<null, string>> {
+ try {
+ await TAURI_INVOKE("reset_and_request_permission", { permission });
+ return { status: "ok", data: null };
+} catch (e) {
+ if(e instanceof Error) throw e;
+ else return { status: "error", error: e as any };
+}
+},
async getEnv(name: string) : Promise<string> {
return await TAURI_INVOKE("get_env", { name });
},