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

推荐订阅源

B
Blog RSS Feed
B
Blog
N
Netflix TechBlog - Medium
量子位
月光博客
月光博客
博客园_首页
博客园 - Franky
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
Hugging Face - Blog
Hugging Face - Blog
雷峰网
雷峰网
M
MIT News - Artificial intelligence
J
Java Code Geeks
大猫的无限游戏
大猫的无限游戏
D
DataBreaches.Net
腾讯CDC
Engineering at Meta
Engineering at Meta
云风的 BLOG
云风的 BLOG
L
LangChain Blog
GbyAI
GbyAI
IT之家
IT之家
Y
Y Combinator 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
fix: stop active turns reliably · openclaw/openclaw@b72f008
VACInc · 2026-05-16 · via Recent Commits to openclaw:main

@@ -1582,60 +1582,67 @@ function canRequesterAbortChatRun(

15821582

return false;

15831583

}

158415841585-

function resolveAuthorizedRunIdsForSession(params: {

1585+

function resolveAuthorizedRunsForSessionKeys(params: {

15861586

chatAbortControllers: Map<string, ChatAbortControllerEntry>;

1587-

sessionKey: string;

1587+

sessionKeys: Iterable<string>;

15881588

requester: ChatAbortRequester;

15891589

}) {

1590-

const authorizedRunIds: string[] = [];

1590+

const sessionKeys = new Set(

1591+

Array.from(params.sessionKeys, (sessionKey) => normalizeOptionalText(sessionKey)).filter(

1592+

(sessionKey): sessionKey is string => Boolean(sessionKey),

1593+

),

1594+

);

1595+

const authorizedRuns: Array<{ runId: string; sessionKey: string }> = [];

15911596

let matchedSessionRuns = 0;

15921597

for (const [runId, active] of params.chatAbortControllers) {

1593-

if (active.sessionKey !== params.sessionKey) {

1598+

if (!sessionKeys.has(active.sessionKey)) {

15941599

continue;

15951600

}

15961601

matchedSessionRuns += 1;

15971602

if (canRequesterAbortChatRun(active, params.requester)) {

1598-

authorizedRunIds.push(runId);

1603+

authorizedRuns.push({ runId, sessionKey: active.sessionKey });

15991604

}

16001605

}

16011606

return {

16021607

matchedSessionRuns,

1603-

authorizedRunIds,

1608+

authorizedRuns,

16041609

};

16051610

}

1606161116071612

async function abortChatRunsForSessionKeyWithPartials(params: {

16081613

context: GatewayRequestContext;

16091614

ops: ChatAbortOps;

16101615

sessionKey: string;

1616+

sessionKeyAliases?: string[];

1617+

persistSessionKey?: string;

16111618

abortOrigin: AbortOrigin;

16121619

stopReason?: string;

16131620

requester: ChatAbortRequester;

16141621

}): Promise<{ aborted: boolean; runIds: string[]; unauthorized: boolean }> {

1615-

const { matchedSessionRuns, authorizedRunIds } = resolveAuthorizedRunIdsForSession({

1622+

const { matchedSessionRuns, authorizedRuns } = resolveAuthorizedRunsForSessionKeys({

16161623

chatAbortControllers: params.context.chatAbortControllers,

1617-

sessionKey: params.sessionKey,

1624+

sessionKeys: [params.sessionKey, ...(params.sessionKeyAliases ?? [])],

16181625

requester: params.requester,

16191626

});

1620-

if (authorizedRunIds.length === 0) {

1627+

if (authorizedRuns.length === 0) {

16211628

return {

16221629

aborted: false,

16231630

runIds: [],

16241631

unauthorized: matchedSessionRuns > 0,

16251632

};

16261633

}

1627-

const authorizedRunIdSet = new Set(authorizedRunIds);

1634+

const authorizedRunIdSet = new Set(authorizedRuns.map((run) => run.runId));

16281635

const snapshots = collectSessionAbortPartials({

16291636

chatAbortControllers: params.context.chatAbortControllers,

16301637

chatRunBuffers: params.context.chatRunBuffers,

16311638

runIds: authorizedRunIdSet,

16321639

abortOrigin: params.abortOrigin,

16331640

});

16341641

const runIds: string[] = [];

1635-

for (const runId of authorizedRunIds) {

1642+

for (const { runId, sessionKey } of authorizedRuns) {

16361643

const res = abortChatRunById(params.ops, {

16371644

runId,

1638-

sessionKey: params.sessionKey,

1645+

sessionKey,

16391646

stopReason: params.stopReason,

16401647

});

16411648

if (res.aborted) {

@@ -1646,7 +1653,7 @@ async function abortChatRunsForSessionKeyWithPartials(params: {

16461653

if (res.aborted) {

16471654

await persistAbortedPartials({

16481655

context: params.context,

1649-

sessionKey: params.sessionKey,

1656+

sessionKey: params.persistSessionKey ?? params.sessionKey,

16501657

snapshots,

16511658

});

16521659

}

@@ -2054,6 +2061,8 @@ export const chatHandlers: GatewayRequestHandlers = {

20542061

context,

20552062

ops: createChatAbortOps(context),

20562063

sessionKey: rawSessionKey,

2064+

sessionKeyAliases: sessionKey === rawSessionKey ? undefined : [sessionKey],

2065+

persistSessionKey: sessionKey,

20572066

abortOrigin: "stop-command",

20582067

stopReason: "stop",

20592068

requester: resolveChatAbortRequester(client),