A desktop coding agent with free access to frontier models.
TypeScript
feat: hackathon participant badge
Samrat Talukdar1ce5d5a18fe7
diff --git a/apps/app/src/app/lib/desktop.ts b/apps/app/src/app/lib/desktop.tsindex 526c92f2..1a9f14f9 100644--- a/apps/app/src/app/lib/desktop.ts+++ b/apps/app/src/app/lib/desktop.ts@@ -365,6 +365,8 @@ declare global {version?: string;evalFatalBootstrapFailure?: string | null;stockMode?: boolean;+ /** A hackathon turned stock mode on at start (events/app-events.mjs). */+ eventMode?: boolean;};};}diff --git a/apps/app/src/app/lib/runtime-env.ts b/apps/app/src/app/lib/runtime-env.tsindex 3fad81f7..988a866d 100644--- a/apps/app/src/app/lib/runtime-env.ts+++ b/apps/app/src/app/lib/runtime-env.ts@@ -13,3 +13,8 @@ export function isDesktopRuntime() {export function isStockMode() {return isElectronRuntime() && window.__OMNIRUSH_ELECTRON__?.meta?.stockMode === true;}++/** Stock mode a hackathon turned on: the app says nothing about the mode itself then. */+export function isEventMode() {+ return isElectronRuntime() && window.__OMNIRUSH_ELECTRON__?.meta?.eventMode === true;+}diff --git a/apps/app/src/i18n/locales/en.ts b/apps/app/src/i18n/locales/en.tsindex 588f94b6..61626557 100644--- a/apps/app/src/i18n/locales/en.ts+++ b/apps/app/src/i18n/locales/en.ts@@ -2676,4 +2676,13 @@ export default {"settings.appearance.same_as_code_font": "Same as code font","settings.appearance.preset_default": "Default","settings.appearance.preset_high_contrast": "High contrast",+ "events.counting": "Chats you build in OmniRush while {name} runs count toward the event. There is nothing else to set up.",+ "events.hide": "Hide until tomorrow",+ "events.show": "{name} hackathon: you're participating",+ "events.restart": "Restart OmniRush so your chats count",+ "events.joined_title": "Events you joined",+ "events.joined_on": "Joined {date}",+ "events.live": "Live now",+ "events.empty_title": "No events yet",+ "events.empty_detail": "Join a hackathon with an event code and it shows up here.",} as const;diff --git a/apps/app/src/react-app/domains/events/event-badge.tsx b/apps/app/src/react-app/domains/events/event-badge.tsxnew file mode 100644index 00000000..f5369b14--- /dev/null+++ b/apps/app/src/react-app/domains/events/event-badge.tsx@@ -0,0 +1,154 @@+/** @jsxImportSource react */+// Hackathon events (the account status's `events`, apps/desktop/electron/events/app-events.mjs): a badge in+// the sidebar above the account while an event runs, and "Events you joined" in Settings. Display only;+// nothing shows without the block.+import * as React from "react";+import { Flag, RotateCw, X } from "lucide-react";+import type { OmniRushAccountEvents } from "@omnirush/types/desktop-ipc";++import { Tooltip, TooltipContent, TooltipTrigger } from "@/components/ui/tooltip";+import { cn } from "@/lib/utils";++import { relaunchDesktopApp } from "../../../app/lib/desktop";+import { t } from "../../../i18n";++const DISMISSED_KEY = "omnirush.events.dismissed";++const today = () => {+ const d = new Date();+ return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;+};++function storage(): Storage | null {+ try {+ return typeof window === "undefined" ? null : window.localStorage;+ } catch {+ return null;+ }+}++/** The running event, until it ends by this machine's clock. */+export function activeEvent(events: OmniRushAccountEvents | null | undefined, now = Date.now()) {+ const event = events?.active?.[0];+ return event && Date.parse(event.endsAt) > now ? event : null;+}++/** Hidden with × until the next day (per event); the flag next to the account tools brings it back. */+export function useEventDismissed(name: string | null) {+ const key = name ? `${name}|${today()}` : null;+ const [dismissed, setDismissed] = React.useState(() => Boolean(key) && storage()?.getItem(DISMISSED_KEY) === key);+ React.useEffect(() => setDismissed(Boolean(key) && storage()?.getItem(DISMISSED_KEY) === key), [key]);+ const set = React.useCallback((value: boolean) => {+ if (!key) return;+ if (value) storage()?.setItem(DISMISSED_KEY, key);+ else storage()?.removeItem(DISMISSED_KEY);+ setDismissed(value);+ }, [key]);+ return [dismissed, set] as const;+}++function EventMark({ className }: { className?: string }) {+ return (+ <span aria-hidden="true" className={cn("flex size-6 shrink-0 items-center justify-center rounded-md bg-highlight text-neutral-900 shadow-sm", className)}>+ <Flag className="size-3.5" strokeWidth={2.25} />+ </span>+ );+}++/** The sidebar's event card (above the account), or nothing. */+export function EventBadge({ events, dismissed, onDismiss }: { events: OmniRushAccountEvents | null | undefined; dismissed: boolean; onDismiss: () => void }) {+ const event = activeEvent(events);+ if (!event || dismissed) return null;+ return (+ <div+ role="status"+ data-testid="event-badge"+ className="mx-0.5 mb-1.5 me-1.5 animate-in fade-in slide-in-from-bottom-1 rounded-lg border border-highlight/35 bg-highlight/10 p-2 duration-500 group-data-[collapsible=icon]:hidden"+ >+ <div className="flex items-start gap-2">+ <EventMark />+ <Tooltip>+ <TooltipTrigger+ render={+ <div className="min-w-0 flex-1 cursor-default" tabIndex={0}>+ <div className="truncate text-xs font-medium leading-5 text-sidebar-foreground" data-testid="event-badge-title">{event.title}</div>+ <div className="text-[10.5px] leading-snug text-muted-foreground" data-testid="event-badge-detail">{event.detail}</div>+ </div>+ }+ />+ <TooltipContent side="top" className="max-w-64">{t("events.counting", { name: event.name })}</TooltipContent>+ </Tooltip>+ <button+ type="button"+ onClick={onDismiss}+ aria-label={t("events.hide")}+ title={t("events.hide")}+ data-testid="event-badge-dismiss"+ className="-me-0.5 -mt-0.5 flex size-5 shrink-0 items-center justify-center rounded text-muted-foreground/70 transition-colors hover:bg-sidebar-accent hover:text-sidebar-foreground"+ >+ <X className="size-3" />+ </button>+ </div>+ {events?.restart ? (+ <button+ type="button"+ onClick={() => void relaunchDesktopApp()}+ data-testid="event-badge-restart"+ className="mt-1.5 ms-8 flex items-center gap-1 text-[10.5px] font-medium text-link hover:underline"+ >+ <RotateCw className="size-3" />+ {t("events.restart")}+ </button>+ ) : null}+ </div>+ );+}++/** "Events you joined" for Settings: name and date, newest first, or an empty state. */+export function EventsJoinedList({ events }: { events: OmniRushAccountEvents }) {+ const running = activeEvent(events);+ return (+ <div className="space-y-3" data-testid="events-joined">+ <div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">{t("events.joined_title")}</div>+ <div className="overflow-hidden rounded-2xl border border-dls-border bg-dls-surface">+ {events.joined.length ? (+ <ul className="divide-y divide-dls-border">+ {events.joined.map((event) => {+ const live = running?.name === event.name;+ return (+ <li key={`${event.name}|${event.joinedAt}`} className="flex items-center gap-3 px-4 py-3">+ {live ? <EventMark /> : (+ <span aria-hidden="true" className="flex size-6 shrink-0 items-center justify-center rounded-md border border-dls-border bg-dls-hover text-dls-secondary">+ <Flag className="size-3.5" />+ </span>+ )}+ <div className="min-w-0 flex-1">+ <div className="truncate text-[13px] font-medium text-dls-text">{event.name}</div>+ <div className="truncate text-[11px] text-dls-secondary">+ {live && running ? running.detail : t("events.joined_on", { date: event.date })}+ </div>+ </div>+ {live ? (+ <span className="shrink-0 rounded-full bg-highlight/15 px-2 py-0.5 text-[10.5px] font-medium text-dls-text ring-1 ring-highlight/40">{t("events.live")}</span>+ ) : (+ <time dateTime={event.joinedAt} className="shrink-0 text-[11px] tabular-nums text-dls-secondary">{event.date}</time>+ )}+ </li>+ );+ })}+ </ul>+ ) : (+ <div className="flex items-center gap-3 px-4 py-4" data-testid="events-joined-empty">+ <span aria-hidden="true" className="flex size-8 shrink-0 items-center justify-center rounded-xl border border-dashed border-dls-border text-dls-secondary">+ <Flag className="size-4" />+ </span>+ <div className="min-w-0">+ <div className="text-[13px] font-medium text-dls-text">{t("events.empty_title")}</div>+ <div className="text-[11px] text-dls-secondary">{t("events.empty_detail")}</div>+ </div>+ </div>+ )}+ </div>+ </div>+ );+}diff --git a/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx b/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsxindex 21785ad1..3e6dded1 100644--- a/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx+++ b/apps/app/src/react-app/domains/session/sidebar/app-sidebar.tsx@@ -35,7 +35,7 @@ import {Sparkles,CircleHelp,} from "lucide-react";-import { CalendarClock, LayoutDashboard, Megaphone, MessageSquareText, Puzzle } from "lucide-react";+import { CalendarClock, Flag, LayoutDashboard, Megaphone, MessageSquareText, Puzzle } from "lucide-react";import type { LucideIcon } from "lucide-react";import { LazyMotion, Reorder, domMax, m, useDragControls } from "motion/react";@@ -70,6 +70,7 @@ import { canCreateWorkspaces } from "../../../../app/lib/workspace-creation-poliimport { useShellConfig } from "../../../shell/shell-config";import { openFeedbackDialog } from "../../../../app/lib/in-app-feedback";import { openWhatsNew, useWhatsNewUnseen } from "../../whats-new/whats-new";+import { EventBadge, activeEvent, useEventDismissed } from "../../events/event-badge";import {Sidebar,@@ -1130,6 +1131,10 @@ export function NativeAccountFooter({ onOpenAccountSettings }: { onOpenAccountSe: t("sidebar.sign_in_lower");const usage = connected && status?.usage ? omnirushUsageSummary(status.usage) : null;const quality = connected ? status?.quality ?? null : null;+ // A hackathon running now: the card above the account, a flag in the tools row once it is hidden for the day.+ const events = connected ? status?.events ?? null : null;+ const event = activeEvent(events);+ const [eventHidden, setEventHidden] = useEventDismissed(event?.name ?? null);// The account server label ("omnirush.ai", "localhost:8090 (local API)")// only matters while connected; a signed-out footer keeps the sign-in hint.const serverHost = connected ? status?.gatewayHost?.trim() || null : null;@@ -1150,6 +1155,7 @@ export function NativeAccountFooter({ onOpenAccountSettings }: { onOpenAccountSereturn (<SidebarFooter className="border-t border-sidebar-border/60 p-1.5 pe-0">+ <EventBadge events={events} dismissed={eventHidden} onDismiss={() => setEventHidden(true)} /><SidebarMenu><SidebarMenuItem><SidebarMenuButton@@ -1224,6 +1230,17 @@ export function NativeAccountFooter({ onOpenAccountSettings }: { onOpenAccountSe<div role="group" aria-label={t("sidebar.account_tools")} data-testid="sidebar-footer-tools" className="flex items-center gap-0.5 pe-1.5">{quality ? <QualitySpinButtons quality={quality} /> : null}<span className="flex-1" />+ {event && eventHidden ? (+ <SidebarIconButton+ icon={Flag}+ label={t("events.show", { name: event.name })}+ title={`${event.title} · ${event.detail}`}+ tooltipSide="top"+ onClick={() => setEventHidden(false)}+ data-testid="sidebar-event-flag"+ badge={<span aria-hidden="true" className="absolute end-1 top-1 size-1.5 rounded-full bg-highlight" />}+ />+ ) : null}<WhatsNewIconButton /><SidebarIconButton icon={Settings} label={t("settings.tab_general")} tooltipSide="top" onClick={onOpenAccountSettings} data-testid="sidebar-settings" /></div>diff --git a/apps/app/src/react-app/domains/settings/pages/general-view.tsx b/apps/app/src/react-app/domains/settings/pages/general-view.tsxindex dda415b8..ddcf6fe7 100644--- a/apps/app/src/react-app/domains/settings/pages/general-view.tsx+++ b/apps/app/src/react-app/domains/settings/pages/general-view.tsx@@ -52,6 +52,7 @@ import { useLinuxSandbox, type LinuxSandboxClient } from "../linux-sandbox";import { LinuxSandboxCard } from "../linux-sandbox-card";import { BuildathonTrackCard } from "../../buildathon/buildathon";import { ComputerUseSettingsCard } from "../../session/surface/computer-use/setup";+import { EventsJoinedList } from "../../events/event-badge";export type GeneralSettingsViewProps = {onNavigateTab: (tab: SettingsTab) => void;@@ -523,6 +524,7 @@ export function GeneralSettingsView(props: GeneralSettingsViewProps) {</div></div>)}+ {isElectronRuntime() && account?.connected && account.events ? <EventsJoinedList events={account.events} /> : null}{/* Workspace settings */}<div className="space-y-3"><div className="text-[11px] font-semibold uppercase tracking-[0.15em] text-dls-secondary">diff --git a/apps/app/src/react-app/domains/whats-new/PARITY.sha256 b/apps/app/src/react-app/domains/whats-new/PARITY.sha256index f7741274..65f9d3c7 100644--- a/apps/app/src/react-app/domains/whats-new/PARITY.sha256+++ b/apps/app/src/react-app/domains/whats-new/PARITY.sha256@@ -1,3 +1,3 @@# whats-new.json is the same file in omnirush-cli (src/whats-new/) and omnirush-gui (apps/app/src/react-app/domains/whats-new/).# A change to one must be ported to the other and this list updated in both.-810e8bc0cb091ac6f990989b6e15380da2b2a6fcf75c61992b55c9b049726671 whats-new.json+de34292a14d3dfa7c211b1772385937a1806e00e074bc9c0b32f5dd8753223d1 whats-new.jsondiff --git a/apps/app/src/react-app/domains/whats-new/whats-new.json b/apps/app/src/react-app/domains/whats-new/whats-new.jsonindex 21f8ad64..0874779a 100644--- a/apps/app/src/react-app/domains/whats-new/whats-new.json+++ b/apps/app/src/react-app/domains/whats-new/whats-new.json@@ -2,6 +2,15 @@"$comment": "What's new in OmniRush: release notes written for users, newest first, shown in the CLI (/changelog, omnirush changelog) and the desktop app (Help > What's new). Same file in omnirush-cli (src/whats-new/) and omnirush-gui (apps/app/src/react-app/domains/whats-new/); keep the copies byte-identical (PARITY.sha256). Plain language, no PR numbers, nothing internal. Write the entry for every release before tagging.","schema": 1,"cli": [+ {+ "version": "2.7.7",+ "date": "2026-10-30",+ "new": [+ "Joined a hackathon with an event code? OmniRush now shows that you're taking part, beside the prompt and in the sidebar, and `/usage` lists the events you've joined."+ ],+ "improved": [],+ "fixed": []+ },{"version": "2.7.6","date": "2026-10-28",@@ -365,7 +374,8 @@"date": "2026-10-28","new": ["Settings > Preferences now shows the default model for new chats, with a Change button to pick another one.",- "Settings > Preferences has a Web search switch. Turn it off and the agent gets no web search tool from the next message on, also in an open chat. It can still open a web page you give it."+ "Settings > Preferences has a Web search switch. Turn it off and the agent gets no web search tool from the next message on, also in an open chat. It can still open a web page you give it.",+ "Joined a hackathon with an event code? The app now shows that you're taking part, above your account in the sidebar, and Settings lists the events you've joined."],"improved": ["In stock mode (OMNIRUSH_FARM=1) the agent's commands now run with the same environment and PATH as stock OpenCode, with nothing of OmniRush's added."diff --git a/apps/app/src/react-app/shell/stock-mode-notice.tsx b/apps/app/src/react-app/shell/stock-mode-notice.tsxindex 75564726..9485fe22 100644--- a/apps/app/src/react-app/shell/stock-mode-notice.tsx+++ b/apps/app/src/react-app/shell/stock-mode-notice.tsx@@ -1,7 +1,7 @@import { useEffect } from "react";import { toast } from "@/components/ui/sonner";-import { isStockMode } from "../../app/lib/runtime-env";+import { isEventMode, isStockMode } from "../../app/lib/runtime-env";/** The same words as the CLI's notice (src/stock.js STOCK_NOTICE). */export const STOCK_NOTICE = "Stock mode: stock OpenCode v2 on GPT 6 Astra. No OmniRush tools, prompts, MCP servers or automatic compaction.";@@ -9,7 +9,8 @@ export const STOCK_NOTICE = "Stock mode: stock OpenCode v2 on GPT 6 Astra. No Om/** Stock mode (OMNIRUSH_FARM=1 at launch): one short notice when the window opens. */export function StockModeNotice() {useEffect(() => {- if (!isStockMode()) return;+ // Not when a hackathon turned it on: the event badge is all the app shows then.+ if (!isStockMode() || isEventMode()) return;// After this commit: the Toaster (providers.tsx, a later sibling) subscribes in its own effect.const timer = setTimeout(() => toast.info(STOCK_NOTICE, { duration: 15_000 }), 500);return () => clearTimeout(timer);diff --git a/apps/desktop/electron/events-desktop.test.mjs b/apps/desktop/electron/events-desktop.test.mjsnew file mode 100644index 00000000..8d3cfe3f--- /dev/null+++ b/apps/desktop/electron/events-desktop.test.mjs@@ -0,0 +1,89 @@+// Hackathon events in the desktop app: the parser shared with the CLI (PARITY), the start's mode from the kept+// answer (no opt-out while an event runs, back to normal once it ends), and what the window gets.+import assert from "node:assert/strict";+import { createHash } from "node:crypto";+import fs from "node:fs";+import os from "node:os";+import path from "node:path";+import test from "node:test";+import { fileURLToPath } from "node:url";++import { accountEvents, applyEventStock, readEventsRecord } from "./events/app-events.mjs";+import { eventsRecord, parseEvents } from "./events/events.mjs";++const here = path.dirname(fileURLToPath(import.meta.url));+const NOW = Date.parse("2026-10-30T10:00:00Z");+const UTC = { timeZone: "UTC", locale: "en-US" };+const BIOS = { name: "BIOS V2", code: "BIOS10M", starts_at: "2026-10-29T09:00:00Z", ends_at: "2026-10-30T18:00:00Z", stock_required: true };+const ME = {+ events: { active: [BIOS], history: [{ name: "BIOS V2", code: "BIOS10M", joined_at: "2026-10-29T12:00:00Z" }] },+ stock_mode: { required: true, reason: "event", event: "BIOS V2" },+};+const tmp = () => fs.mkdtempSync(path.join(os.tmpdir(), "omnirush-events-"));+const status = (me) => ({ connected: true, email: "[email protected]", eventsRecord: eventsRecord(me) });++test("CLI/desktop parity: events/PARITY.sha256 matches its files", () => {+ const dir = path.join(here, "events");+ const rows = fs.readFileSync(path.join(dir, "PARITY.sha256"), "utf8").split("\n").filter((line) => line && !line.startsWith("#"));+ assert.ok(rows.length > 0);+ for (const row of rows) {+ const [hash, name] = row.split(/\s+/);+ assert.equal(createHash("sha256").update(fs.readFileSync(path.join(dir, name))).digest("hex"), hash, `${name} changed: port it to the CLI and update PARITY.sha256 in both`);+ }+});++test("parse: absent, empty, malformed, not started or ended read as no event", () => {+ for (const me of [null, {}, { events: null }, { events: [] }, { events: { active: "x" } }, { events: { active: [{ name: "A", ends_at: "x" }] } }]) {+ assert.deepEqual(parseEvents(me, NOW), { active: [], history: [], stock: null });+ }+ assert.equal(parseEvents(ME, Date.parse("2026-10-29T08:00:00Z")).active.length, 0);+ assert.equal(parseEvents(ME, Date.parse("2026-10-30T18:00:01Z")).stock, null);+ assert.equal(parseEvents(ME, NOW).stock.event, "BIOS V2");+});++test("start: an event's mode is on whatever the launch env says, and off again once the event ends", () => {+ const dir = tmp();+ // Nothing kept: the env decides.+ assert.deepEqual(applyEventStock(dir, { OMNIRUSH_FARM: "1" }, NOW), { asked: true, event: false, stock: true });+ assert.deepEqual(applyEventStock(dir, {}, NOW), { asked: false, event: false, stock: false });+ // The answer kept by a status read; the opt-out (OMNIRUSH_FARM=0) is ignored while the event runs.+ accountEvents(status(ME), { dir, started: { stock: false }, now: NOW });+ assert.deepEqual(readEventsRecord(dir), eventsRecord(ME));+ const env = { OMNIRUSH_FARM: "0" };+ assert.deepEqual(applyEventStock(dir, env, NOW), { asked: false, event: true, stock: true });+ assert.equal(env.OMNIRUSH_FARM, "1");+ assert.equal(env.OMNIRUSH_STOCK_REASON, "event");+ // A relaunch inherits that env: after the event it is a normal start again.+ assert.deepEqual(applyEventStock(dir, env, Date.parse("2026-10-30T18:00:00Z")), { asked: false, event: false, stock: false });+ assert.equal(env.OMNIRUSH_FARM, undefined);+ assert.equal(env.OMNIRUSH_STOCK_REASON, undefined);+ // The person's own stock mode stays theirs.+ const own = { OMNIRUSH_FARM: "1" };+ applyEventStock(dir, own, NOW);+ assert.equal(own.OMNIRUSH_STOCK_REASON, "event-asked");+ assert.deepEqual(applyEventStock(dir, own, Date.parse("2026-10-31T00:00:00Z")), { asked: true, event: false, stock: true });+ // The server dropping the flag: the next start is normal.+ accountEvents(status({ ...ME, stock_mode: { required: false } }), { dir, started: { stock: true, event: true }, now: NOW });+ assert.deepEqual(applyEventStock(dir, {}, NOW), { asked: false, event: false, stock: false });+});++test("window: display values, the restart note, nothing for a plain stock run or signed out", () => {+ const dir = tmp();+ const shown = accountEvents(status(ME), { dir, started: { stock: true, event: true }, now: NOW, local: UTC });+ assert.equal(shown.eventsRecord, undefined, "the raw part stays in the main process");+ assert.deepEqual(shown.events, {+ active: [{ name: "BIOS V2", endsAt: "2026-10-30T18:00:00.000Z", title: "BIOS V2 hackathon", detail: "You're participating · ends today 6:00 PM" }],+ joined: [{ name: "BIOS V2", joinedAt: "2026-10-29T12:00:00.000Z", date: "Oct 29, 2026" }],+ restart: false,+ });+ assert.doesNotMatch(JSON.stringify(shown.events), /stock|farm/i);+ // Joined while this run is normal: it applies from the next start.+ assert.equal(accountEvents(status(ME), { dir, started: { stock: false }, now: NOW }).events.restart, true);+ // Stock for another reason, and the event does not ask for it: nothing at all.+ assert.equal(accountEvents(status({ events: ME.events }), { dir, started: { stock: true, asked: true, event: false }, now: NOW }).events, null);+ // No block: empty lists (Settings shows its empty state; no badge).+ assert.deepEqual(accountEvents({ connected: true, eventsRecord: eventsRecord({}) }, { dir: tmp(), started: { stock: false }, now: NOW }).events, { active: [], joined: [], restart: false });+ assert.equal(accountEvents({ connected: false }, { dir, started: { stock: false }, now: NOW }).events, null);+ // Offline (no answer this time): the kept one.+ assert.equal(accountEvents({ connected: true }, { dir, started: { stock: true, event: true }, now: NOW }).events.active[0].name, "BIOS V2");+});diff --git a/apps/desktop/electron/events/PARITY.sha256 b/apps/desktop/electron/events/PARITY.sha256new file mode 100644index 00000000..fd1c247d--- /dev/null+++ b/apps/desktop/electron/events/PARITY.sha256@@ -0,0 +1,3 @@+# Hackathon events: the same file in omnirush-cli (assets/extensions/omnirush/events/)+# and omnirush-gui (apps/desktop/electron/events/). A change to one must be ported to the other and this list updated in both.+beb04f48e3fecd9403527677a0407b0671531025dc27ba14d4c0270f400d14a5 events.mjsdiff --git a/apps/desktop/electron/events/app-events.mjs b/apps/desktop/electron/events/app-events.mjsnew file mode 100644index 00000000..94967826--- /dev/null+++ b/apps/desktop/electron/events/app-events.mjs@@ -0,0 +1,78 @@+// Hackathon events in the desktop app (events.mjs parses /device/me's block, the same file as the CLI's).+// The last answer's part is kept in <userData>/events.json, so the next start knows before anything runs+// whether an event runs its chats in stock mode (applyEventStock, from main.mjs), and the window gets the+// display values with the account status (accountEvents). Display only: nothing here reaches a chat, the+// agent's env or uploads; a missing or malformed block shows nothing.++import fs from "node:fs";+import path from "node:path";++import { dateLabel, eventBadge, eventsRecord, parseEvents } from "./events.mjs";++const FILE = "events.json";+const STOCK_ENV = "OMNIRUSH_FARM";+/** Set at start when an event turned the mode on: the window's stock-mode notice stays quiet then. */+export const EVENT_MODE_ENV = "OMNIRUSH_STOCK_REASON";++const stockMode = (env) => ["1", "true", "on", "yes"].includes(String(env?.[STOCK_ENV] ?? "").trim().toLowerCase());++export function readEventsRecord(dir) {+ try {+ const record = JSON.parse(fs.readFileSync(path.join(dir, FILE), "utf8"));+ return record && typeof record === "object" ? record : null;+ } catch {+ return null;+ }+}++function saveEventsRecord(dir, record) {+ try {+ fs.mkdirSync(dir, { recursive: true });+ const file = path.join(dir, FILE);+ const temp = `${file}.${process.pid}.tmp`;+ fs.writeFileSync(temp, `${JSON.stringify(record)}\n`, { mode: 0o600 });+ fs.renameSync(temp, file);+ } catch { /* the next answer is kept instead */ }+}++/**+ * At start, before anything reads OMNIRUSH_FARM: an event that runs its chats in stock mode (the kept answer)+ * turns it on for this run, whatever the launch env says. Returns { asked, event, stock }.+ */+export function applyEventStock(dir, env = process.env, now = Date.now()) {+ // A relaunch inherits this process's env: the mode an event turned on is not the person's own.+ if (env[EVENT_MODE_ENV] === "event") delete env[STOCK_ENV];+ delete env[EVENT_MODE_ENV];+ const asked = stockMode(env);+ const event = Boolean(parseEvents(readEventsRecord(dir), now).stock);+ if (event) {+ env[EVENT_MODE_ENV] = asked ? "event-asked" : "event";+ env[STOCK_ENV] = "1";+ }+ return { asked, event, stock: asked || event };+}++/**+ * The account status as the window gets it: the profile's raw `eventsRecord` is kept on disk and replaced by+ * `events` ({ active, joined, restart }; empty lists when the account has none; null to show nothing at all). `started` is applyEventStock's answer.+ * `restart`: an event now asks for the mode this run did not start in; it applies from the next start.+ */+export function accountEvents(status, { dir, started, now = Date.now(), local } = {}) {+ if (!status || typeof status !== "object") return status;+ const { eventsRecord: record, ...rest } = status;+ if (record) saveEventsRecord(dir, record);+ if (!rest.connected) return { ...rest, events: null };+ const parsed = parseEvents(record ?? readEventsRecord(dir), now);+ // A stock run for any other reason stays as plain as stock OpenCode.+ if (started?.stock && !started.event && !parsed.stock) return { ...rest, events: null };+ return {+ ...rest,+ events: {+ active: parsed.active.map((event) => ({ name: event.name, endsAt: new Date(event.endsAt).toISOString(), ...eventBadge(event, now, local) })),+ joined: parsed.history.map((event) => ({ name: event.name, joinedAt: new Date(event.joinedAt).toISOString(), date: dateLabel(event.joinedAt, local) })),+ restart: Boolean(parsed.stock) && !started?.stock,+ },+ };+}++export { eventsRecord };diff --git a/apps/desktop/electron/events/events.mjs b/apps/desktop/electron/events/events.mjsnew file mode 100644index 00000000..28005a56--- /dev/null+++ b/apps/desktop/electron/events/events.mjs@@ -0,0 +1,98 @@+// Hackathon events from /device/me: the same file in omnirush-cli (assets/extensions/omnirush/events/) and+// omnirush-gui (apps/desktop/electron/events/); keep them byte-identical (PARITY.sha256).+//+// "events": {+// "active": [{ "name", "code", "starts_at", "ends_at", "stock_required" }],+// "history": [{ "name", "code", "joined_at" }]+// },+// "stock_mode": { "required": true, "reason": "event", "event": "BIOS V2" }+//+// Display only, and never waited on: a missing or malformed block (or entry) reads as no event. An event is+// active from starts_at (when given) until ends_at, by this machine's clock. stock_mode.required counts only+// while an event is active, so the app goes back to its normal mode once the event ends, also with an old answer.++const NAME_MAX = 60;++const isRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value);+const text = (value, max) => (typeof value === "string" && value.trim() ? value.trim().slice(0, max) : null);+/** An ISO time as ms, null when absent, NaN when present but unreadable. */+const time = (value) => (value === undefined || value === null ? null : typeof value === "string" ? Date.parse(value) : Number.NaN);++/**+ * { active, history, stock } from a /device/me answer (or the part of one an app kept):+ * active [{ name, code, startsAt, endsAt }] running now, the one ending first first+ * history [{ name, code, joinedAt }] newest first+ * stock { event, until } while the server requires its mode for an active event, else null+ */+export function parseEvents(me, now = Date.now()) {+ const block = isRecord(me) && isRecord(me.events) ? me.events : {};+ const entries = (value) => (Array.isArray(value) ? value.filter(isRecord) : []);+ const active = [];+ for (const entry of entries(block.active)) {+ const name = text(entry.name, NAME_MAX);+ const startsAt = time(entry.starts_at);+ const endsAt = time(entry.ends_at);+ if (!name || !Number.isFinite(endsAt) || Number.isNaN(startsAt)) continue;+ if (endsAt <= now || (startsAt !== null && startsAt > now)) continue;+ active.push({ name, code: text(entry.code, 40), startsAt, endsAt, stockRequired: entry.stock_required === true });+ }+ active.sort((a, b) => a.endsAt - b.endsAt);+ const history = [];+ for (const entry of entries(block.history)) {+ const name = text(entry.name, NAME_MAX);+ const joinedAt = time(entry.joined_at);+ if (name && Number.isFinite(joinedAt)) history.push({ name, code: text(entry.code, 40), joinedAt });+ }+ history.sort((a, b) => b.joinedAt - a.joinedAt);+ let stock = null;+ if (isRecord(me) && isRecord(me.stock_mode) && me.stock_mode.required === true && active.length) {+ const named = text(me.stock_mode.event, NAME_MAX);+ const event = active.find((item) => item.name === named) ?? active.find((item) => item.stockRequired) ?? active[0];+ stock = { event: event.name, until: event.endsAt };+ }+ return {+ active: active.map(({ stockRequired: _s, ...item }) => item),+ history,+ stock,+ };+}++/** The part of an answer worth keeping on disk (the next start decides its mode before it can ask). */+export function eventsRecord(me) {+ return isRecord(me) ? { events: isRecord(me.events) ? me.events : null, stock_mode: isRecord(me.stock_mode) ? me.stock_mode : null } : null;+}++function format(at, options, { locale, timeZone } = {}) {+ const zone = timeZone ? { timeZone } : {};+ try {+ return new Intl.DateTimeFormat(locale, { ...options, ...zone }).format(at).replace(/[ ]/g, " ");+ } catch {+ return new Intl.DateTimeFormat("en-US", { ...options, ...zone }).format(at).replace(/[ ]/g, " ");+ }+}++function dayNumber(at, timeZone) {+ const parts = new Intl.DateTimeFormat("en-US", { year: "numeric", month: "numeric", day: "numeric", ...(timeZone ? { timeZone } : {}) }).formatToParts(at);+ const part = (type) => Number(parts.find((p) => p.type === type)?.value);+ return Date.UTC(part("year"), part("month") - 1, part("day")) / 86_400_000;+}++/** "ends today 6:00 PM", "ends tomorrow 6:00 PM", "ends Fri 6:00 PM", "ends Nov 7" (local time). */+export function endsLabel(at, now = Date.now(), local = {}) {+ const clock = format(at, { hour: "numeric", minute: "2-digit" }, local);+ const days = dayNumber(at, local.timeZone) - dayNumber(now, local.timeZone);+ if (days <= 0) return `ends today ${clock}`;+ if (days === 1) return `ends tomorrow ${clock}`;+ if (days < 7) return `ends ${format(at, { weekday: "short" }, local)} ${clock}`;+ return `ends ${format(at, { month: "short", day: "numeric" }, local)}`;+}++/** "Oct 29, 2026" (local date). */+export function dateLabel(at, local = {}) {+ return format(at, { month: "short", day: "numeric", year: "numeric" }, local);+}++/** The words both apps show for an active event: { title, detail }. */+export function eventBadge(event, now = Date.now(), local = {}) {+ return { title: `${event.name} hackathon`, detail: `You're participating · ${endsLabel(event.endsAt, now, local)}` };+}diff --git a/apps/desktop/electron/main.mjs b/apps/desktop/electron/main.mjsindex b7e10420..0e3aa710 100644--- a/apps/desktop/electron/main.mjs+++ b/apps/desktop/electron/main.mjs@@ -129,6 +129,7 @@ import { createTurnGuard } from "./turn-guard.mjs";import { KEEP_AWAKE_FILE, createKeepAwake } from "./keep-awake.mjs";import { armQuitWatchdog } from "./quit-watchdog.mjs";import { projectChecklist } from "./buildathon-checklist.mjs";+import { accountEvents, applyEventStock } from "./events/app-events.mjs";import {createRendererCrashRecovery,installSocketTypeOfServiceGuard,@@ -295,6 +296,9 @@ const userDataPath = BLANK_SLATE_LAUNCH.userDataPath ?? resolveUserDataPath({userDataOverride: process.env.OMNIRUSH_ELECTRON_USERDATA,});app.setPath("userData", userDataPath);+// A hackathon that runs its chats in stock mode (the last /device/me answer, events/app-events.mjs): on for+// this run before anything reads OMNIRUSH_FARM, with no opt-out while it runs.+const EVENT_STOCK = applyEventStock(userDataPath);const linuxDesktopIntegration = createLinuxDesktopIntegration({app,dialog,@@ -1434,6 +1438,10 @@ const updateGate = createUpdateGate({},});+/** The account status with the hackathon events as the window shows them (the answer's part kept for the next start). */+async function accountStatusWithEvents(options) {+ return accountEvents(await omnirushAccountStore.status(options), { dir: app.getPath("userData"), started: EVENT_STOCK });+}const omnirushAccountStore = createDesktopOmniRushAccountStore({filePath: path.join(app.getPath("userData"), "omnirush-account.bin"),// Sign-in, device code, token refresh, profile and sign-out.@@ -2473,7 +2481,7 @@ const desktopCommandHandlers = {"omnirushAccountStatus": async (event, ...args) => {// Optional `{ sessionId }`: the session open in the app, for the quality hint.const input = args[0] && typeof args[0] === "object" ? args[0] : {};- return omnirushAccountStore.status({ sessionId: typeof input.sessionId === "string" ? input.sessionId : null });+ return accountStatusWithEvents({ sessionId: typeof input.sessionId === "string" ? input.sessionId : null });},// Quality rewards: the wheel's segments and recent sessions, spin totals, and one spin with the device// credential (X-OmniRush-Client like every account request). A refusal@@ -3318,7 +3326,7 @@ ipcMain.handle("omnirush:update-gate:refresh", async () => {// The profile is read at launch and every 30 minutes even when no// account view is open, so a required update is known before the// deadline, not only from the first refused model request.- const readProfile = () => { void omnirushAccountStore.status().catch(() => null); };+ const readProfile = () => { void accountStatusWithEvents().catch(() => null); };setTimeout(readProfile, 15_000).unref?.();setInterval(readProfile, 30 * 60_000).unref?.();}diff --git a/apps/desktop/electron/omnirush-account.mjs b/apps/desktop/electron/omnirush-account.mjsindex abedaf4f..9f9b313a 100644--- a/apps/desktop/electron/omnirush-account.mjs+++ b/apps/desktop/electron/omnirush-account.mjs@@ -13,6 +13,7 @@ import {writePlaintextCredentialFile,} from "./plaintext-credential-file.mjs";import { CLIENT_HEADER, guiClientHeaderValue, parseClientUpdate } from "./update-gate.mjs";+import { eventsRecord } from "./events/events.mjs";import { desktopBuild, gatewayUrlAllowedForBuild, isReleaseBuild, RELEASE_GATEWAY_ERROR } from "./build-variant.mjs";import { buildathonJoinError, buildathonLinkCode, buildathonLinkError, buildathonProjectName, buildathonTrackId, parseBuildathonAnswer, parseBuildathonSessions, parseBuildathonStatus } from "./buildathon.mjs";import { parseAccountQuality, parseFailLabels, parseQualitySessions, parseSessionStatus, parseSpinHistory, profileSessionId, parseSpinResult, parseWheelSegments, spinIdempotencyKey, spinRefusal } from "./quality.mjs";@@ -256,6 +257,8 @@ function accountProfile(value) {clientUpdate: parseClientUpdate(value.client_update),// Quality rewards (quality.mjs); null while the feature is off.quality: parseAccountQuality(value.quality),+ // Hackathon events (events/app-events.mjs): the raw part, kept on disk and turned into display values in main.mjs.+ eventsRecord: eventsRecord(value),};}@@ -1160,6 +1163,7 @@ export function createDesktopOmniRushAccountStore({usage: profile?.usage ?? null,clientUpdate: profile?.clientUpdate ?? null,quality: profile?.quality ?? null,+ eventsRecord: profile?.eventsRecord ?? null,};} catch (error) {if (error instanceof InvalidAccountCredentialsError) {diff --git a/apps/desktop/electron/preload.mjs b/apps/desktop/electron/preload.mjsindex 1b5c303e..4956f8fa 100644--- a/apps/desktop/electron/preload.mjs+++ b/apps/desktop/electron/preload.mjs@@ -327,6 +327,8 @@ contextBridge.exposeInMainWorld("__OMNIRUSH_ELECTRON__", {evalFatalBootstrapFailure: process.env.OMNIRUSH_EVAL_FATAL_DESKTOP_BOOTSTRAP_FAILURE ?? null,// Stock mode (OMNIRUSH_FARM at launch; the same test as the server's stock-mode.mjs stockMode).stockMode: ["1", "true", "on", "yes"].includes(String(process.env.OMNIRUSH_FARM ?? "").trim().toLowerCase()),+ // A hackathon turned it on (events/app-events.mjs): the window says nothing about the mode then.+ eventMode: String(process.env.OMNIRUSH_STOCK_REASON ?? "").startsWith("event"),},});diff --git a/apps/desktop/package.json b/apps/desktop/package.jsonindex b52d0734..9fcac8ff 100644--- a/apps/desktop/package.json+++ b/apps/desktop/package.json@@ -27,7 +27,7 @@"prepare:sidecar": "node ./scripts/prepare-sidecar.mjs","pretest": "pnpm --filter @omnirush/headless-threads build","test:omnirush-account": "node --test electron/omnirush-account.test.mjs",- "test": "node --test scripts/prepare-server-constants.test.mjs scripts/prepare-box-helpers.test.mjs scripts/verify-update-manifest.test.mjs electron/after-pack-paths.test.mjs electron/agent-context-diagnostics-fetch.test.mjs electron/automation-runner.test.mjs electron/binary-transfer.test.mjs electron/blank-slate-profile.test.mjs electron/blank-slate-profile-isolation.test.mjs electron/brand-app-name.test.mjs electron/brand-icon-darwin.test.mjs electron/brand-icon-windows.test.mjs electron/browser-login-sync.test.mjs electron/browser-panel.test.mjs electron/browser-task.test.mjs electron/background-rendering.test.mjs electron/connect-link.test.mjs electron/desktop-distribution.test.mjs electron/dev-profile.test.mjs electron/electron-builder-config.test.mjs electron/linux-desktop-integration.test.mjs electron/linux-password-store.test.mjs electron/logs-folder.test.mjs electron/media-permissions.test.mjs electron/no-bare-external-fetch.test.mjs electron/nuke.test.mjs electron/omnirush-account.test.mjs electron/omnirush-ui-mcp.test.mjs electron/open-external.test.mjs electron/open-local-path.test.mjs electron/process-resilience.test.mjs electron/runtime.test.mjs electron/runtime-ca.test.mjs electron/system-ca-trust.test.mjs electron/external-fetch.test.mjs electron/runtime-chain-repair.test.mjs electron/sentry.test.mjs electron/server-dependency-mirror.test.mjs electron/skill-folder.test.mjs electron/secure-vault-key.test.mjs electron/stdio-errors.test.mjs electron/terminal-sessions.test.mjs electron/ui-control-server.test.mjs electron/updater.test.mjs electron/update-gate.test.mjs electron/window-size.test.mjs electron/quality.test.mjs electron/buildathon.test.mjs electron/build-variant.test.mjs electron/placements-desktop.test.mjs electron/feedback-desktop.test.mjs electron/turn-guard.test.mjs electron/keep-awake.test.mjs electron/computer-use-answers.test.mjs electron/computer-use-gate.test.mjs electron/computer-use-agent-browser.test.mjs electron/remote-workspace.test.mjs electron/workspace-archive.test.mjs electron/workspace-store.test.mjs electron/start-report.test.mjs electron/start-reset.test.mjs electron/start-store-check.test.mjs electron/app-request-secret.test.mjs electron/disk-cleanup.test.mjs electron/lima-packaging.test.mjs electron/quit-watchdog.test.mjs",+ "test": "node --test scripts/prepare-server-constants.test.mjs scripts/prepare-box-helpers.test.mjs scripts/verify-update-manifest.test.mjs electron/after-pack-paths.test.mjs electron/agent-context-diagnostics-fetch.test.mjs electron/automation-runner.test.mjs electron/binary-transfer.test.mjs electron/blank-slate-profile.test.mjs electron/blank-slate-profile-isolation.test.mjs electron/brand-app-name.test.mjs electron/brand-icon-darwin.test.mjs electron/brand-icon-windows.test.mjs electron/browser-login-sync.test.mjs electron/browser-panel.test.mjs electron/browser-task.test.mjs electron/background-rendering.test.mjs electron/connect-link.test.mjs electron/desktop-distribution.test.mjs electron/dev-profile.test.mjs electron/electron-builder-config.test.mjs electron/linux-desktop-integration.test.mjs electron/linux-password-store.test.mjs electron/logs-folder.test.mjs electron/media-permissions.test.mjs electron/no-bare-external-fetch.test.mjs electron/nuke.test.mjs electron/omnirush-account.test.mjs electron/omnirush-ui-mcp.test.mjs electron/open-external.test.mjs electron/open-local-path.test.mjs electron/process-resilience.test.mjs electron/runtime.test.mjs electron/runtime-ca.test.mjs electron/system-ca-trust.test.mjs electron/external-fetch.test.mjs electron/runtime-chain-repair.test.mjs electron/sentry.test.mjs electron/server-dependency-mirror.test.mjs electron/skill-folder.test.mjs electron/secure-vault-key.test.mjs electron/stdio-errors.test.mjs electron/terminal-sessions.test.mjs electron/ui-control-server.test.mjs electron/updater.test.mjs electron/update-gate.test.mjs electron/window-size.test.mjs electron/quality.test.mjs electron/buildathon.test.mjs electron/build-variant.test.mjs electron/placements-desktop.test.mjs electron/feedback-desktop.test.mjs electron/turn-guard.test.mjs electron/keep-awake.test.mjs electron/computer-use-answers.test.mjs electron/computer-use-gate.test.mjs electron/computer-use-agent-browser.test.mjs electron/remote-workspace.test.mjs electron/workspace-archive.test.mjs electron/workspace-store.test.mjs electron/start-report.test.mjs electron/start-reset.test.mjs electron/start-store-check.test.mjs electron/app-request-secret.test.mjs electron/disk-cleanup.test.mjs electron/lima-packaging.test.mjs electron/quit-watchdog.test.mjs electron/events-desktop.test.mjs","test:core": "node --test scripts/prepare-server-constants.test.mjs electron/workspace-store.test.mjs electron/workspace-archive.test.mjs electron/connect-link.test.mjs electron/open-external.test.mjs electron/open-local-path.test.mjs electron/secure-vault-key.test.mjs electron/process-resilience.test.mjs electron/stdio-errors.test.mjs electron/runtime-ca.test.mjs electron/system-ca-trust.test.mjs electron/external-fetch.test.mjs electron/runtime-chain-repair.test.mjs electron/automation-runner.test.mjs","pretest:core": "pnpm --filter @omnirush/headless-threads build"},diff --git a/apps/server/src/omnirush-gateway-broker.test.ts b/apps/server/src/omnirush-gateway-broker.test.tsindex 169d05f4..9ee2287d 100644--- a/apps/server/src/omnirush-gateway-broker.test.ts+++ b/apps/server/src/omnirush-gateway-broker.test.ts@@ -254,6 +254,22 @@ describe("OmniRush gateway broker", () => {expect(calls[0]?.headers.get("authorization")).toBe("Bearer access-token");});+ test("every model request says whether the app runs stock (X-OmniRush-Stock 1 or 0)", async () => {+ const before = process.env.OMNIRUSH_FARM;+ try {+ for (const [farm, expected] of [["", "0"], ["1", "1"]] as const) {+ process.env.OMNIRUSH_FARM = farm;+ const calls: UpstreamCall[] = [];+ const response = await capturingBroker(calls).handle(gatewayRequest({ model: "gpt-6-astra", input: "test" }, { "x-omnirush-stock": "spoofed" }), "responses");+ expect(response.status).toBe(200);+ expect(calls[0]?.headers.get("x-omnirush-stock")).toBe(expected);+ }+ } finally {+ if (before === undefined) delete process.env.OMNIRUSH_FARM;+ else process.env.OMNIRUSH_FARM = before;+ }+ });+test("forwards the client request id so edge failures can be correlated", async () => {const calls: UpstreamCall[] = [];const broker = capturingBroker(calls);diff --git a/apps/server/src/omnirush-gateway-broker.ts b/apps/server/src/omnirush-gateway-broker.tsindex 706577e6..6e8dc1e6 100644--- a/apps/server/src/omnirush-gateway-broker.ts+++ b/apps/server/src/omnirush-gateway-broker.ts@@ -1996,7 +1996,7 @@ export class OmniRushGatewayBroker {modelCatalog(): Promise<Response> {return this.withDeviceBearer((state) => this.fetcher(upstreamUrl(state.gatewayUrl, "models"), {method: "GET",- headers: { Authorization: `Bearer ${state.accessToken}`, Accept: "application/json" },+ headers: { Authorization: `Bearer ${state.accessToken}`, Accept: "application/json", "X-OmniRush-Stock": stockMode() ? "1" : "0" },signal: AbortSignal.timeout(8_000),}));}@@ -2303,6 +2303,8 @@ export class OmniRushGatewayBroker {if (wrapSession && request.headers.get("x-omnirush-request-kind") === "compaction" && this.contextWrap?.(wrapSession)) headers.set("x-omnirush-context-wrap", "1");// A box (sandbox) chat's request: the gateway judges its model in the box mode.if (this.boxRequest(request)) headers.set(BOX_HEADER, "1");+ // Whether this app runs stock (stock-mode.mjs), on every model request: the gateway checks it for event chats.+ headers.set("X-OmniRush-Stock", stockMode() ? "1" : "0");// Strict sessions: every request of a chat says so (the gateway binds it itself if ours failed).if (strictHeader && headers.has("x-omnirush-session-id")) headers.set(strictHeader, "1");// The engine going away cancels the request, unless its answer already finished (settleOnFinish reads it to its end).diff --git a/packages/types/src/desktop-ipc.ts b/packages/types/src/desktop-ipc.tsindex 63e0bed6..aa1c295e 100644--- a/packages/types/src/desktop-ipc.ts+++ b/packages/types/src/desktop-ipc.ts@@ -585,6 +585,17 @@ export type OmniRushAccountStatus = {clientUpdate?: OmniRushClientUpdate | null;/** Quality rewards; null (or absent from an older bridge) while the feature is off. */quality?: OmniRushAccountQuality | null;+ /** Hackathons the account takes part in (events/app-events.mjs); null or absent: show nothing. */+ events?: OmniRushAccountEvents | null;+};++export type OmniRushAccountEvents = {+ /** Running now, the one ending first first. `title` "BIOS V2 hackathon", `detail` "You're participating · ends Fri 6:00 PM". */+ active: Array<{ name: string; endsAt: string; title: string; detail: string }>;+ /** Joined, newest first; `date` "Oct 29, 2026" (local). */+ joined: Array<{ name: string; joinedAt: string; date: string }>;+ /** The app has to start again for the event (it applies from the next start). */+ restart: boolean;};export type EngineDoctorResult = {