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

推荐订阅源

IT之家
IT之家
Last Week in AI
Last Week in AI
博客园_首页
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 叶小钗
大猫的无限游戏
大猫的无限游戏
人人都是产品经理
人人都是产品经理
V
Visual Studio Blog
宝玉的分享
宝玉的分享
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
月光博客
月光博客
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
量子位
博客园 - 聂微东
S
SegmentFault 最新的问题
博客园 - 司徒正美
罗磊的独立博客
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
美团技术团队
小众软件
小众软件
Jina AI
Jina AI

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
Preserve queued Telegram topic followups (#83827) · openc...
VACInc · 2026-05-19 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -53,6 +53,7 @@ Docs: https://docs.openclaw.ai

5353

- Memory/search: scan the JS-side fallback vector path (used when the sqlite-vec index is unavailable or has a mismatched dimension) in bounded rowid batches and yield to the event loop between batches so large chunk tables can no longer pin the Node.js main thread for multi-second windows. Also keeps the SQL prepared statement rooted in a local so node:sqlite cannot finalize it mid-scan under heap pressure. Fixes #81172. Thanks @dev23xyz-oss.

5454

- Memory Wiki: preserve fs-safe diagnostics when bridge source page writes fail for non-symlink filesystem safety reasons, so directory collisions are reported with the underlying error code. (#83776) Thanks @TurboTheTurtle.

5555

- Telegram: keep forum topics from blocking sibling topic traffic by routing inbound serialization, media/text buffers, and account API queues on topic-aware lanes. (#83829)

56+

- Telegram: keep queued forum-topic follow-up messages from inheriting superseded source abort signals, so later same-topic user turns can still run and reply after an active turn is replaced. (#83827) Thanks @VACInc.

5657

- CLI/update: bypass npm freshness filters consistently during managed package and plugin installs so freshly published release plugins remain installable. Thanks @jalehman.

5758

- CLI/update: guide root-owned npm install EACCES recovery by stopping the managed Gateway before manual package replacement, then reinstalling and restarting the service. Fixes #83747. (#83757) Thanks @brokemac79.

5859

- Agents/subagents: keep collect-mode announce queues batching unresolved-origin items with compatible same-route messages and resume collection after a true cross-channel drain when a later compatible batch remains. Fixes #83577.

Original file line numberDiff line numberDiff line change

@@ -942,6 +942,35 @@ describe("createFollowupRunner runtime config", () => {

942942

expect(call.abortSignal).toBe(abortController.signal);

943943

});

944944
945+

it("does not inherit source abort signals for queued user followups", async () => {

946+

const sourceAbortController = new AbortController();

947+

sourceAbortController.abort();

948+

runEmbeddedPiAgentMock.mockResolvedValueOnce({

949+

payloads: [],

950+

meta: {},

951+

});

952+

const runner = createFollowupRunner({

953+

opts: { abortSignal: sourceAbortController.signal },

954+

typing: createMockTypingController(),

955+

typingMode: "instant",

956+

defaultModel: "openai/gpt-5.4",

957+

});

958+
959+

await runner(

960+

createQueuedRun({

961+

currentInboundEventKind: "user_request",

962+

run: {

963+

provider: "openai",

964+

model: "gpt-5.4",

965+

sourceReplyDeliveryMode: "message_tool_only",

966+

},

967+

}),

968+

);

969+
970+

const call = requireLastMockCallArg(runEmbeddedPiAgentMock, "run embedded pi agent");

971+

expect(call.abortSignal).toBeUndefined();

972+

});

973+
945974

it("keeps queued delivery correlations active during followup agent runs", async () => {

946975

const events: string[] = [];

947976

runEmbeddedPiAgentMock.mockImplementationOnce(async () => {

Original file line numberDiff line numberDiff line change

@@ -419,7 +419,7 @@ export function createFollowupRunner(params: {

419419

sessionId: run.sessionId,

420420

sessionKey: replySessionKey ?? "",

421421

resetTriggered: false,

422-

upstreamAbortSignal: queued.abortSignal ?? opts?.abortSignal,

422+

upstreamAbortSignal: queued.abortSignal,

423423

});

424424

const runId = crypto.randomUUID();

425425

const shouldSurfaceToControlUi = isInternalMessageChannel(

@@ -654,7 +654,7 @@ export function createFollowupRunner(params: {

654654

agentAccountId: run.agentAccountId,

655655

senderIsOwner: run.senderIsOwner,

656656

disableTools: opts?.disableTools,

657-

abortSignal: queued.abortSignal ?? opts?.abortSignal,

657+

abortSignal: queued.abortSignal,

658658

},

659659

transformResult: (rawResult) =>

660660

isRoomEventCliRun && rawResult.meta.agentMeta

@@ -742,7 +742,7 @@ export function createFollowupRunner(params: {

742742

bashElevated: run.bashElevated,

743743

timeoutMs: run.timeoutMs,

744744

runId,

745-

abortSignal: queued.abortSignal ?? opts?.abortSignal,

745+

abortSignal: queued.abortSignal,

746746

images: queuedImages,

747747

imageOrder: queuedImageOrder,

748748

allowTransientCooldownProbe: runOptions?.allowTransientCooldownProbe,

Original file line numberDiff line numberDiff line change

@@ -1593,6 +1593,7 @@ describe("runPreparedReply media-only handling", () => {

15931593

it("queues active room events as followups instead of steering fake prompts", async () => {

15941594

const queueSettings = await import("./queue/settings-runtime.js");

15951595

const piRuntime = await import("../../agents/pi-embedded.runtime.js");

1596+

const abortController = new AbortController();

15961597

vi.mocked(queueSettings.resolveQueueSettings).mockReturnValueOnce({

15971598

mode: "steer",

15981599

debounceMs: 500,

@@ -1610,6 +1611,7 @@ describe("runPreparedReply media-only handling", () => {

16101611
16111612

await runPreparedReply(

16121613

baseParams({

1614+

opts: { abortSignal: abortController.signal },

16131615

ctx: {

16141616

Body: "ambient",

16151617

RawBody: "ambient",

@@ -1638,9 +1640,58 @@ describe("runPreparedReply media-only handling", () => {

16381640

expect(call.resolvedQueue.mode).toBe("steer");

16391641

expect(call.followupRun.prompt).toBe("[OpenClaw room event]");

16401642

expect(call.followupRun.currentInboundEventKind).toBe("room_event");

1643+

expect(call.followupRun.abortSignal).toBe(abortController.signal);

16411644

expect(call.followupRun.currentInboundContext?.text).toContain("Current event:");

16421645

});

16431646
1647+

it("detaches queued user requests from superseded source abort signals", async () => {

1648+

const queueSettings = await import("./queue/settings-runtime.js");

1649+

const piRuntime = await import("../../agents/pi-embedded.runtime.js");

1650+

const abortController = new AbortController();

1651+

vi.mocked(queueSettings.resolveQueueSettings).mockReturnValueOnce({

1652+

mode: "collect",

1653+

debounceMs: 500,

1654+

cap: 20,

1655+

dropPolicy: "summarize",

1656+

});

1657+

vi.mocked(piRuntime.resolveActiveEmbeddedRunSessionId)

1658+

.mockReturnValueOnce("active-session")

1659+

.mockReturnValueOnce("active-session");

1660+

vi.mocked(piRuntime.isEmbeddedPiRunActive).mockReturnValueOnce(true);

1661+

vi.mocked(piRuntime.isEmbeddedPiRunStreaming).mockReturnValueOnce(true);

1662+

vi.mocked(buildInboundUserContextPrefix).mockReturnValueOnce("user request context");

1663+
1664+

await runPreparedReply(

1665+

baseParams({

1666+

opts: { abortSignal: abortController.signal },

1667+

ctx: {

1668+

Body: "@bot keep this",

1669+

RawBody: "@bot keep this",

1670+

CommandBody: "@bot keep this",

1671+

Provider: "telegram",

1672+

Surface: "telegram",

1673+

ChatType: "group",

1674+

},

1675+

sessionCtx: {

1676+

Body: "@bot keep this",

1677+

BodyStripped: "@bot keep this",

1678+

Provider: "telegram",

1679+

Surface: "telegram",

1680+

ChatType: "group",

1681+

InboundEventKind: "user_request",

1682+

MessageSid: "994",

1683+

SenderName: "Alice",

1684+

},

1685+

}),

1686+

);

1687+
1688+

const call = requireLastRunReplyAgentCall();

1689+

expect(call.shouldFollowup).toBe(true);

1690+

expect(call.isActive).toBe(true);

1691+

expect(call.followupRun.currentInboundEventKind).toBe("user_request");

1692+

expect(call.followupRun.abortSignal).toBeUndefined();

1693+

});

1694+
16441695

it("queues active room events instead of interrupting active user requests", async () => {

16451696

const queueSettings = await import("./queue/settings-runtime.js");

16461697

const piRuntime = await import("../../agents/pi-embedded.runtime.js");

Original file line numberDiff line numberDiff line change

@@ -1044,12 +1044,14 @@ export async function runPreparedReply(

10441044

imageOrder: opts?.imageOrder,

10451045

}),

10461046

);

1047+

const queuedFollowupAbortSignal =

1048+

inboundEventKind === "room_event" ? opts?.abortSignal : undefined;

10471049

const followupRun = {

10481050

prompt: queuedBody,

10491051

transcriptPrompt: transcriptCommandBody,

10501052

currentInboundEventKind: inboundEventKind,

10511053

currentInboundContext,

1052-

abortSignal: opts?.abortSignal,

1054+

...(queuedFollowupAbortSignal ? { abortSignal: queuedFollowupAbortSignal } : {}),

10531055

deliveryCorrelations: opts?.queuedDeliveryCorrelations,

10541056

queuedLifecycle: opts?.queuedFollowupLifecycle,

10551057

messageId: sessionCtx.MessageSidFull ?? sessionCtx.MessageSid,