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

推荐订阅源

D
DataBreaches.Net
小众软件
小众软件
腾讯CDC
Jina AI
Jina AI
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
The Cloudflare Blog
博客园 - 三生石上(FineUI控件)
V
Visual Studio Blog
Y
Y Combinator Blog
Engineering at Meta
Engineering at Meta
美团技术团队
U
Unit 42
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
WordPress大学
WordPress大学
N
Netflix TechBlog - Medium
Microsoft Security Blog
Microsoft Security Blog
L
LangChain Blog
罗磊的独立博客
aimingoo的专栏
aimingoo的专栏
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
G
Google Developers Blog
C
Check Point Blog
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements

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(android): shorten talk mode final wait · openclaw/ope...
obviyus · 2026-05-18 · via Recent Commits to openclaw:main

@@ -13,6 +13,7 @@ import kotlinx.coroutines.Job

1313

import kotlinx.coroutines.SupervisorJob

1414

import kotlinx.coroutines.launch

1515

import kotlinx.coroutines.test.advanceUntilIdle

16+

import kotlinx.coroutines.test.currentTime

1617

import kotlinx.coroutines.test.runTest

1718

import org.junit.Assert.assertEquals

1819

import org.junit.Assert.assertFalse

@@ -227,10 +228,24 @@ class TalkModeManagerTest {

227228

assertTrue(shouldAppendRealtimeCapturedFrame(manager, 4_800))

228229

}

229230231+

@Test

232+

@OptIn(ExperimentalCoroutinesApi::class)

233+

fun chatFinalWaitWithoutSubscribeUsesShortTimeout() =

234+

runTest {

235+

val manager = createManager(scope = this, supportsChatSubscribe = false)

236+237+

setPrivateField(manager, "pendingRunId", "run-missing-final")

238+

setPrivateField(manager, "pendingFinal", CompletableDeferred<Boolean>())

239+240+

assertFalse(manager.waitForChatFinal("run-missing-final"))

241+

assertEquals(6_000, currentTime)

242+

}

243+230244

private fun createManager(

231245

talkSpeakClient: TalkSpeechSynthesizing = TalkSpeakClient(),

232246

talkAudioPlayer: TalkAudioPlaying? = null,

233247

scope: CoroutineScope = CoroutineScope(SupervisorJob() + Dispatchers.Default),

248+

supportsChatSubscribe: Boolean = false,

234249

isConnected: () -> Boolean = { true },

235250

onStoppedByRelay: () -> Unit = {},

236251

): TalkModeManager {

@@ -249,7 +264,7 @@ class TalkModeManagerTest {

249264

context = app,

250265

scope = scope,

251266

session = session,

252-

supportsChatSubscribe = false,

267+

supportsChatSubscribe = supportsChatSubscribe,

253268

isConnected = isConnected,

254269

onStoppedByRelay = onStoppedByRelay,

255270

talkSpeakClient = talkSpeakClient,

@@ -258,12 +273,10 @@ class TalkModeManagerTest {

258273

}

259274260275

@Suppress("UNCHECKED_CAST")

261-

private fun playbackGeneration(manager: TalkModeManager) =

262-

readPrivateField(manager, "playbackGeneration") as AtomicLong

276+

private fun playbackGeneration(manager: TalkModeManager) = readPrivateField(manager, "playbackGeneration") as AtomicLong

263277264278

@Suppress("UNCHECKED_CAST")

265-

private fun realtimeToolRuns(manager: TalkModeManager) =

266-

readPrivateField(manager, "realtimeToolRuns") as MutableMap<String, RealtimeToolRun>

279+

private fun realtimeToolRuns(manager: TalkModeManager) = readPrivateField(manager, "realtimeToolRuns") as MutableMap<String, RealtimeToolRun>

267280268281

private fun setPrivateField(

269282

target: Any,