Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(desktop): agent preview tabs keep working while T3 is hidden #22743

Closedjuliusmarmingewants to merge 10 commits intomain fromrefs/pull/22743/headopened View on GitHub

Showing 26 changed files with 9 additions and 0 deletions (loading 23).

x
0 of 26 viewed, 26 left
2 additions and 0 deletions.github/actions/ci-changes/action.ymlModified
View file
@@ -21,6 +21,8 @@
value: ${{ steps.detect.outputs.release_smoke }}
mobile_native:
value: ${{ steps.detect.outputs.mobile_native }}
+ desktop_preview:
+ value: ${{ steps.detect.outputs.desktop_preview }}
runs:
using: composite
steps:
6 additions and 0 deletions.github/scripts/ci-changes.cjsModified
View file
@@ -51,6 +51,11 @@
const MOBILE_NATIVE =
/^apps\/mobile\/.*\.(swift|kt|kts)$|^apps\/mobile\/(\.swiftlint\.yml|detekt\.yml|\.editorconfig|Brewfile)$|^scripts\/mobile-native-static-check\.ts$|^package\.json$|^\.github\/workflows\/ci\.yml$|^\.github\/scripts\/ci-changes\.cjs$|^\.github\/actions\/ci-changes\//;
​
+// Real-Electron check that agent preview tabs paint with the app window hidden.
+// Electron is pinned in the desktop manifest, so its upgrades rerun it too.
+const DESKTOP_PREVIEW =
+ /^apps\/desktop\/src\/preview\/|^apps\/desktop\/scripts\/verify-background-preview|^apps\/desktop\/package\.json$|^\.github\/workflows\/ci\.yml$|^\.github\/scripts\/ci-changes\.cjs$|^\.github\/actions\/ci-changes\//;
+​
// Startup, migration, settlement, and sidebar paths that decide whether an upgraded user's
// threads show after launch. Build runs scripts/smoke-desktop-app.ts for them, so they do not
// first fail in the release launch check.
@@ -186,6 +191,7 @@
rust: everything || rust,
release_smoke: scriptsChanged,
mobile_native: files === null || files.some((file) => MOBILE_NATIVE.test(file)),