From 9b88d7bf6293832679d9af3b9f98d437cc491646 Mon Sep 17 00:00:00 2001 From: wrestle-R Date: Wed, 25 Nov 2026 10:20:26 +0530 Subject: [PATCH 1/2] made orbit do less work between changes --- tauri/src-tauri/src/hud.rs | 12 ++++++++---- tauri/src/Hud.test.tsx | 31 ++++++++++++++++++++++++++++--- tauri/src/Hud.tsx | 12 ++++++++++-- 3 files changed, 46 insertions(+), 9 deletions(-) diff --git a/tauri/src-tauri/src/hud.rs b/tauri/src-tauri/src/hud.rs index f6936db..26fd61f 100644 --- a/tauri/src-tauri/src/hud.rs +++ b/tauri/src-tauri/src/hud.rs @@ -61,6 +61,13 @@ pub fn hud_snapshot(app: tauri::AppHandle, state: State<'_, HudState>) -> Result .filter(|snapshot| snapshot.client == "desktop"), ); snapshots.sort_by_key(|snapshot| (snapshot.start_time, snapshot.pid)); + let mut snapshots_by_profile = BTreeMap::<_, Vec<_>>::new(); + for snapshot in &snapshots { + snapshots_by_profile + .entry(snapshot.profile_id.as_str()) + .or_default() + .push(snapshot); + } let acknowledgments = state .acknowledgments .lock() @@ -94,10 +101,7 @@ pub fn hud_snapshot(app: tauri::AppHandle, state: State<'_, HudState>) -> Result }, ); } - for snapshot in snapshots - .iter() - .filter(|snapshot| snapshot.profile_id == id) - { + for snapshot in snapshots_by_profile.get(id.as_str()).into_iter().flatten() { if snapshot.limits.is_some() { limits = snapshot.limits.clone(); } diff --git a/tauri/src/Hud.test.tsx b/tauri/src/Hud.test.tsx index 2da3121..534b27e 100644 --- a/tauri/src/Hud.test.tsx +++ b/tauri/src/Hud.test.tsx @@ -1,11 +1,16 @@ -import { cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react" +import { act, cleanup, fireEvent, render, screen, waitFor } from "@testing-library/react" import { afterEach, beforeEach, expect, it, vi } from "vitest" import Hud from "./Hud" import { defaultHudSettings, sessionSlots, type HudSession, type HudView } from "./lib/hud" -const api = vi.hoisted(() => ({ call: vi.fn() })) +const api = vi.hoisted(() => ({ call: vi.fn(), avatarRendered: vi.fn() })) vi.mock("./lib/hud", async importOriginal => ({ ...await importOriginal(), nativeHud: false, hudCall: api.call })) -vi.mock("./components/account-avatar", () => ({ AccountAvatar: () => })) +vi.mock("./components/account-avatar", () => ({ + AccountAvatar: () => { + api.avatarRendered() + return + }, +})) const session = (id: string, needsAttention = false): HudSession => ({ id, title: `Session ${id}`, cwd: "/tmp", status: "idle", attention: needsAttention ? "mayNeedYou" : null, needsAttention, eventKey: `account/${id}/1`, epoch: 1, tokens: null }) let view: HudView beforeEach(() => { @@ -14,6 +19,26 @@ beforeEach(() => { api.call.mockReset().mockImplementation((method: string) => Promise.resolve(method === "hud_snapshot" ? view : undefined)) }) afterEach(cleanup) +it("keeps unchanged refreshes idle and still displays new attention", async () => { + vi.useFakeTimers() + try { + render() + await act(async () => {}) + expect(screen.getByRole("button", { name: "Fixture: Open" })).toBeVisible() + api.avatarRendered.mockClear() + + view = structuredClone(view) + await act(() => vi.advanceTimersByTimeAsync(1500)) + expect(api.call).toHaveBeenCalledTimes(3) + expect(api.avatarRendered).not.toHaveBeenCalled() + + view.accounts[0].sessions = [session("one", true)] + await act(() => vi.advanceTimersByTimeAsync(1500)) + expect(screen.getByRole("button", { name: "Open chat needing attention" })).toBeVisible() + } finally { + vi.useRealTimers() + } +}) it("hovers for quota and clicks to open the exact saved account/chat", async () => { render() const avatar = await screen.findByRole("button", { name: "Fixture: Open" }) diff --git a/tauri/src/Hud.tsx b/tauri/src/Hud.tsx index 4fbbdbf..97f4d1c 100644 --- a/tauri/src/Hud.tsx +++ b/tauri/src/Hud.tsx @@ -32,20 +32,25 @@ export default function Hud() { const popupTimer = useRef | undefined>(undefined) const hoverTimer = useRef | undefined>(undefined) const shell = useRef(null) + const snapshot = useRef("") + const inputRegions = useRef("") const dragging = useRef(false) const pointerDown = useRef(false) const moving = useRef(false) const endDrag = () => { pointerDown.current = false; if (dragging.current) { dragging.current = false; void hudCall("hud_drag", { phase: "end" }).catch(error => setError(String(error))) } } useLayoutEffect(() => { if (!nativeHud || !shell.current) return - let previous = "" const update = () => { const rectangles = [...(shell.current?.querySelectorAll(".hud-strip,.hud-panel,.hud-popup,.hud-error") ?? [])].map(element => { const { x, y, width, height } = element.getBoundingClientRect() return { x, y, width, height } }) const encoded = JSON.stringify(rectangles) - if (previous !== encoded) { previous = encoded; void hudCall("hud_set_input_regions", { rectangles }) } + if (inputRegions.current === encoded) return + inputRegions.current = encoded + void hudCall("hud_set_input_regions", { rectangles }).catch(() => { + if (inputRegions.current === encoded) inputRegions.current = "" + }) } const observer = new ResizeObserver(update) observer.observe(shell.current) @@ -66,6 +71,9 @@ export default function Hud() { try { const next = await hudCall("hud_snapshot") if (!active) return + const encoded = JSON.stringify(next) + if (snapshot.current === encoded) return + snapshot.current = encoded setView(next) const attention = next.accounts.flatMap(account => orderedSessions(account.sessions).filter(s => s.needsAttention && !seen.current.has(s.eventKey)).map(session => ({ account, session }))) for (const event of attention) seen.current.add(event.session.eventKey) From 0329133d15a7ab9f7118cac1e23df9993a1d73c3 Mon Sep 17 00:00:00 2001 From: wrestle-R Date: Wed, 25 Nov 2026 10:33:26 +0530 Subject: [PATCH 2/2] prepared the dated 1.8.10 release zip --- .github/workflows/release.yml | 5 +++++ next/content/releases/v1.8.10.md | 13 +++++++++++++ next/package-lock.json | 4 ++-- next/package.json | 2 +- tauri/package-lock.json | 4 ++-- tauri/package.json | 2 +- tauri/src-tauri/Cargo.lock | 2 +- tauri/src-tauri/Cargo.toml | 2 +- tauri/src-tauri/tauri.conf.json | 2 +- tauri/src/components/release-notes-dialog.tsx | 1 + tauri/src/lib/release-history.json | 10 ++++++++++ 11 files changed, 38 insertions(+), 9 deletions(-) create mode 100644 next/content/releases/v1.8.10.md diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6daca38..9905290 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -342,6 +342,11 @@ jobs: sha256sum "${ASSETS[@]}" | sed 's# \./# #' > SHA256SUMS sha256sum --strict -c SHA256SUMS node ../tauri/scripts/updater-manifest.mjs . "${GITHUB_REF_NAME#v}" --check + ARCHIVE="Multi.Codex_${GITHUB_REF_NAME#v}_packages.zip" + python3 -m zipfile -c "$ARCHIVE" "${ASSETS[@]}" SHA256SUMS + python3 -m zipfile -t "$ARCHIVE" + sha256sum "$ARCHIVE" >> SHA256SUMS + sha256sum --strict -c SHA256SUMS cd .. if gh release view "$GITHUB_REF_NAME" --json isDraft >/dev/null 2>&1; then [[ "$(gh release view "$GITHUB_REF_NAME" --json isDraft --jq '.isDraft')" == "true" ]] diff --git a/next/content/releases/v1.8.10.md b/next/content/releases/v1.8.10.md new file mode 100644 index 0000000..caf5f41 --- /dev/null +++ b/next/content/releases/v1.8.10.md @@ -0,0 +1,13 @@ +# Multi Codex v1.8.10 + +## Orbit + +Orbit skips redraws and input-region updates when its view stays the same. Account, chat and attention changes still refresh on the existing schedule. + +## Account launches and updates + +Private desktop, CLI and editor-extension launches clear inherited Codex provider overrides. The native updater matches the GitHub release asset to the platform and version, checks the bundled signing key and holds the install lock through restart. + +## Downloads + +Use the [install page](/install) or the Update button. The release ZIP groups the individual installers, update signatures and checksums. diff --git a/next/package-lock.json b/next/package-lock.json index 1bc3897..5247310 100644 --- a/next/package-lock.json +++ b/next/package-lock.json @@ -1,12 +1,12 @@ { "name": "multi-codex-docs", - "version": "1.8.9", + "version": "1.8.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "multi-codex-docs", - "version": "1.8.9", + "version": "1.8.10", "dependencies": { "botid": "1.5.11", "next": "16.4.5", diff --git a/next/package.json b/next/package.json index c76eb52..420992d 100644 --- a/next/package.json +++ b/next/package.json @@ -1,6 +1,6 @@ { "name": "multi-codex-docs", - "version": "1.8.9", + "version": "1.8.10", "private": true, "scripts": { "dev": "next dev", diff --git a/tauri/package-lock.json b/tauri/package-lock.json index c8b3faf..f74b14b 100644 --- a/tauri/package-lock.json +++ b/tauri/package-lock.json @@ -1,12 +1,12 @@ { "name": "multi-codex-desktop", - "version": "1.8.9", + "version": "1.8.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "multi-codex-desktop", - "version": "1.8.9", + "version": "1.8.10", "dependencies": { "@fontsource/bricolage-grotesque": "^5.2.10", "@fontsource/outfit": "^5.2.8", diff --git a/tauri/package.json b/tauri/package.json index 8326f4b..6fc3d59 100644 --- a/tauri/package.json +++ b/tauri/package.json @@ -1,7 +1,7 @@ { "name": "multi-codex-desktop", "private": true, - "version": "1.8.9", + "version": "1.8.10", "type": "module", "scripts": { "dev": "vite", diff --git a/tauri/src-tauri/Cargo.lock b/tauri/src-tauri/Cargo.lock index e458e4c..b10437f 100644 --- a/tauri/src-tauri/Cargo.lock +++ b/tauri/src-tauri/Cargo.lock @@ -2497,7 +2497,7 @@ dependencies = [ [[package]] name = "multi-codex-desktop" -version = "1.8.9" +version = "1.8.10" dependencies = [ "base64 0.22.1", "cairo-rs", diff --git a/tauri/src-tauri/Cargo.toml b/tauri/src-tauri/Cargo.toml index 8dffc8c..673b282 100644 --- a/tauri/src-tauri/Cargo.toml +++ b/tauri/src-tauri/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "multi-codex-desktop" -version = "1.8.9" +version = "1.8.10" description = "Run isolated Codex accounts in separate VS Code windows" default-run = "multi-codex-desktop" authors = ["Russell Daniel Paul"] diff --git a/tauri/src-tauri/tauri.conf.json b/tauri/src-tauri/tauri.conf.json index bd97fde..b0dfa4a 100644 --- a/tauri/src-tauri/tauri.conf.json +++ b/tauri/src-tauri/tauri.conf.json @@ -1,7 +1,7 @@ { "$schema": "https://schema.tauri.app/config/2", "productName": "Multi Codex", - "version": "1.8.9", + "version": "1.8.10", "identifier": "com.multicodex.desktop", "build": { "beforeDevCommand": "npm run dev", diff --git a/tauri/src/components/release-notes-dialog.tsx b/tauri/src/components/release-notes-dialog.tsx index 032bc3c..db788e5 100644 --- a/tauri/src/components/release-notes-dialog.tsx +++ b/tauri/src/components/release-notes-dialog.tsx @@ -21,6 +21,7 @@ export function ReleaseNotesDialog({ version, previousVersion, platform, onClose

{previousVersion ? `Updates since v${previousVersion}.` : "Release history included in this version."}

{releaseNotesSince(version, previousVersion).map(release =>

v{release.version}{release.title}

+ {release.date && }
    {release.highlights.map(note =>
  • {note}
  • )}
)} {platform === "windows" ?

Orbit is available on macOS and Linux.

: null} diff --git a/tauri/src/lib/release-history.json b/tauri/src/lib/release-history.json index 790e148..9ba0f4a 100644 --- a/tauri/src/lib/release-history.json +++ b/tauri/src/lib/release-history.json @@ -1,4 +1,14 @@ [ + { + "version": "1.8.10", + "date": "2026-11-25", + "title": "Quieter Orbit and safer account launches", + "highlights": [ + "Orbit skips redraws when its account and chat state stays the same.", + "Private launches clear inherited Codex provider overrides.", + "The native updater checks the exact release package and verifies its signature before installing." + ] + }, { "version": "1.8.9", "title": "Import Codex Desktop history and restore Dock Quit",