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

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
L
LangChain Blog
人人都是产品经理
人人都是产品经理
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Tailwind CSS Blog
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
J
Java Code Geeks
博客园 - 【当耐特】
量子位
有赞技术团队
有赞技术团队
Jina AI
Jina AI
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
C
Check Point Blog
B
Blog RSS Feed
M
MIT News - Artificial intelligence
H
Help Net Security
雷峰网
雷峰网
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 聂微东
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
A
About on SuperTechFans
腾讯CDC

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
fix: simplify chat session search · openclaw/openclaw@7e1...
steipete · 2026-05-23 · via Recent Commits to openclaw:main

@@ -54,17 +54,13 @@ export function renderChatSessionSelect(

5454

const surface = options.surface ?? "desktop";

5555

const selectedSessionLabel = resolveSelectedChatSessionLabel(state, sessionGroups);

5656

const pickerOpen = state.chatSessionPickerOpen && state.chatSessionPickerSurface === surface;

57-

const sessionSearchVisible =

58-

state.chatSessionSearchOpen ||

59-

(state.chatSessionPickerQuery ?? "").trim() !== "" ||

60-

(state.chatSessionPickerAppliedQuery ?? "").trim() !== "";

6157

const flashSession = state.sessionSwitchFlashKey === state.sessionKey;

6258

const rowClass = [

6359

"chat-controls__session-row",

6460

hasAgentSelect ? "" : "chat-controls__session-row--single-agent",

6561

quotaPill ? "chat-controls__session-row--has-quota" : "",

6662

flashSession ? "chat-controls__session-row--flash" : "",

67-

sessionSearchVisible ? "chat-controls__session-row--session-search-open" : "",

63+

"chat-controls__session-row--session-search-open",

6864

]

6965

.filter(Boolean)

7066

.join(" ");

@@ -140,11 +136,6 @@ function closeChatSessionPicker(state: AppViewState) {

140136

requestHostUpdate(state);

141137

}

142138143-

function openChatSessionSearch(state: AppViewState, surface: ChatSessionSelectSurface) {

144-

state.chatSessionSearchOpen = true;

145-

openChatSessionPicker(state, surface);

146-

}

147-148139

function toggleChatSessionPicker(state: AppViewState, surface: ChatSessionSelectSurface) {

149140

if (state.chatSessionPickerOpen && state.chatSessionPickerSurface === surface) {

150141

closeChatSessionPicker(state);

@@ -258,7 +249,6 @@ async function applyChatSessionPickerSearch(state: AppViewState) {

258249

}

259250260251

function clearChatSessionPickerSearch(state: AppViewState) {

261-

state.chatSessionSearchOpen = false;

262252

state.chatSessionPickerQuery = "";

263253

state.chatSessionPickerAppliedQuery = "";

264254

state.chatSessionPickerError = null;

@@ -369,28 +359,7 @@ function renderChatSessionPickerSearchControls(

369359

state: AppViewState,

370360

surface: ChatSessionSelectSurface,

371361

) {

372-

const hasQuery =

373-

(state.chatSessionPickerQuery ?? "").trim() !== "" ||

374-

(state.chatSessionPickerAppliedQuery ?? "").trim() !== "";

375-

const searchVisible = state.chatSessionSearchOpen || hasQuery;

376362

const disabled = !state.connected || !state.client || state.chatSessionPickerLoading;

377-

if (!searchVisible) {

378-

return html`

379-

<div class="chat-controls__session-actions">

380-

<button

381-

class="btn btn--ghost btn--icon chat-controls__session-search-toggle"

382-

data-chat-session-search-toggle="true"

383-

type="button"

384-

title=${t("chat.selectors.sessionSearch")}

385-

aria-label=${t("chat.selectors.sessionSearch")}

386-

?disabled=${disabled}

387-

@click=${() => openChatSessionSearch(state, surface)}

388-

>

389-

${icons.search}

390-

</button>

391-

</div>

392-

`;

393-

}

394363

return html`

395364

<div class="chat-controls__session-actions">

396365

<label class="field chat-controls__session-search">

@@ -403,12 +372,14 @@ function renderChatSessionPickerSearchControls(

403372

aria-label=${t("chat.selectors.sessionSearch")}

404373

.value=${state.chatSessionPickerQuery ?? ""}

405374

?disabled=${disabled}

375+

@focus=${() => openChatSessionPicker(state, surface)}

406376

@input=${(event: Event) => {

407377

state.chatSessionPickerQuery = (event.target as HTMLInputElement).value;

408378

}}

409379

@keydown=${(event: KeyboardEvent) => {

410380

if (event.key === "Enter") {

411381

event.preventDefault();

382+

openChatSessionPicker(state, surface);

412383

void applyChatSessionPickerSearch(state);

413384

} else if (event.key === "Escape") {

414385

event.preventDefault();

@@ -418,28 +389,6 @@ function renderChatSessionPickerSearchControls(

418389

}}

419390

/>

420391

</label>

421-

<button

422-

class="btn btn--ghost btn--icon"

423-

data-chat-session-search-submit="true"

424-

type="button"

425-

title=${t("common.search")}

426-

aria-label=${t("common.search")}

427-

?disabled=${disabled}

428-

@click=${() => void applyChatSessionPickerSearch(state)}

429-

>

430-

${icons.search}

431-

</button>

432-

<button

433-

class="btn btn--ghost btn--icon"

434-

data-chat-session-search-clear="true"

435-

type="button"

436-

title=${t("chat.selectors.clearSessionSearch")}

437-

aria-label=${t("chat.selectors.clearSessionSearch")}

438-

?disabled=${disabled}

439-

@click=${() => clearChatSessionPickerSearch(state)}

440-

>

441-

${icons.x}

442-

</button>

443392

</div>

444393

`;

445394

}