Skip to content

Your phone, on your command. Gotcha is world's first fully on-device AI copilot for Android that turns natural language into real device actions — safely.

Cover promoting an example from the form

Rishabh Bajpai8c66f4040c52
diff --git a/app/src/test/java/com/gotcha/scheduled/ScheduledTaskFormTest.kt b/app/src/test/java/com/gotcha/scheduled/ScheduledTaskFormTest.kt
index 88194b5..58d9a45 100644
--- a/app/src/test/java/com/gotcha/scheduled/ScheduledTaskFormTest.kt
+++ b/app/src/test/java/com/gotcha/scheduled/ScheduledTaskFormTest.kt
@@ -90,6 +90,16 @@ class ScheduledTaskFormTest {
assertEquals(saved, store.get("t"))
}
+ @Test
+ fun `saving an example from the form makes it the user's own task`() {
+ store.put(opened.copy(presetId = ScheduledPresets.EVENING_WRAP_UP))
+
+ val saved = form(name = "My evening").saveOver(store, "t", at("2026-10-19T08:05"), zone)!!
+
+ assertEquals("My evening", saved.name)
+ assertNull(saved.presetId)
+ }
+
@Test
fun `an edit that leaves the schedule alone keeps a pending retry or busy wait`() {
store.put(opened.copy(retryAt = at("2026-10-19T08:10"), retriesUsed = 1, busySince = at("2026-10-19T08:00")))