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

推荐订阅源

J
Java Code Geeks
T
Tailwind CSS Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
L
LangChain Blog
博客园 - 【当耐特】
I
InfoQ
腾讯CDC
人人都是产品经理
人人都是产品经理
H
Help Net Security
Y
Y Combinator Blog
B
Blog
博客园 - Franky
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
The Cloudflare Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
WordPress大学
WordPress大学
H
Hackread – Cybersecurity News, Data Breaches, AI and More
博客园 - 叶小钗
D
Docker
博客园 - 聂微东
B
Blog RSS Feed
G
Google Developers 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
chore: remove more unused internal helpers · openclaw/ope...
steipete · 2026-05-31 · via Recent Commits to openclaw:main
11

import crypto from "node:crypto";

22

import type { ClearSessionQueueResult } from "../auto-reply/reply/queue.js";

3-

import {

4-

resolveSubagentLabel,

5-

resolveSubagentTargetFromRuns,

6-

sortSubagentRuns,

7-

type SubagentTargetResolution,

8-

} from "../auto-reply/reply/subagents-utils.js";

3+

import { resolveSubagentLabel, sortSubagentRuns } from "../auto-reply/reply/subagents-utils.js";

94

import { resolveStorePath } from "../config/sessions/paths.js";

105

import { loadSessionStore, updateSessionStore } from "../config/sessions/store.js";

116

import type { SessionEntry } from "../config/sessions/types.js";

@@ -41,7 +36,6 @@ import { resolveInternalSessionKey, resolveMainSessionAlias } from "./tools/sess

41364237

export const DEFAULT_RECENT_MINUTES = 30;

4338

export const MAX_RECENT_MINUTES = 24 * 60;

44-

export const MAX_STEER_MESSAGE_CHARS = 4_000;

4539

const STEER_RATE_LIMIT_MS = 2_000;

4640

const STEER_ABORT_SETTLE_TIMEOUT_MS = 5_000;

4741

const SUBAGENT_REPLY_HISTORY_LIMIT = 50;

@@ -154,15 +148,8 @@ function ensureControllerOwnsRun(params: {

154148

return "Subagents can only control runs spawned from their own session.";

155149

}

156150157-

function isFinishedForSteerControl(

158-

entry: SubagentRunRecord,

159-

hasPendingDescendants: boolean,

160-

) {

161-

return (

162-

Boolean(entry.endedAt) &&

163-

entry.pauseReason !== "sessions_yield" &&

164-

!hasPendingDescendants

165-

);

151+

function isFinishedForSteerControl(entry: SubagentRunRecord, hasPendingDescendants: boolean) {

152+

return Boolean(entry.endedAt) && entry.pauseReason !== "sessions_yield" && !hasPendingDescendants;

166153

}

167154168155

async function killSubagentRun(params: {

@@ -717,30 +704,6 @@ export async function sendControlledSubagentMessage(params: {

717704

}

718705

}

719706720-

export function resolveControlledSubagentTarget(

721-

runs: SubagentRunRecord[],

722-

token: string | undefined,

723-

options?: { recentMinutes?: number; isActive?: (entry: SubagentRunRecord) => boolean },

724-

): SubagentTargetResolution {

725-

return resolveSubagentTargetFromRuns({

726-

runs,

727-

token,

728-

recentWindowMinutes: options?.recentMinutes ?? DEFAULT_RECENT_MINUTES,

729-

label: (entry) => resolveSubagentLabel(entry),

730-

aliases: (entry) => (entry.taskName ? [entry.taskName] : []),

731-

isActive: options?.isActive,

732-

errors: {

733-

missingTarget: "Missing subagent target.",

734-

invalidIndex: (value) => `Invalid subagent index: ${value}`,

735-

unknownSession: (value) => `Unknown subagent session: ${value}`,

736-

ambiguousLabel: (value) => `Ambiguous subagent label: ${value}`,

737-

ambiguousLabelPrefix: (value) => `Ambiguous subagent label prefix: ${value}`,

738-

ambiguousRunIdPrefix: (value) => `Ambiguous subagent run id prefix: ${value}`,

739-

unknownTarget: (value) => `Unknown subagent target: ${value}`,

740-

},

741-

});

742-

}

743-744707

export const testing = {

745708

setDepsForTest(

746709

overrides?: Partial<{