fix: apply oxfmt formatting to CHANGELOG and test file

This commit is contained in:
Otoris 2026-03-15 18:36:09 -04:00
parent 16a35cfbb4
commit a0cbe0a87c
2 changed files with 8 additions and 6 deletions

View File

@ -5,6 +5,7 @@ Docs: https://docs.openclaw.ai
## Unreleased
### Changes
- Sessions/named DM: add `buildNamedDmSessionKey`, `parseNamedDmSessionKey`, and `isNamedDmSessionKey` key-format helpers, an `activeNamedSession` field on `SessionEntry`, and `setActiveNamedSession`/`getActiveNamedSessionKey` store helpers as infrastructure for named DM session switching.
- Android/mobile: add a system-aware dark theme across onboarding and post-onboarding screens so the app follows the device theme through setup, chat, and voice flows. (#46249) Thanks @sibbl.

View File

@ -1,14 +1,11 @@
import { describe, expect, it } from "vitest";
import type { SessionEntry } from "../config/sessions.js";
import { getActiveNamedSessionKey, setActiveNamedSession } from "../gateway/session-utils.js";
import {
buildNamedDmSessionKey,
isNamedDmSessionKey,
parseNamedDmSessionKey,
} from "./session-key-utils.js";
import {
getActiveNamedSessionKey,
setActiveNamedSession,
} from "../gateway/session-utils.js";
import type { SessionEntry } from "../config/sessions.js";
describe("Named DM Session Keys (ETH-608)", () => {
describe("buildNamedDmSessionKey", () => {
@ -251,7 +248,11 @@ describe("Named DM Session Keys (ETH-608)", () => {
describe("getActiveNamedSessionKey", () => {
it("returns null when mainEntry is undefined", () => {
const result = getActiveNamedSessionKey({ mainEntry: undefined, agentId: "main", peerId: "123" });
const result = getActiveNamedSessionKey({
mainEntry: undefined,
agentId: "main",
peerId: "123",
});
expect(result).toBeNull();
});