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

推荐订阅源

大猫的无限游戏
大猫的无限游戏
J
Java Code Geeks
小众软件
小众软件
D
Docker
腾讯CDC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
V2EX
博客园 - 叶小钗
GbyAI
GbyAI
Microsoft Azure Blog
Microsoft Azure Blog
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 【当耐特】
IT之家
IT之家
博客园 - 司徒正美
M
MIT News - Artificial intelligence
T
The Blog of Author Tim Ferriss
The GitHub Blog
The GitHub Blog
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LangChain Blog
阮一峰的网络日志
阮一峰的网络日志
C
Check Point 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
refactor(google-meet): dedupe bridge process cleanup · op...
vincentkoc · 2026-06-18 · via Recent Commits to openclaw:main

@@ -68,6 +68,34 @@ type SpawnFn = (

6868

options: { stdio: ["pipe" | "ignore", "pipe" | "ignore", "pipe" | "ignore"] },

6969

) => BridgeProcess;

707071+

function terminateBridgeProcess(proc: BridgeProcess, signal: NodeJS.Signals = "SIGTERM"): void {

72+

if (proc.killed && signal !== "SIGKILL") {

73+

return;

74+

}

75+

let exited = false;

76+

proc.on("exit", () => {

77+

exited = true;

78+

});

79+

try {

80+

proc.kill(signal);

81+

} catch {

82+

return;

83+

}

84+

if (signal === "SIGKILL") {

85+

return;

86+

}

87+

const timer = setTimeout(() => {

88+

if (!exited) {

89+

try {

90+

proc.kill("SIGKILL");

91+

} catch {

92+

// Process may have exited after the grace check.

93+

}

94+

}

95+

}, 1000);

96+

timer.unref?.();

97+

}

98+7199

export type ChromeRealtimeAudioBridgeHandle = {

72100

providerId: string;

73101

inputCommand: string[];

@@ -549,34 +577,6 @@ export async function startCommandAgentAudioBridge(params: {

549577

}),

550578

);

551579552-

const terminateProcess = (proc: BridgeProcess, signal: NodeJS.Signals = "SIGTERM") => {

553-

if (proc.killed && signal !== "SIGKILL") {

554-

return;

555-

}

556-

let exited = false;

557-

proc.on("exit", () => {

558-

exited = true;

559-

});

560-

try {

561-

proc.kill(signal);

562-

} catch {

563-

return;

564-

}

565-

if (signal === "SIGKILL") {

566-

return;

567-

}

568-

const timer = setTimeout(() => {

569-

if (!exited) {

570-

try {

571-

proc.kill("SIGKILL");

572-

} catch {

573-

// Process may have exited after the grace check.

574-

}

575-

}

576-

}, 1000);

577-

timer.unref?.();

578-

};

579-580580

const stop = async () => {

581581

if (stopped) {

582582

return;

@@ -595,8 +595,8 @@ export async function startCommandAgentAudioBridge(params: {

595595

final: true,

596596

payload: { meetingSessionId: params.meetingSessionId },

597597

});

598-

terminateProcess(inputProcess);

599-

terminateProcess(outputProcess);

598+

terminateBridgeProcess(inputProcess);

599+

terminateBridgeProcess(outputProcess);

600600

};

601601602602

const fail = (label: string) => (error: Error) => {

@@ -876,34 +876,6 @@ export async function startCommandRealtimeAudioBridge(params: {

876876

lastOutputPlayableUntilMs = suppression.lastOutputPlayableUntilMs;

877877

};

878878879-

const terminateProcess = (proc: BridgeProcess, signal: NodeJS.Signals = "SIGTERM") => {

880-

if (proc.killed && signal !== "SIGKILL") {

881-

return;

882-

}

883-

let exited = false;

884-

proc.on("exit", () => {

885-

exited = true;

886-

});

887-

try {

888-

proc.kill(signal);

889-

} catch {

890-

return;

891-

}

892-

if (signal === "SIGKILL") {

893-

return;

894-

}

895-

const timer = setTimeout(() => {

896-

if (!exited) {

897-

try {

898-

proc.kill("SIGKILL");

899-

} catch {

900-

// Process may have exited after the grace check.

901-

}

902-

}

903-

}, 1000);

904-

timer.unref?.();

905-

};

906-907879

const stop = async () => {

908880

if (stopped) {

909881

return;

@@ -917,10 +889,10 @@ export async function startCommandRealtimeAudioBridge(params: {

917889

`[google-meet] realtime voice bridge close ignored: ${formatErrorMessage(error)}`,

918890

);

919891

}

920-

terminateProcess(inputProcess);

921-

terminateProcess(outputProcess);

892+

terminateBridgeProcess(inputProcess);

893+

terminateBridgeProcess(outputProcess);

922894

if (bargeInInputProcess) {

923-

terminateProcess(bargeInInputProcess);

895+

terminateBridgeProcess(bargeInInputProcess);

924896

}

925897

};

926898

@@ -970,7 +942,7 @@ export async function startCommandRealtimeAudioBridge(params: {

970942

params.logger.debug?.(

971943

`[google-meet] cleared realtime audio output buffer by restarting playback command`,

972944

);

973-

terminateProcess(previousOutput, "SIGKILL");

945+

terminateBridgeProcess(previousOutput, "SIGKILL");

974946

};

975947

const writeOutputAudio = (audio: Buffer) => {

976948

try {