Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
9252f85
feat(automation): let a host check the action before a delete
xxxxxxxxxxxxx Nov 11, 2026
9290205
feat(desktop-gpui): run saved automation rules
xxxxxxxxxxxxx Nov 11, 2026
06fe675
feat(desktop-gpui): update automations settings copy now that rules run
xxxxxxxxxxxxx Nov 11, 2026
155896f
Merge remote-tracking branch 'origin/main' into gpui-run-automations-…
richiemcilroy Nov 14, 2026
6d6e504
feat(desktop-gpui): add native notifications for automations
richiemcilroy Nov 14, 2026
7d5d5f5
fix(desktop-gpui): make saved automations safe and complete
richiemcilroy Nov 14, 2026
9daed47
feat(desktop-gpui): explain delete and notify rules in automation set…
richiemcilroy Nov 14, 2026
bdf6aec
test(desktop-gpui): drive saved automations in the real app
richiemcilroy Nov 14, 2026
42f3773
fix(desktop-gpui): release the automation event lock before a duplica…
richiemcilroy Nov 14, 2026
474e68e
fix(desktop-gpui): keep the editor closed for a recording a rule deletes
richiemcilroy Nov 14, 2026
d3d6af9
test(desktop-gpui): cover the new automation settings strings
richiemcilroy Nov 14, 2026
b71f91f
fix(desktop-gpui): keep the editor setting for a delete that can neve…
richiemcilroy Nov 14, 2026
1c6039a
fix(desktop-gpui): hold the delete reservation through the upload cle…
richiemcilroy Nov 15, 2026
2ab80c3
Merge remote-tracking branch 'origin/main' into HEAD
richiemcilroy Nov 15, 2026
633dda9
fix(desktop-gpui): write an automation's preset before the next actio…
richiemcilroy Nov 16, 2026
dc307f0
fix(desktop-gpui): never overwrite a saved copy, keep screenshot uplo…
richiemcilroy Nov 16, 2026
a2b840f
test(desktop-gpui): cover unused save names, the preset save and Inst…
richiemcilroy Nov 16, 2026
9ce1bfd
fix(desktop-gpui): skip a folder with the wanted name on Windows too
richiemcilroy Nov 16, 2026
7af7a3a
fix(desktop-gpui): key Instant rule holds by the folder the upload qu…
richiemcilroy Nov 16, 2026
da40378
Merge remote-tracking branch 'origin/main' into HEAD
richiemcilroy Nov 16, 2026
5e7a6d5
Merge remote-tracking branch 'origin/main' into HEAD
richiemcilroy Nov 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,7 @@ jobs:
- name: Test desktop regressions
run: |
cargo test --locked -p cap-utils -p cap-cli-install --lib
cargo test --locked -p cap-automation
cargo test --locked -p cap --bin cap record::tests
cargo test --locked -p cap --bin cap recordings::tests
cargo test --locked -p cap --bin cap automation::tests::cli_save_to_location
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/instant-reliability.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ on:
paths:
- "apps/desktop-gpui/src/upload.rs"
- "apps/desktop-gpui/src/upload/**"
- "apps/desktop-gpui/src/automation.rs"
- "apps/desktop-gpui/src/automation/**"
- "crates/automation/**"
- "apps/desktop-gpui/src/recording.rs"
- "apps/desktop-gpui/src/session.rs"
- "apps/desktop-gpui/src/library.rs"
Expand Down
18 changes: 18 additions & 0 deletions apps/desktop-gpui/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions apps/desktop-gpui/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ cap-enc-ffmpeg = { path = "../../crates/enc-ffmpeg" }
cap-timestamp = { path = "../../crates/timestamp" }
cap-utils = { path = "../../crates/utils" }
cap-project = { path = "../../crates/project" }
cap-automation = { path = "../../crates/automation" }
# The cursor style picker draws the same SVG assets the renderer composites.
# gpui's `svg()` keeps only a glyph's alpha, so the two-tone cursor art has to
# be rasterised instead: `resvg` at the pin cap-rendering already builds, into
Expand Down Expand Up @@ -94,6 +95,7 @@ cap-export = { path = "../../crates/export" }
# workspace pins, and cap-recording already builds it, so this is an import,
# not an extra dependency tree.
ffmpeg = { package = "ffmpeg-next", git = "https://github.com/CapSoftware/rust-ffmpeg", rev = "49db1fede112" }
notify-rust = "4.18"
# Camera preview frames and Recents thumbnails both become gpui `RenderImage`s,
# and the frame container type must match gpui's image crate version exactly
# (`image = "0.25.1"` in the zed fork's workspace) or `Frame` would be two
Expand Down Expand Up @@ -207,6 +209,7 @@ libc = "0.2"
[target.'cfg(windows)'.dependencies]
clipboard-rs = "0.2.4"
raw-window-handle = "0.6"
same-file = "1.0.6"
tray-icon = { version = "0.21.1", default-features = false }
windows-sys = { version = "0.59", features = [
"Win32_Foundation",
Expand Down
11 changes: 8 additions & 3 deletions apps/desktop-gpui/locales/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -740,17 +740,22 @@ working_for = "Die Google-Drive-Verbindung funktioniert für {email}"

[settings.automations]
action_no_effect = "Diese Aktion hat beim gewählten Auslöser keine Wirkung."
action_unsupported = "Cap führt diese Aktion noch nicht aus, daher wird sie übersprungen."
add_action = "Aktion hinzufügen"
add_condition = "Bedingung hinzufügen"
auto_name_empty = "Automatisierung: {trigger}"
browse = "Durchsuchen"
check_compatibility = "Kompatibilität prüfen"
compatibility_checked = "Kompatibilität geprüft: Diese Automatisierung läuft noch nicht in Cap. Gespeicherte Regeln bleiben für die Cap-CLI verfügbar. Es wurden keine Aktionen ausgeführt."
compatibility_checked = "Kompatibilität geprüft: Jede Aktion dieser Automatisierung läuft in Cap. Es wurden keine Aktionen ausgeführt."
compatibility_unsupported = "Kompatibilität geprüft: Texterkennung läuft noch nicht in Cap und wird übersprungen. Die übrigen Aktionen laufen. Es wurden keine Aktionen ausgeführt."
condition_never_matches = "Diese Bedingung trifft beim gewählten Auslöser nie zu."
copy_link = "Link in die Zwischenablage kopieren"
dangerous = "In der Cap-CLI führt diese Automatisierung Befehle aus oder sendet Netzwerkanfragen mit Ihren Berechtigungen. Verwenden Sie nur Werte, denen Sie vertrauen."
dangerous = "Diese Automatisierung führt Befehle aus oder sendet Netzwerkanfragen mit Ihren Berechtigungen. Verwenden Sie nur Werte, denen Sie vertrauen."
delete = "Löschen"
description = "Regeln werden mit der Cap-CLI geteilt. Cap speichert diese Regeln, führt Automatisierungen aber noch nicht aus."
delete_guarded = "Löscht die Aufnahme erst, wenn der Schritt darüber gelingt und seine Datei geprüft ist, und lässt den Editor dafür geschlossen. Andernfalls bleibt alles erhalten."
delete_needs_copy = "Es wird nichts gelöscht. Setze direkt über diesen Schritt „Mit Profil exportieren“ in einen Ordner deiner Wahl oder „Am gewählten Ort speichern“."
notify_needs_setting = "Wird nur angezeigt, solange Systembenachrichtigungen in den allgemeinen Einstellungen aktiviert sind."
description = "Regeln werden mit der Cap-CLI geteilt. Cap führt aktivierte Regeln automatisch aus."
empty_description = "Wählen Sie unten eine Vorlage, um mit einem Klick zu starten, oder erstellen Sie Ihre eigene von Grund auf."
empty_title = "Noch keine Automatisierungen"
enabled = "Aktiviert"
Expand Down
11 changes: 8 additions & 3 deletions apps/desktop-gpui/locales/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -742,17 +742,22 @@ working_for = { text = "Google Drive connection is working for {email}", context

[settings.automations]
action_no_effect = "This action has no effect for the selected trigger."
action_unsupported = "Cap doesn't run this action yet, so it is skipped."
add_action = "Add action"
add_condition = "Add condition"
auto_name_empty = { text = "{trigger} automation", context = "{trigger} is a settings.automations.trigger.*.noun." }
browse = "Browse"
check_compatibility = "Check compatibility"
compatibility_checked = "Compatibility checked: this automation doesn't run in Cap yet. Saved rules remain available to the Cap CLI. No actions were run."
compatibility_checked = "Compatibility checked: every action in this automation runs in Cap. No actions were run."
compatibility_unsupported = "Compatibility checked: text recognition doesn't run in Cap yet and will be skipped. The other actions run. No actions were run."
condition_never_matches = "This condition never matches for the selected trigger."
copy_link = "Copy link to clipboard"
dangerous = "In the Cap CLI, this automation runs commands or sends network requests with your permissions. Only use values you trust."
dangerous = "This automation runs commands or sends network requests with your permissions. Only use values you trust."
delete = "Delete"
description = "Rules are shared with the Cap CLI. Cap saves these rules but does not run automations yet."
delete_guarded = "Deletes the recording only once the step above succeeds and its file is checked, and keeps the editor closed so it can. Otherwise everything is kept."
delete_needs_copy = "Nothing will be deleted. Put an Export with profile to a folder you choose, or a Save to location, right above this step."
notify_needs_setting = "Shows only while System notifications is on in General settings."
description = "Rules are shared with the Cap CLI. Cap runs enabled rules automatically."
empty_description = "Pick a template below to get started in one click, or build your own from scratch."
empty_title = "No automations yet"
enabled = "Enabled"
Expand Down
11 changes: 8 additions & 3 deletions apps/desktop-gpui/locales/es.toml
Original file line number Diff line number Diff line change
Expand Up @@ -740,17 +740,22 @@ working_for = "La conexión de Google Drive funciona para {email}"

[settings.automations]
action_no_effect = "Esta acción no tiene efecto con el disparador seleccionado."
action_unsupported = "Cap todavía no ejecuta esta acción, así que se omite."
add_action = "Añadir acción"
add_condition = "Añadir condición"
auto_name_empty = "Automatización: {trigger}"
browse = "Examinar"
check_compatibility = "Comprobar compatibilidad"
compatibility_checked = "Compatibilidad comprobada: esta automatización todavía no se ejecuta en Cap. Las reglas guardadas siguen disponibles para la CLI de Cap. No se ejecutó ninguna acción."
compatibility_checked = "Compatibilidad comprobada: todas las acciones de esta automatización se ejecutan en Cap. No se ejecutó ninguna acción."
compatibility_unsupported = "Compatibilidad comprobada: el reconocimiento de texto todavía no se ejecuta en Cap y se omitirá. Las demás acciones se ejecutan. No se ejecutó ninguna acción."
condition_never_matches = "Esta condición nunca se cumple con el disparador seleccionado."
copy_link = "Copiar el enlace al portapapeles"
dangerous = "En la CLI de Cap, esta automatización ejecuta comandos o envía solicitudes de red con tus permisos. Usa solo valores de confianza."
dangerous = "Esta automatización ejecuta comandos o envía solicitudes de red con tus permisos. Usa solo valores de confianza."
delete = "Eliminar"
description = "Las reglas se comparten con la CLI de Cap. Cap guarda estas reglas, pero todavía no ejecuta automatizaciones."
delete_guarded = "Elimina la grabación solo cuando el paso anterior termina bien y se comprueba su archivo, y deja el editor cerrado para poder hacerlo. Si no, se conserva todo."
delete_needs_copy = "No se eliminará nada. Coloca justo encima de este paso «Exportar con un perfil» a una carpeta que elijas o «Guardar en una ubicación»."
notify_needs_setting = "Solo se muestra mientras las notificaciones del sistema estén activadas en los ajustes generales."
description = "Las reglas se comparten con la CLI de Cap. Cap ejecuta automáticamente las reglas activadas."
empty_description = "Elige una plantilla de abajo para empezar con un clic o crea la tuya desde cero."
empty_title = "Aún no hay automatizaciones"
enabled = "Activada"
Expand Down
11 changes: 8 additions & 3 deletions apps/desktop-gpui/locales/fr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -740,17 +740,22 @@ working_for = "La connexion Google Drive fonctionne pour {email}"

[settings.automations]
action_no_effect = "Cette action n'a aucun effet avec le déclencheur sélectionné."
action_unsupported = "Cap n'exécute pas encore cette action, elle est donc ignorée."
add_action = "Ajouter une action"
add_condition = "Ajouter une condition"
auto_name_empty = "Automatisation {trigger}"
browse = "Parcourir"
check_compatibility = "Vérifier la compatibilité"
compatibility_checked = "Compatibilité vérifiée : cette automatisation ne s'exécute pas encore dans Cap. Les règles enregistrées restent disponibles pour la CLI Cap. Aucune action n'a été exécutée."
compatibility_checked = "Compatibilité vérifiée : toutes les actions de cette automatisation s'exécutent dans Cap. Aucune action n'a été exécutée."
compatibility_unsupported = "Compatibilité vérifiée : la reconnaissance de texte ne s'exécute pas encore dans Cap et sera ignorée. Les autres actions s'exécutent. Aucune action n'a été exécutée."
condition_never_matches = "Cette condition ne correspond jamais au déclencheur sélectionné."
copy_link = "Copier le lien dans le presse-papiers"
dangerous = "Dans la CLI Cap, cette automatisation exécute des commandes ou envoie des requêtes réseau avec vos autorisations. N'utilisez que des valeurs de confiance."
dangerous = "Cette automatisation exécute des commandes ou envoie des requêtes réseau avec vos autorisations. N'utilisez que des valeurs de confiance."
delete = "Supprimer"
description = "Les règles sont partagées avec la CLI Cap. Cap enregistre ces règles mais n'exécute pas encore les automatisations."
delete_guarded = "Supprime l'enregistrement seulement si l'étape au-dessus réussit et que son fichier est vérifié, et garde l'éditeur fermé pour cela. Sinon, tout est conservé."
delete_needs_copy = "Rien ne sera supprimé. Placez juste au-dessus de cette étape « Exporter avec un profil » vers un dossier de votre choix ou « Enregistrer à un emplacement »."
notify_needs_setting = "S'affiche seulement si les notifications système sont activées dans les réglages généraux."
description = "Les règles sont partagées avec la CLI Cap. Cap exécute automatiquement les règles activées."
empty_description = "Choisissez un modèle ci-dessous pour démarrer en un clic, ou créez la vôtre de zéro."
empty_title = "Aucune automatisation pour l'instant"
enabled = "Activée"
Expand Down
11 changes: 8 additions & 3 deletions apps/desktop-gpui/locales/hi.toml
Original file line number Diff line number Diff line change
Expand Up @@ -740,17 +740,22 @@ working_for = "{email} के लिए Google Drive कनेक्शन क

[settings.automations]
action_no_effect = "चुने गए ट्रिगर के लिए इस कार्रवाई का कोई असर नहीं होता।"
action_unsupported = "Cap अभी यह कार्रवाई नहीं चलाता, इसलिए इसे छोड़ दिया जाता है।"
add_action = "कार्रवाई जोड़ें"
add_condition = "शर्त जोड़ें"
auto_name_empty = "{trigger} ऑटोमेशन"
browse = "ब्राउज़ करें"
check_compatibility = "कम्पैटिबिलिटी जाँचें"
compatibility_checked = "कम्पैटिबिलिटी जाँची गई: यह ऑटोमेशन अभी Cap में नहीं चलता। सेव किए गए नियम Cap CLI के लिए उपलब्ध रहते हैं। कोई कार्रवाई नहीं चलाई गई।"
compatibility_checked = "कम्पैटिबिलिटी जाँची गई: इस ऑटोमेशन की हर कार्रवाई Cap में चलती है। कोई कार्रवाई नहीं चलाई गई।"
compatibility_unsupported = "कम्पैटिबिलिटी जाँची गई: टेक्स्ट पहचान अभी Cap में नहीं चलती और छोड़ दी जाएगी। बाकी कार्रवाइयाँ चलती हैं। कोई कार्रवाई नहीं चलाई गई।"
condition_never_matches = "चुने गए ट्रिगर के लिए यह शर्त कभी पूरी नहीं होती।"
copy_link = "लिंक क्लिपबोर्ड पर कॉपी करें"
dangerous = "Cap CLI में यह ऑटोमेशन आपकी अनुमतियों से कमांड चलाता है या नेटवर्क अनुरोध भेजता है। सिर्फ़ भरोसेमंद वैल्यू इस्तेमाल करें।"
dangerous = "यह ऑटोमेशन आपकी अनुमतियों से कमांड चलाता है या नेटवर्क अनुरोध भेजता है। सिर्फ़ भरोसेमंद वैल्यू इस्तेमाल करें।"
delete = "हटाएँ"
description = "नियम Cap CLI के साथ साझा होते हैं। Cap इन नियमों को सेव करता है, लेकिन अभी ऑटोमेशन नहीं चलाता।"
delete_guarded = "ऊपर वाला चरण सफल होने और उसकी फ़ाइल जाँचे जाने के बाद ही रिकॉर्डिंग हटाई जाती है, और इसके लिए एडिटर बंद रहता है। वरना सब कुछ रखा जाता है।"
delete_needs_copy = "कुछ भी नहीं हटाया जाएगा। इस चरण के ठीक ऊपर अपने चुने फ़ोल्डर में \"प्रोफ़ाइल के साथ एक्सपोर्ट करें\" या \"किसी जगह पर सेव करें\" रखें।"
notify_needs_setting = "यह तभी दिखता है जब सामान्य सेटिंग्स में सिस्टम नोटिफ़िकेशन चालू हों।"
description = "नियम Cap CLI के साथ साझा होते हैं। Cap चालू नियमों को अपने-आप चलाता है।"
empty_description = "एक क्लिक में शुरू करने के लिए नीचे कोई टेम्पलेट चुनें, या शुरुआत से अपना बनाएँ।"
empty_title = "अभी कोई ऑटोमेशन नहीं"
enabled = "चालू"
Expand Down
11 changes: 8 additions & 3 deletions apps/desktop-gpui/locales/ja.toml
Original file line number Diff line number Diff line change
Expand Up @@ -740,17 +740,22 @@ working_for = "{email}のGoogle Drive接続は正常です"

[settings.automations]
action_no_effect = "このアクションは選択したトリガーでは効果がありません。"
action_unsupported = "このアクションはまだ Cap で実行されないため、スキップされます。"
add_action = "アクションを追加"
add_condition = "条件を追加"
auto_name_empty = "{trigger}のオートメーション"
browse = "参照"
check_compatibility = "互換性を確認"
compatibility_checked = "互換性を確認しました:このオートメーションはまだCapでは実行されません。保存したルールはCap CLIで引き続き使えます。アクションは実行されていません。"
compatibility_checked = "互換性を確認しました:このオートメーションのすべてのアクションはCapで実行されます。アクションは実行されていません。"
compatibility_unsupported = "互換性を確認しました:テキスト認識はまだCapでは実行されないため、スキップされます。そのほかのアクションは実行されます。アクションは実行されていません。"
condition_never_matches = "この条件は選択したトリガーでは一致しません。"
copy_link = "リンクをクリップボードにコピー"
dangerous = "Cap CLIでは、このオートメーションはあなたの権限でコマンドを実行したりネットワークリクエストを送信したりします。信頼できる値だけを使ってください。"
dangerous = "このオートメーションはあなたの権限でコマンドを実行したりネットワークリクエストを送信したりします。信頼できる値だけを使ってください。"
delete = "削除"
description = "ルールはCap CLIと共有されます。Capはこれらのルールを保存しますが、オートメーションはまだ実行しません。"
delete_guarded = "上のステップが成功し、そのファイルを確認できた場合にのみ録画を削除します。そのためエディターは開きません。それ以外はすべて残します。"
delete_needs_copy = "何も削除されません。このステップのすぐ上に、選んだフォルダーへの「プロファイルで書き出し」か「指定の場所に保存」を置いてください。"
notify_needs_setting = "一般設定でシステム通知がオンのときだけ表示されます。"
description = "ルールはCap CLIと共有されます。有効なルールはCapが自動で実行します。"
empty_description = "下のテンプレートを選べばワンクリックで始められます。一から自分で作ることもできます。"
empty_title = "オートメーションはまだありません"
enabled = "有効"
Expand Down
Loading
Loading