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

推荐订阅源

L
LINUX DO - 最新话题
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
PCI Perspectives
PCI Perspectives
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
H
Heimdal Security Blog
S
Security @ Cisco Blogs
N
News | PayPal Newsroom
J
Java Code Geeks
罗磊的独立博客
Security Archives - TechRepublic
Security Archives - TechRepublic
N
News and Events Feed by Topic
V
V2EX
WordPress大学
WordPress大学
Google Online Security Blog
Google Online Security Blog
N
News and Events Feed by Topic
www.infosecurity-magazine.com
www.infosecurity-magazine.com
月光博客
月光博客
AI
AI
小众软件
小众软件
The GitHub Blog
The GitHub Blog
MongoDB | Blog
MongoDB | Blog
A
Arctic Wolf
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
美团技术团队
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Tailwind CSS Blog
S
Schneier on Security
博客园 - 三生石上(FineUI控件)
F
Full Disclosure
B
Blog RSS Feed
Forbes - Security
Forbes - Security
S
SegmentFault 最新的问题
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
人人都是产品经理
人人都是产品经理
云风的 BLOG
云风的 BLOG
Jina AI
Jina AI
Cisco Talos Blog
Cisco Talos Blog
U
Unit 42
Project Zero
Project Zero
H
Hacker News: Front Page
Y
Y Combinator Blog
Application and Cybersecurity Blog
Application and Cybersecurity Blog
The Cloudflare Blog
大猫的无限游戏
大猫的无限游戏
S
Secure Thoughts
The Hacker News
The Hacker News
Microsoft Azure Blog
Microsoft Azure Blog

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
perf: speed up tui session refresh · openclaw/openclaw@18dc6e5
steipete · 2026-05-31 · via Recent Commits to openclaw:main

@@ -445,6 +445,8 @@ type SessionListRowContext = {

445445

modelCostConfigByModelRef: Map<string, ModelCostConfig | undefined>;

446446

};

447447448+

type SessionListRowContextProvider = () => SessionListRowContext;

449+448450

type SingleRowChildSessionCandidateCacheEntry = {

449451

store: Record<string, SessionEntry>;

450452

storeVersion: number;

@@ -671,16 +673,33 @@ function buildSessionListRowContext(params: {

671673

now: number;

672674

}): SessionListRowContext {

673675

const subagentRuns = buildSubagentRunReadIndex(params.now);

674-

return {

676+

return buildSessionListRowContextFromParts({

675677

subagentRuns,

676678

storeChildSessionsByKey: buildStoreChildSessionIndex(params.store, params.now, subagentRuns),

679+

});

680+

}

681+682+

function buildSessionListRowContextFromParts(params: {

683+

subagentRuns: ReturnType<typeof buildSubagentRunReadIndex>;

684+

storeChildSessionsByKey: Map<string, string[]>;

685+

}): SessionListRowContext {

686+

return {

687+

subagentRuns: params.subagentRuns,

688+

storeChildSessionsByKey: params.storeChildSessionsByKey,

677689

selectedModelByOverrideRef: new Map(),

678690

thinkingMetadataByModelRef: new Map(),

679691

displayModelIdentityByKey: new Map(),

680692

modelCostConfigByModelRef: new Map(),

681693

};

682694

}

683695696+

function buildSessionListRowMetadataContext(params: { now: number }): SessionListRowContext {

697+

return buildSessionListRowContextFromParts({

698+

subagentRuns: buildSubagentRunReadIndex(params.now),

699+

storeChildSessionsByKey: new Map(),

700+

});

701+

}

702+684703

function buildSingleRowStoreChildSessionsByKey(params: {

685704

store: Record<string, SessionEntry>;

686705

storePath: string;

@@ -2180,6 +2199,37 @@ function addSessionListSearchModelFields(

21802199

}

21812200

}

218222012202+

function matchesSessionListSearch(fields: Array<string | undefined>, search: string): boolean {

2203+

return fields.some(

2204+

(field) => typeof field === "string" && normalizeLowercaseStringOrEmpty(field).includes(search),

2205+

);

2206+

}

2207+2208+

function appendStoredSessionModelSearchFields(

2209+

fields: Array<string | undefined>,

2210+

entry?: SessionEntry,

2211+

) {

2212+

const provider = normalizeOptionalString(entry?.modelProvider);

2213+

const model = normalizeOptionalString(entry?.model);

2214+

fields.push(provider, model);

2215+

if (provider && model) {

2216+

fields.push(`${provider}/${model}`);

2217+

}

2218+

}

2219+2220+

function shouldResolveDerivedSessionModelSearchFields(search: string): boolean {

2221+

// Agent session-key searches are already covered by cheap key fields; do not

2222+

// hydrate model metadata for every non-matching row on hot TUI lookups.

2223+

return !search.startsWith("agent:");

2224+

}

2225+2226+

function resolveSessionListRowContext(params: {

2227+

rowContext?: SessionListRowContext;

2228+

getRowContext?: SessionListRowContextProvider;

2229+

}): SessionListRowContext | undefined {

2230+

return params.rowContext ?? params.getRowContext?.();

2231+

}

2232+21832233

function resolveSessionListSearchModelFields(params: {

21842234

cfg: OpenClawConfig;

21852235

key: string;

@@ -2356,9 +2406,9 @@ function filterSessionEntries(params: {

23562406

opts: SessionsListParams;

23572407

now: number;

23582408

rowContext?: SessionListRowContext;

2409+

getRowContext?: SessionListRowContextProvider;

23592410

}): SessionEntryPair[] {

23602411

const { cfg, store, opts, now } = params;

2361-

const rowContext = params.rowContext;

23622412

const includeGlobal = opts.includeGlobal === true;

23632413

const includeUnknown = opts.includeUnknown === true;

23642414

const spawnedBy = typeof opts.spawnedBy === "string" ? opts.spawnedBy : "";

@@ -2403,8 +2453,9 @@ function filterSessionEntries(params: {

24032453

if (key === "unknown" || key === "global") {

24042454

return false;

24052455

}

2406-

const latest = rowContext

2407-

? rowContext.subagentRuns.getDisplaySubagentRun(key)

2456+

const filterRowContext = resolveSessionListRowContext(params);

2457+

const latest = filterRowContext

2458+

? filterRowContext.subagentRuns.getDisplaySubagentRun(key)

24082459

: getSessionDisplaySubagentRunByChildSessionKey(key);

24092460

if (latest) {

24102461

const latestControllerSessionKey =

@@ -2413,8 +2464,8 @@ function filterSessionEntries(params: {

24132464

return (

24142465

latestControllerSessionKey === spawnedBy &&

24152466

shouldKeepSubagentRunChildLink(latest, {

2416-

activeDescendants: rowContext

2417-

? rowContext.subagentRuns.countActiveDescendantRuns(key)

2467+

activeDescendants: filterRowContext

2468+

? filterRowContext.subagentRuns.countActiveDescendantRuns(key)

24182469

: countActiveDescendantRuns(key),

24192470

now,

24202471

})

@@ -2434,21 +2485,29 @@ function filterSessionEntries(params: {

2434248524352486

if (search) {

24362487

entries = entries.filter(([key, entry]) => {

2437-

const fields = [

2488+

const cheapFields = [

24382489

resolveSessionListSearchDisplayName(key, entry),

24392490

entry?.label,

24402491

entry?.subject,

24412492

entry?.sessionId,

24422493

key,

2443-

...resolveSessionListSearchModelFields({

2494+

];

2495+

appendStoredSessionModelSearchFields(cheapFields, entry);

2496+

if (matchesSessionListSearch(cheapFields, search)) {

2497+

return true;

2498+

}

2499+

if (!shouldResolveDerivedSessionModelSearchFields(search)) {

2500+

return false;

2501+

}

2502+

const searchRowContext = resolveSessionListRowContext(params);

2503+

return matchesSessionListSearch(

2504+

resolveSessionListSearchModelFields({

24442505

cfg,

24452506

key,

24462507

entry,

2447-

rowContext,

2508+

rowContext: searchRowContext,

24482509

}),

2449-

];

2450-

return fields.some(

2451-

(f) => typeof f === "string" && normalizeLowercaseStringOrEmpty(f).includes(search),

2510+

search,

24522511

);

24532512

});

24542513

}

@@ -2467,6 +2526,7 @@ function selectSessionEntries(params: {

24672526

opts: SessionsListParams;

24682527

now: number;

24692528

rowContext?: SessionListRowContext;

2529+

getRowContext?: SessionListRowContextProvider;

24702530

defaultLimit?: number;

24712531

}): SessionEntrySelection {

24722532

const filtered = filterSessionEntries(params);

@@ -2494,6 +2554,7 @@ export function filterAndSortSessionEntries(params: {

24942554

opts: SessionsListParams;

24952555

now: number;

24962556

rowContext?: SessionListRowContext;

2557+

getRowContext?: SessionListRowContextProvider;

24972558

}): [string, SessionEntry][] {

24982559

return selectSessionEntries(params).entries;

24992560

}

@@ -2523,20 +2584,30 @@ export function listSessionsFromStore(params: {

25232584

store,

25242585

opts,

25252586

now,

2526-

rowContext:

2587+

getRowContext:

25272588

hasSpawnedByFilter || Boolean(normalizeOptionalString(opts.search))

2528-

? getRowContext()

2589+

? getRowContext

25292590

: undefined,

25302591

defaultLimit: SESSIONS_LIST_DEFAULT_LIMIT,

25312592

});

25322593

const { entries, totalCount, limitApplied, offset, nextOffset, hasMore } = selection;

2594+

const fullRowContext =

2595+

rowContext || hasSpawnedByFilter || entries.length > SESSIONS_LIST_YIELD_BATCH_SIZE

2596+

? getRowContext()

2597+

: undefined;

2598+

const sharedRowContext =

2599+

fullRowContext ??

2600+

(entries.length > 1 ? buildSessionListRowMetadataContext({ now }) : undefined);

2533260125342602

const sessions = entries.map(([key, entry], index) => {

25352603

const includeTranscriptFields = index < sessionListTranscriptFieldRows;

25362604

const rowAgentId =

25372605

key === "global" && typeof opts.agentId === "string"

25382606

? normalizeAgentId(opts.agentId)

25392607

: undefined;

2608+

const storeChildSessionsByKey =

2609+

fullRowContext?.storeChildSessionsByKey ??

2610+

buildSingleRowStoreChildSessionsByKey({ store, storePath, key, now });

25402611

return buildGatewaySessionRow({

25412612

cfg,

25422613

storePath,

@@ -2549,8 +2620,8 @@ export function listSessionsFromStore(params: {

25492620

includeDerivedTitles: includeTranscriptFields && includeDerivedTitles,

25502621

includeLastMessage: includeTranscriptFields && includeLastMessage,

25512622

transcriptUsageMaxBytes: sessionListTranscriptUsageMaxBytes,

2552-

storeChildSessionsByKey: getRowContext().storeChildSessionsByKey,

2553-

rowContext: getRowContext(),

2623+

storeChildSessionsByKey,

2624+

rowContext: sharedRowContext,

25542625

});

25552626

});

25562627

@@ -2603,13 +2674,20 @@ export async function listSessionsFromStoreAsync(params: {

26032674

store,

26042675

opts,

26052676

now,

2606-

rowContext:

2677+

getRowContext:

26072678

hasSpawnedByFilter || Boolean(normalizeOptionalString(opts.search))

2608-

? getRowContext()

2679+

? getRowContext

26092680

: undefined,

26102681

defaultLimit: SESSIONS_LIST_DEFAULT_LIMIT,

26112682

});

26122683

const { entries, totalCount, limitApplied, offset, nextOffset, hasMore } = selection;

2684+

const fullRowContext =

2685+

rowContext || hasSpawnedByFilter || entries.length > SESSIONS_LIST_YIELD_BATCH_SIZE

2686+

? getRowContext()

2687+

: undefined;

2688+

const sharedRowContext =

2689+

fullRowContext ??

2690+

(entries.length > 1 ? buildSessionListRowMetadataContext({ now }) : undefined);

2613269126142692

const sessions: GatewaySessionRow[] = [];

26152693

for (let i = 0; i < entries.length; i++) {

@@ -2619,6 +2697,9 @@ export async function listSessionsFromStoreAsync(params: {

26192697

key === "global" && typeof opts.agentId === "string"

26202698

? normalizeAgentId(opts.agentId)

26212699

: undefined;

2700+

const storeChildSessionsByKey =

2701+

fullRowContext?.storeChildSessionsByKey ??

2702+

buildSingleRowStoreChildSessionsByKey({ store, storePath, key, now });

26222703

const row = buildGatewaySessionRow({

26232704

cfg,

26242705

storePath,

@@ -2631,8 +2712,8 @@ export async function listSessionsFromStoreAsync(params: {

26312712

includeDerivedTitles: false,

26322713

includeLastMessage: false,

26332714

transcriptUsageMaxBytes: sessionListTranscriptUsageMaxBytes,

2634-

storeChildSessionsByKey: getRowContext().storeChildSessionsByKey,

2635-

rowContext: getRowContext(),

2715+

storeChildSessionsByKey,

2716+

rowContext: sharedRowContext,

26362717

skipTranscriptUsageFallback: true,

26372718

lightweightListRow: true,

26382719

});