Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 5 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" ]]
Expand Down
13 changes: 13 additions & 0 deletions next/content/releases/v1.8.10.md
Original file line number Diff line number Diff line change
@@ -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.
4 changes: 2 additions & 2 deletions next/package-lock.json

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

2 changes: 1 addition & 1 deletion next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "multi-codex-docs",
"version": "1.8.9",
"version": "1.8.10",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
4 changes: 2 additions & 2 deletions tauri/package-lock.json

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

2 changes: 1 addition & 1 deletion tauri/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "multi-codex-desktop",
"private": true,
"version": "1.8.9",
"version": "1.8.10",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion tauri/src-tauri/Cargo.lock

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

2 changes: 1 addition & 1 deletion tauri/src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -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"]
Expand Down
12 changes: 8 additions & 4 deletions tauri/src-tauri/src/hud.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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();
}
Expand Down
2 changes: 1 addition & 1 deletion tauri/src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
31 changes: 28 additions & 3 deletions tauri/src/Hud.test.tsx
Original file line number Diff line number Diff line change
@@ -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<typeof import("./lib/hud")>(), nativeHud: false, hudCall: api.call }))
vi.mock("./components/account-avatar", () => ({ AccountAvatar: () => <span data-testid="plush-avatar" /> }))
vi.mock("./components/account-avatar", () => ({
AccountAvatar: () => {
api.avatarRendered()
return <span data-testid="plush-avatar" />
},
}))
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(() => {
Expand All @@ -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(<Hud />)
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(<Hud />)
const avatar = await screen.findByRole("button", { name: "Fixture: Open" })
Expand Down
12 changes: 10 additions & 2 deletions tauri/src/Hud.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,25 @@ export default function Hud() {
const popupTimer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined)
const hoverTimer = useRef<ReturnType<typeof setTimeout> | undefined>(undefined)
const shell = useRef<HTMLElement>(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)
Expand All @@ -66,6 +71,9 @@ export default function Hud() {
try {
const next = await hudCall<HudView>("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)
Expand Down
1 change: 1 addition & 0 deletions tauri/src/components/release-notes-dialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export function ReleaseNotesDialog({ version, previousVersion, platform, onClose
<p>{previousVersion ? `Updates since v${previousVersion}.` : "Release history included in this version."}</p>
{releaseNotesSince(version, previousVersion).map(release => <section className="release-notes-entry" key={release.version} aria-label={`Release ${release.version}`}>
<h3><span>v{release.version}</span>{release.title}</h3>
{release.date && <time dateTime={release.date}>{new Intl.DateTimeFormat(undefined, { dateStyle: "long", timeZone: "UTC" }).format(new Date(release.date))}</time>}
<ul>{release.highlights.map(note => <li key={note}>{note}</li>)}</ul>
</section>)}
{platform === "windows" ? <p>Orbit is available on macOS and Linux.</p> : null}
Expand Down
10 changes: 10 additions & 0 deletions tauri/src/lib/release-history.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading