Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
dc9608c
test: follow the tools-first rule and the removed conversation row ⋯
SiddDevZ Dec 4, 2026
daec80a
tests: routine-cron checks the calendar rule on the trigger tool, whe…
SiddDevZ Dec 4, 2026
e6317e8
routines: a run from an open room keeps reporting there after a resta…
SiddDevZ Dec 4, 2026
c9647aa
prompt: the work habit names earlier chats without session_search, so…
SiddDevZ Dec 4, 2026
518142d
recall: session_search's empty answer stops saying every word must ap…
SiddDevZ Dec 4, 2026
3197b68
fix(team): a teammate's hand-off on a Team Cloud keeps its own privat…
SiddDevZ Dec 4, 2026
755defd
failover: the turn a provider failure carried to a backup runs there;…
SiddDevZ Dec 4, 2026
b38beaa
tests: a new conversation takes the star (e52f516bf2), so capacity ca…
SiddDevZ Dec 4, 2026
3b25627
tests: a bot opens threads on itself from a room, so the outside-work…
SiddDevZ Dec 4, 2026
61bf3cf
Merge remote-tracking branch 'origin/fix/0241-questions' into integ-0241
SiddDevZ Dec 4, 2026
fceb0b5
Merge remote-tracking branch 'origin/fix/0241-capacity' into integ-0241
SiddDevZ Dec 4, 2026
6bc6dd5
Merge remote-tracking branch 'origin/fix/0241-confined' into integ-0241
SiddDevZ Dec 4, 2026
977e64f
cloud-service: home-start script test runs bash stubs, skip it on Win…
SiddDevZ Dec 4, 2026
296f19e
routines: a bot's second one-time routine waiting from the same chat,…
SiddDevZ Dec 4, 2026
9f17260
routines: a one-time routine is deleted once its time passed and noth…
SiddDevZ Dec 4, 2026
64435a3
tests: a one-time routine that ran is gone from the list with its run…
SiddDevZ Dec 4, 2026
5445bcf
routines: a run works in and reports to the open chat its routine was…
SiddDevZ Dec 4, 2026
47fd6cb
bot panel routines: every row has the switch, one-time and follow-ups…
SiddDevZ Dec 4, 2026
4b1d585
bot panel conversations: the search is a quiet field on the card, a s…
SiddDevZ Dec 4, 2026
9444446
bot panel routines: a one-time routine whose time passed leaves the l…
SiddDevZ Dec 4, 2026
40cbe31
routines: keep a deleted routine's writer for Undo; the lineage case …
SiddDevZ Dec 4, 2026
eb2bacd
routines: a different one-time job from the same chat goes through; o…
SiddDevZ Dec 4, 2026
950d64b
Merge fix/routines-own-chat into dev
SiddDevZ Dec 4, 2026
566b971
Merge fix/panel-routines-search into dev
SiddDevZ Dec 4, 2026
8119846
routines: the panel leaves out every passed one-time routine, while t…
SiddDevZ Dec 4, 2026
cfc438c
routines: the one-time guard takes a routine whose schedule time may …
SiddDevZ Dec 4, 2026
9cb230f
failover: a provider failure and the return to the chosen model say n…
SiddDevZ Dec 4, 2026
67df147
chat tools: a person's MCP server that could not connect for a turn i…
SiddDevZ Dec 4, 2026
2c7c83e
finish guard: a reply recapping earlier work to a question is not sen…
SiddDevZ Dec 4, 2026
2520064
Merge fix/quiet-failover into dev
SiddDevZ Dec 4, 2026
cdc83ca
files: rows drop the ⋯; a right click, a hold or the menu key opens t…
SiddDevZ Dec 4, 2026
4f1883a
Merge fix/files-row-menu into dev
SiddDevZ Dec 4, 2026
27c64a1
waits: a wait's answer to the bot says its follow-up comes back in th…
SiddDevZ Dec 4, 2026
33e85a4
Merge fix/wait-does-the-job into dev
SiddDevZ Dec 4, 2026
5b01a3a
bot panel: the Model card drops the Account row
SiddDevZ Dec 4, 2026
473bfe3
routines tick fits the size ratchet; mcp mount test expects no chat n…
SiddDevZ Dec 4, 2026
9daf519
composer: pasted text chip shows no giant hover tooltip
SiddDevZ Dec 4, 2026
970918b
ios 1.6: what's new
SiddDevZ Dec 4, 2026
a1f3ef8
mac: a bot's notification shows as a system banner again, and dusk bo…
SiddDevZ Dec 4, 2026
b420080
settings: bot sheet cards take the sheet's card shape on desktop
SiddDevZ Dec 4, 2026
2581331
Merge remote-tracking branch 'origin/fix/skills-card-tone' into fix/n…
SiddDevZ Dec 4, 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
28 changes: 15 additions & 13 deletions apps/cloud-service/src/home-start.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { execFileSync } from "node:child_process";
import { chmodSync, existsSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from "node:fs";
import { tmpdir } from "node:os";
import { join } from "node:path";
import { afterEach, expect, it } from "vitest";
import { afterEach, describe, expect, it } from "vitest";
import { CLOUD_HOME } from "../../../electron/legacy-names.mjs";
import { homeControlScript } from "./home.ts";

Expand Down Expand Up @@ -38,18 +38,20 @@ ${answersAfterRestart ? `[ -f ${dir}/restarted ]` : `[ "$n" -ge ${answersOn} ]`}
return { out: out.trim(), code, restarted: existsSync(join(dir, "restarted")), probes: Number(readFileSync(join(dir, "probes"), "utf8")) };
}

it("waits for a resumed home that is slow to answer instead of restarting it", () => {
const run = runStart({ active: true, answersOn: 3 });
expect(run).toMatchObject({ out: "started", code: 0, restarted: false, probes: 3 });
});
describe.skipIf(process.platform === "win32")("omb-home start", () => {
it("waits for a resumed home that is slow to answer instead of restarting it", () => {
const run = runStart({ active: true, answersOn: 3 });
expect(run).toMatchObject({ out: "started", code: 0, restarted: false, probes: 3 });
});

it("starts a home that is not running", () => {
const run = runStart({ active: false, answersAfterRestart: true });
expect(run).toMatchObject({ out: "started", code: 0, restarted: true });
});
it("starts a home that is not running", () => {
const run = runStart({ active: false, answersAfterRestart: true });
expect(run).toMatchObject({ out: "started", code: 0, restarted: true });
});

it("restarts a running home that never answers within its patience", () => {
const run = runStart({ active: true, answersAfterRestart: true, patience: 2 });
expect(run).toMatchObject({ out: "started", code: 0, restarted: true });
expect(run.probes).toBeGreaterThan(1);
it("restarts a running home that never answers within its patience", () => {
const run = runStart({ active: true, answersAfterRestart: true, patience: 2 });
expect(run).toMatchObject({ out: "started", code: 0, restarted: true });
expect(run.probes).toBeGreaterThan(1);
});
});
2 changes: 1 addition & 1 deletion apps/mobile/store/app-store.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"promotionalText": "Your AI bots keep working on your computer while you are out. Text them, approve what matters, and get a ping when the work is done.",
"supportUrl": "https://dusk.bot/support",
"marketingUrl": "https://dusk.bot",
"whatsNew": "A more native iPhone feel: native controls, sheets and settings. Ask Siri or Shortcuts to message or call a bot. Calls work with bots on your dusk cloud or your own server too. Linking your computer finishes even when its address is down, you can stay signed in to more than one account, and fields in sheets stay above the keyboard. The app opens about twice as fast, you can reorder your chats, and text no longer grows each time you come back. Lots of small fixes."
"whatsNew": "Share to a bot from any app with the share sheet. Notifications show what the bot said and its picture, and tapping one opens that chat. Bots can read their replies aloud in their own voice. The app starts faster, the keyboard no longer leaves a gap, pairing by QR code is more reliable, and photos that cannot be attached now say why. Lots of small fixes."
},
"reviewNotes": "WHAT THE APP IS\ndusk bot for iPhone is free, with no in-app purchases. It is the remote control for a person's own AI bots. The bots run on the person's own computer or server, or on a dusk cloud computer we host for them, and do their work there. The phone sends messages to those bots, shows their replies and lets the person approve actions. Nothing runs on the phone except the interface, which is bundled in the app (no web content is loaded from a server).\n\nPairing your own computer needs no account: the first screen offers \"Scan a QR code\" and \"Enter a code\". Only a dusk cloud needs sign-in, through the \"Have a dusk cloud? Log in\" link. The demo account below has a dusk cloud with a ready demo bot called Sunny, so you can use everything without a computer of your own.\n\nDEMO ACCOUNT\nEmail: [REVIEW EMAIL]\nSign-in code: [REVIEW CODE, 8 digits, fixed for this account; no email is sent]\n\nSTEPS\n1. Launch the app and tap \"Have a dusk cloud? Log in\" at the bottom.\n2. Enter the review email, tap \"Send code\", enter the code above and tap \"Sign in\". The app opens \"Demo Cloud\" (if it shows \"Pick a cloud\", tap \"Demo Cloud\").\n3. The home screen shows \"dusk bot\" (pinned) and \"Sunny\". Tap Sunny to open the chat.\n4. Type a message, for example \"Give me three ideas for a quick dinner\", and send it.\n5. Before the first message goes out, the app shows \"Before you chat\": who receives what you write (the computer running the bots, the AI they use, connected apps, our relay). Tap \"Allow\". \"Not now\" keeps the app usable for reading and settings.\n6. Sunny replies within a few seconds. If the cloud computer was asleep after a long idle time, the first reply can take up to a minute while it wakes.\n7. Long-press a reply and tap \"Report this reply\" to report it.\n8. Tap the profile button (top left) for Settings: appearance, notifications, privacy policy, terms, help and \"Contact us\".\n9. Account deletion: open Settings, scroll to the bottom, tap \"Delete account\", then \"Delete my account\". It deletes the account right away and revokes Sign in with Apple. Please try this last: it removes the demo account and its cloud from the app.\n\nNATIVE FEATURES\nCamera QR pairing (our own AVFoundation scanner), Keychain storage of the pairing, Sign in with Apple in the system sheet, dictation (speech recognition runs on the iPhone where supported), push notifications for replies and approvals, haptics, the system share sheet, an offline outbox that sends when the connection returns, and a local network connection to the person's own computer on the same Wi-Fi.\n\nNOTES\n- Purchases (3.1.1): the app is free, sells nothing, and shows no prices, plans, upgrade buttons or links to buy. dusk cloud is not on sale today (our website has a waitlist). The demo account's cloud was set up by us at no cost.\n- Sign-in (4.8): where Google or X sign-in is offered, Sign in with Apple is offered first. Email with a one-time code always works.\n- Permissions: camera only for the pairing QR code and photos you choose to attach; microphone and speech recognition only while you dictate a message or talk with a bot on a call; local network only to reach your own computer.\n- AI (5.1.2): replies come from the AI provider connected where the bots run (for the demo cloud, a DeepSeek model through OpenRouter, paid by us). The app asks before anything is sent and names who receives it.\n- Chats are private to the person; there is no public or person-to-person content.",
"ageRating": {
Expand Down
8 changes: 4 additions & 4 deletions electron/app-permissions.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,10 +73,10 @@ export function remoteClipboardWriteAllowed(permission, requestingUrlOrOrigin, a
* homeOrigin?: () => string | null }} context
* Every getter is read per request, so a sign-out or server switch withdraws access at once. `homeOrigin`: My Cloud
* once the person's bots moved there (home-window.mjs), whose page alone may show notifications besides this
* computer's and the active remote server's. `systemNotifications`: false on a Mac, where no page may post one.
* computer's and the active remote server's.
*/
export function appPermissionHandlers({ rendererOrigin, mainContents, cloudHomeOrigin, cloudHomeRestoring = () => null, activeRemoteOrigin = () => null,
activeRemoteMicrophone = () => false, askRemoteMicrophone = () => null, homeOrigin = () => null, systemNotifications = true }) {
activeRemoteMicrophone = () => false, askRemoteMicrophone = () => null, homeOrigin = () => null }) {
// Notifications for the main window's main frame on `origin`: My Cloud as home, or the remote server the person
// switched to (Settings → Notifications there has no browser site settings to fall back on).
// Fullscreen too, so a chat video's own fullscreen button works there (it still needs the person's click).
Expand All @@ -93,13 +93,13 @@ export function appPermissionHandlers({ rendererOrigin, mainContents, cloudHomeO
Boolean(contents) && contents === mainContents() &&
(remoteClipboardWriteAllowed(permission, requesting, activeRemoteOrigin(), details) ||
remoteClipboardWriteAllowed(permission, requesting, cloudHomeOrigin(), details));
const allowed = (contents, permission, requesting, details) => (permission !== "notifications" || systemNotifications) && (
const allowed = (contents, permission, requesting, details) =>
appPermissionAllowed(permission, requesting, rendererOrigin(), details) ||
(asksAsCloud(contents, permission, requesting, details) && mainFrameMicrophoneAllowed(permission, requesting, cloudHomeOrigin(), details)) ||
(asksAsRemote(contents, permission, requesting, details) && activeRemoteMicrophone() === true) ||
clipboardWrite(contents, permission, requesting, details) ||
notifiesAs(homeOrigin(), contents, permission, requesting, details) ||
notifiesAs(activeRemoteOrigin(), contents, permission, requesting, details));
notifiesAs(activeRemoteOrigin(), contents, permission, requesting, details);
return {
// Only a request may wait (Electron answers through the callback); the rule runs again after any wait.
request: (contents, permission, callback, details) => {
Expand Down
4 changes: 2 additions & 2 deletions electron/mac-permissions.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// The macOS permissions a bot needs to use this Mac (Accessibility, Screen Recording), read and asked for from the first
// run. Reading never prompts; only `request` does, one permission at a time. Notifications are not among them: the app
// never posts one on a Mac.
// run. Reading never prompts; only `request` does, one permission at a time. Notifications are not among them: macOS asks
// for those itself the first time a bot's notification is shown.

export const MAC_PERMISSIONS = Object.freeze(["accessibility", "screen"]);

Expand Down
6 changes: 2 additions & 4 deletions electron/main.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { carryLegacySafeStorageKey, DATA_DIR_NAMES, dataDirFor, devAppName, fromLegacyLink, LEGACY } from "./legacy-names.mjs";
import { syncHookOrigin } from "./hook-origin.mjs";
import { createCloudGone } from "./cloud-gone.mjs";
import { app, autoUpdater, BrowserWindow, Tray, WebContentsView, clipboard, desktopCapturer, dialog, globalShortcut, ipcMain, Menu, nativeImage, net, Notification as ElectronNotification, powerMonitor, powerSaveBlocker, safeStorage, screen, session, shell, systemPreferences, utilityProcess, nativeTheme } from "electron";
import { app, autoUpdater, BrowserWindow, Tray, WebContentsView, clipboard, desktopCapturer, dialog, globalShortcut, ipcMain, Menu, nativeImage, net, Notification, powerMonitor, powerSaveBlocker, safeStorage, screen, session, shell, systemPreferences, utilityProcess, nativeTheme } from "electron";
import { createRequire } from "node:module";
import { randomBytes, randomUUID } from "node:crypto";
import fs from "node:fs";
Expand Down Expand Up @@ -37,8 +37,7 @@ import { createBrowsersFlush, installSessionEndFlush } from "./browser-flush.mjs
import { serverChildLaunch } from "./server-child-launch.mjs"; import { answerHarnessProxy } from "./harness-proxy.mjs";
import { savedVpsStartupTarget, startPackagedAlongsideVps, waitForLocalStartup } from "./saved-vps-startup.mjs";
import { packageUrlFromCommandLine, packageUrlFromDeepLink } from "./package-link.mjs";
import { chatLinkFrom, chatLinkFromCommandLine } from "./chat-link.mjs"; import { createSlackOAuthLinks } from "./slack-link.mjs"; import { installDesktopNotifications } from "./desktop-notifications.mjs"; import { systemNotification, systemNotificationsAllowed } from "./system-notifications.mjs";
const Notification = systemNotification(ElectronNotification);
import { chatLinkFrom, chatLinkFromCommandLine } from "./chat-link.mjs"; import { createSlackOAuthLinks } from "./slack-link.mjs"; import { installDesktopNotifications } from "./desktop-notifications.mjs";
import { createOrganizationEntry, isOrganizationDeepLink, takeOrganizationDeepLink, organizationRestartIntent, withOrganizationRestartIntent, withoutOrganizationRestartIntent } from "./organization-entry.mjs";
import { FRAME_BY_DEFAULT, widenedBounds, windowBackground, windowChromeOptions } from "./window-chrome.mjs";
import { createAllWindowsClosedQuit } from "./window-all-closed.mjs";
Expand Down Expand Up @@ -3515,7 +3514,6 @@ app.whenReady().then(async () => {
activeRemoteMicrophone: () => activeEnvironment(environmentsState)?.microphone === true,
askRemoteMicrophone,
homeOrigin: () => homeWindow.placeOrigin(),
systemNotifications: systemNotificationsAllowed(),
}); startDesktopErrorReporting({ app, prefs: desktopPrefs }); if (app.isPackaged) appImageMenuEntry.sync(); if (!app.isPackaged) startDemoUpdates(); else startAppUpdates(createUpdateNotice({ request: localServerRequest, open: url => void shell.openExternal(url), memory: jsonFile(path.join(app.getPath("userData"), "update-notice.json")), held: noticePolicy().held, log: slog, notify: ({ title, body, click }) => { if (!Notification.isSupported()) return; const note = new Notification({ title, body }); note.on("click", click); note.show(); } }));
session.defaultSession.setPermissionRequestHandler(appPermissions.request);
session.defaultSession.setPermissionCheckHandler(appPermissions.check);
Expand Down
21 changes: 0 additions & 21 deletions electron/system-notifications.mjs

This file was deleted.

61 changes: 0 additions & 61 deletions electron/system-notifications.node-test.mjs

This file was deleted.

7 changes: 4 additions & 3 deletions server/automatic-recovery.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ it.each([
}, 90_000);

// Automatic recovery never replays a prompt the engine accepted. A provider timeout that wrote, ran and asked nothing
// is the provider failover's (quota-switch.ts) instead: the message carries on the bot's own backups, said in one line.
// is the provider failover's (quota-switch.ts) instead: the message carries on the bot's own backups with no line.
it("leaves a prompt the engine accepted to the provider failover, which carries it on the bot's own backups", async () => {
await withRecoveryFixture({ method: "session/prompt" }, async ({ api, control, calls, backupPrompts, evidence }) => {
const { bot } = await control("new-bot", "--name", "Accepted prompt");
Expand All @@ -339,8 +339,9 @@ it("leaves a prompt the engine accepted to the provider failover, which carries
const { messages } = await control("messages", "--bot", bot.id, "--task", threadId, "--limit", "30");
evidence.push({ messages });
expect(messages.some((message: any) => message.tool?.name?.startsWith("recovery:"))).toBe(false);
expect(messages.filter((message: any) => /^notice: continuing on .+ did not answer$/.test(message.tool?.name ?? ""))).toHaveLength(2);
expect(messages.findLast((message: any) => message.role === "bot" && message.kind === "text")?.text).toBe("hello from fake claude");
expect(messages.filter((message: any) => message.tool?.name?.startsWith("notice:"))).toEqual([]);
const asked = messages.findIndex((message: any) => message.role === "user" && message.text === "ACCEPTED_PROMPT_4K");
expect(messages.slice(asked + 1).filter((message: any) => message.role === "bot" && message.kind === "text").map((message: any) => message.text)).toEqual(["hello from fake claude"]);
});
}, 90_000);

Expand Down
Loading
Loading