mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 06:39:23 +02:00
fix: polish gateway restart diagnostics
This commit is contained in:
@@ -14,6 +14,7 @@ Docs: https://docs.openclaw.ai
|
||||
- Telegram/group chat: add opt-in `messages.groupChat.ambientTurns: "room_event"` handling so always-on ambient chatter can run as quiet room context and speak visibly only via the message tool. (#81317) Thanks @obviyus.
|
||||
- Codex/context engines: bind thread-bootstrap projection epochs to Codex app-server threads, carry redacted tool-result context into fresh threads, and rotate backend threads when projection state changes. (#82351) Thanks @jalehman.
|
||||
- Gateway: add opt-in restart trace logs for restart signal, active-work drain, close, next-start, ready, and memory spans. (#82396) Thanks @samzong.
|
||||
- Gateway/performance: split startup benchmark HTTP-listen timing from full gateway-ready timing and add post-bind plugin and sidecar diagnostics to restart-readiness traces. (#82603) Thanks @samzong.
|
||||
|
||||
### Fixes
|
||||
|
||||
|
||||
@@ -495,7 +495,7 @@ function classifyProbeErrorKind(error: unknown): string {
|
||||
return code.trim().toLowerCase();
|
||||
}
|
||||
const message = (error as { message?: unknown }).message;
|
||||
if (typeof message === "string" && /probe timeout/iu.test(message)) {
|
||||
if (typeof message === "string" && message.toLowerCase().includes("probe timeout")) {
|
||||
return "timeout";
|
||||
}
|
||||
const name = (error as { name?: unknown }).name;
|
||||
@@ -662,7 +662,7 @@ function collectStartupTrace(line: string, startupTrace: Record<string, number>)
|
||||
}
|
||||
|
||||
function classifyGatewayReadyLog(line: string): "gateway-ready" | "http-listen" | null {
|
||||
if (/\[gateway\] http server listening \(/.test(line)) {
|
||||
if (line.includes("[gateway] http server listening (")) {
|
||||
return "http-listen";
|
||||
}
|
||||
if (/\[gateway\] ready(?:\s*\(|\s*$)/.test(line)) {
|
||||
|
||||
Reference in New Issue
Block a user