惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

The GitHub Blog
The GitHub Blog
A
About on SuperTechFans
The Cloudflare Blog
G
Google Developers Blog
博客园_首页
Martin Fowler
Martin Fowler
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
D
Docker
C
Check Point Blog
T
Tailwind CSS Blog
博客园 - 司徒正美
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Hugging Face - Blog
Hugging Face - Blog
Microsoft Security Blog
Microsoft Security Blog
V
V2EX
博客园 - 叶小钗
T
The Blog of Author Tim Ferriss
酷 壳 – CoolShell
酷 壳 – CoolShell
IT之家
IT之家
M
MIT News - Artificial intelligence
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 【当耐特】
GbyAI
GbyAI

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: require chat view model picker · openclaw/openclaw@...
steipete · 2026-05-08 · via Recent Commits to openclaw:main

@@ -331,6 +331,17 @@ async function flushTasks() {

331331

await vi.dynamicImportSettled();

332332

}

333333334+

function getChatModelSelect(container: Element): HTMLSelectElement {

335+

const select = container.querySelector<HTMLSelectElement>(

336+

'select[data-chat-model-select="true"]',

337+

);

338+

expect(select).toBeInstanceOf(HTMLSelectElement);

339+

if (!(select instanceof HTMLSelectElement)) {

340+

throw new Error("Expected chat model select");

341+

}

342+

return select;

343+

}

344+334345

function renderChatView(overrides: Partial<Parameters<typeof renderChat>[0]> = {}) {

335346

const container = document.createElement("div");

336347

render(

@@ -485,7 +496,7 @@ describe("chat loading skeleton", () => {

485496

});

486497487498

expect(container.querySelector(".chat-loading-skeleton")).toBeNull();

488-

expect(container.querySelector(".chat-reading-indicator")).not.toBeNull();

499+

expect(container.querySelectorAll(".chat-reading-indicator")).toHaveLength(1);

489500

});

490501

});

491502

@@ -936,14 +947,11 @@ describe("chat session controls", () => {

936947

const container = document.createElement("div");

937948

render(renderChatSessionSelect(state), container);

938949939-

const modelSelect = container.querySelector<HTMLSelectElement>(

940-

'select[data-chat-model-select="true"]',

941-

);

942-

expect(modelSelect).not.toBeNull();

943-

expect(modelSelect?.value).toBe("");

950+

const modelSelect = getChatModelSelect(container);

951+

expect(modelSelect.value).toBe("");

944952945-

modelSelect!.value = "openai/gpt-5-mini";

946-

modelSelect!.dispatchEvent(new Event("change", { bubbles: true }));

953+

modelSelect.value = "openai/gpt-5-mini";

954+

modelSelect.dispatchEvent(new Event("change", { bubbles: true }));

947955948956

expect(request).toHaveBeenCalledWith("sessions.patch", {

949957

key: "main",

@@ -966,14 +974,11 @@ describe("chat session controls", () => {

966974

const container = document.createElement("div");

967975

render(renderChatSessionSelect(state), container);

968976969-

const modelSelect = container.querySelector<HTMLSelectElement>(

970-

'select[data-chat-model-select="true"]',

971-

);

972-

expect(modelSelect).not.toBeNull();

973-

expect(modelSelect?.value).toBe("openai/gpt-5-mini");

977+

const modelSelect = getChatModelSelect(container);

978+

expect(modelSelect.value).toBe("openai/gpt-5-mini");

974979975-

modelSelect!.value = "";

976-

modelSelect!.dispatchEvent(new Event("change", { bubbles: true }));

980+

modelSelect.value = "";

981+

modelSelect.dispatchEvent(new Event("change", { bubbles: true }));

977982978983

expect(request).toHaveBeenCalledWith("sessions.patch", {

979984

key: "main",

@@ -991,32 +996,24 @@ describe("chat session controls", () => {

991996

const container = document.createElement("div");

992997

render(renderChatSessionSelect(state), container);

993998994-

const modelSelect = container.querySelector<HTMLSelectElement>(

995-

'select[data-chat-model-select="true"]',

996-

);

997-

expect(modelSelect).not.toBeNull();

998-

expect(modelSelect?.disabled).toBe(true);

999+

const modelSelect = getChatModelSelect(container);

1000+

expect(modelSelect.disabled).toBe(true);

9991001

});

1000100210011003

it("keeps the selected model visible when the active session is absent from sessions.list", async () => {

10021004

const { state } = createChatHeaderState({ omitSessionFromList: true });

10031005

const container = document.createElement("div");

10041006

render(renderChatSessionSelect(state), container);

100510071006-

const modelSelect = container.querySelector<HTMLSelectElement>(

1007-

'select[data-chat-model-select="true"]',

1008-

);

1009-

expect(modelSelect).not.toBeNull();

1008+

const modelSelect = getChatModelSelect(container);

101010091011-

modelSelect!.value = "openai/gpt-5-mini";

1012-

modelSelect!.dispatchEvent(new Event("change", { bubbles: true }));

1010+

modelSelect.value = "openai/gpt-5-mini";

1011+

modelSelect.dispatchEvent(new Event("change", { bubbles: true }));

10131012

await flushTasks();

10141013

render(renderChatSessionSelect(state), container);

101510141016-

const rerendered = container.querySelector<HTMLSelectElement>(

1017-

'select[data-chat-model-select="true"]',

1018-

);

1019-

expect(rerendered?.value).toBe("openai/gpt-5-mini");

1015+

const rerendered = getChatModelSelect(container);

1016+

expect(rerendered.value).toBe("openai/gpt-5-mini");

10201017

});

1021101810221019

it("uses default thinking options when the active session is absent", () => {