Skip to content

A desktop coding agent with free access to frontier models.

TypeScript

test: client header on capabilities and model calls

ogsamrat0c4cd7cb1dfc
diff --git a/apps/app/src/react-app/domains/whats-new/PARITY.sha256 b/apps/app/src/react-app/domains/whats-new/PARITY.sha256
index 7166eaed..733180da 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.
-f759a22a599ebdbe3342fad5cc2daae7118639040f8a06ce64ad39b5e7a46df9 whats-new.json
+d85e2140ddf55d6bddce05014c617b17a63707e290e8f20e029b0dc18dca577f whats-new.json
diff --git a/apps/app/src/react-app/domains/whats-new/whats-new.json b/apps/app/src/react-app/domains/whats-new/whats-new.json
index ff350d3e..2116dce5 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,16 @@
"$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.6.6",
+ "date": "2026-10-21",
+ "new": [],
+ "improved": [],
+ "fixed": [
+ "Security: commands the agent runs no longer receive the engine's sign-in or your account token.",
+ "Security: computer use no longer starts in auto just because settings.json says so; run with --permissions auto to allow it."
+ ]
+ },
{
"version": "2.6.5",
"date": "2026-10-21",
@@ -199,6 +209,16 @@
}
],
"desktop": [
+ {
+ "version": "3.6.9",
+ "date": "2026-10-21",
+ "new": [],
+ "improved": [],
+ "fixed": [
+ "Security: commands the agent runs no longer receive the app's own keys.",
+ "Security: approvals, permission mode, project settings, plugins, MCP servers and keys can only be changed from the app's own window, not with a key read from disk."
+ ]
+ },
{
"version": "3.6.7",
"date": "2026-10-21",
diff --git a/apps/server/src/omnirush-gateway-update-gate.test.ts b/apps/server/src/omnirush-gateway-update-gate.test.ts
index 0986ab82..a19b81e2 100644
--- a/apps/server/src/omnirush-gateway-update-gate.test.ts
+++ b/apps/server/src/omnirush-gateway-update-gate.test.ts
@@ -194,6 +194,28 @@ describe("X-OmniRush-Client on every broker request", () => {
expect(fileHeaders[0]?.["X-OmniRush-Session-ID"]).toBe("ses_gate");
});
+ test("capabilities and model calls name gui/<version>, never the CLI's product", async () => {
+ const seen: Array<{ path: string; client: string | null; ua: string | null }> = [];
+ const subject = new OmniRushGatewayBroker({
+ credentials: { gatewayUrl: "https://gateway.example/omnirush/v1", accessToken: "a", refreshToken: "r" },
+ engineToken: "local-engine-token",
+ clientVersion: "3.6.9",
+ fetch: async (input, init) => {
+ const headers = new Headers(init?.headers);
+ seen.push({ path: new URL(String(input)).pathname, client: headers.get("x-omnirush-client"), ua: headers.get("user-agent") });
+ return Response.json({ ok: true });
+ },
+ });
+ await subject.handle(modelRequest(), "responses");
+ await subject.sessionUploadCapabilities({ strict: false }).catch(() => undefined);
+ expect(seen.map((entry) => entry.path)).toEqual(expect.arrayContaining(["/omnirush/v1/responses", "/omnirush/collect/capabilities"]));
+ for (const entry of seen) {
+ expect(entry.client).toBe("gui/3.6.9");
+ // The User-Agent never names another product (cli/, omnirush/<v>) that would disagree with the header.
+ expect(String(entry.ua ?? "")).not.toMatch(/^(?:cli|omnirush)\//i);
+ }
+ });
+
test("a standalone server without an app version sends no client header", async () => {
let client: string | null = "unset";
const subject = new OmniRushGatewayBroker({