Repository navigation
Conversation
…OS Big Sur On macOS Big Sur, net.createServer().listen(0, '::1') never fires 'listening' or 'error' events, causing the gateway to hang indefinitely at startup while resolving bind hosts. This fix adds a 2-second timeout with proper resolve-once guards so that if the OS never confirms bindability, we fall back to false instead of hanging forever. Fixes openclaw#80920
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Close as superseded: the same linked billing-copy bug is already covered by #80895, which is narrower, has sufficient real-behavior proof, and threads active auth profile mode through more of the affected runtime path. This branch also still has a correctness gap from using only runtime auth state and carries unrelated config/gateway commits. So I’m closing this here and keeping the remaining discussion on the canonical linked item. Review detailsBest possible solution: Use the narrower canonical fix in #80895 or a maintainer replacement that carries the active auth profile mode through all user-facing billing-error formatting paths, and keep unrelated config/gateway work split. Do we have a high-confidence way to reproduce the issue? Yes at source level: current main formats billing-shaped assistant errors with API-key-only copy, while the runner/auth controller already has credential-mode information that is not passed to the formatter. I did not run a live Anthropic Max OAuth or Telegram path in this read-only review. Is this the best way to solve the issue? No: the direction is right, but this branch uses only runtimeAuthState and misses normal OAuth/token paths where runtimeAuthState is null. The better solution is the narrower canonical PR that uses the active auth profile mode across formatter, failover, payload, attempt, and lifecycle surfaces. Security review: Security review cleared: No concrete security or supply-chain regression was found in the diff. What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 4272ce15978d. |
- now accepts an optional parameter. - When , messages refer to "account limit" instead of "API key has run out of credits". - Pipe through (fallback branch) to . - Adds a targeted test verifying OAuth wording. Closes openclaw#80877
dbe6845 to
561360f
Compare
Summary
formatBillingErrorMessagewas misfiring for Anthropic Max OAuth: it broadcast "top up your API key" even when there was no API key.Changes
formatBillingErrorMessagenow accepts an optionalauthModeparameter.authMode === \"oauth\", the message refers to the account limit instead of the API key balance.authModeis plumbed throughassistant-failover.tsso the fallback branch uses the correct wording.Verification
pnpm test src/agents/pi-embedded-helpers.formatassistanterrortext.test.ts— 60 tests passed (includes new OAuth-specific assertion).pnpm test src/agents/pi-embedded-runner/run/assistant-failover.test.ts— 11 tests passed.pnpm test src/agents/pi-embedded-runner/run/payloads.errors.test.ts— 39 tests passed.pnpm test src/agents/pi-embedded-helpers/errors.test.ts— 11 tests passed.Closes #80877