Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Merge #1003: Windows and Linux: Flow keeps your edits and history when a save fails (lazarevtill)

Claudeb6a85f29719b
diff --cc CLAUDE.md
index 4f802850,825a3bbf..e0d51a02
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@@ -18,8 -18,8 +18,6 @@@ cd NotchBuddy && xcodegen && xcodebuil
To run it day to day on the Mac (signed, iPhone link, permissions kept across builds): `./scripts/dev-install.sh` — it installs the only Coucou in /Applications and removes the copies earlier builds left.
Windows and Linux: `cd windows && npm install && npm run tauri dev`
- The Claude API model picker discovers account models independently of subscription routing. Opening Settings, changing the API key and Refresh reload the list without changing the saved model. Keep saved and custom choices; commit a model choice only after settings save succeeds.
-Flow dictionary, snippet, style and history mutations report native write failures. Commit in-memory edits only after disk replacement succeeds; retain drafts and destructive-action confirmation on failure so the user can retry. History and statistics erase is sequential and reports partial completion.
--
## Rules
- Swift 6, SwiftUI + AppKit. No third-party dependencies unless truly unavoidable. The character is drawn in code (`Canvas` + `TimelineView`), no Rive/Lottie/images.
- Secrets live in the Keychain, never on disk or in git.
diff --cc windows/src/hub/pages/dictation.ts
index 23f74f3d,f94444b9..158e5645
--- a/windows/src/hub/pages/dictation.ts
+++ b/windows/src/hub/pages/dictation.ts
@@@ -92,9 -95,9 +95,10 @@@ export async function dictationPage(pag
const left = h("div", { style: "display:flex;flex-direction:column;gap:10px;min-width:0" },
h("div", { class: "hub-history-head" }, label(t("History")), search),
- list,
);
+ left.dataset.anchor = "flow.history";
+ const saveHistory = pageSave(left);
+ left.append(list);
const right = h("div", { style: "display:flex;flex-direction:column;gap:14px" }, numbers(stats), promo(ctx));
page.append(h("div", { class: "hub-columns" }, left, right));
draw();
diff --cc windows/src/hub/pages/flowsettings.ts
index 9566a834,6f45ac36..b9db0bbe
--- a/windows/src/hub/pages/flowsettings.ts
+++ b/windows/src/hub/pages/flowsettings.ts
@@@ -7,7 -7,8 +7,8 @@@ import { t } from "../../i18n/i18n"
import { onEvent } from "../../core/bridge";
import { FlowBridge, type Edge, type FlowKey, type ModelsStatus } from "../../core/flow";
import type { HubContext } from "../shell";
+ import { pageSave } from "../save";
-import { button, card, divider, keyKeycap, keycap, label, number, row, segmented, select, toggle } from "../ui";
+import { anchor, button, card, divider, keyKeycap, keycap, label, number, row, segmented, select, toggle } from "../ui";
/** Download / progress / installed, for the voice model. Redraws itself. */
export function modelsControl(ctx: HubContext, onReady?: () => void): HTMLElement {
@@@ -145,10 -155,5 +155,5 @@@ export async function flowSettingsPage(
);
};
erase();
- page.append(anchor("flow.privacy", card(
- row(t("Keep the history"), null, select(keep, String(prefs.keepDays), (v) => void ctx.setPrefs((p) => (p.keepDays = Number(v))))),
- divider(),
- confirmRow,
- h("div", { class: "hub-note", text: t("The history, the statistics and your notes stay on this computer, in Coucou's folder. Dictations are never saved as audio; a call's audio is deleted as soon as its transcript is written.") }),
- )));
- page.append(privacy);
++ page.append(anchor("flow.privacy", privacy));
}