Repository navigation
Conversation
The status command isLocalBaseUrl only matched exact "127.0.0.1", missing model providers bound to other loopback addresses in the 127/8 range. This affects the openclaw status display. Co-Authored-By: Claude <[email protected]>
|
Thanks for the context here. I did a careful shell check against current Close as implemented on current main. The submitted raw So I’m closing this as already implemented rather than keeping a duplicate issue open. Review detailsBest possible solution: Keep the current-main canonical-IP implementation and do not merge the stale raw-prefix branch; release the existing fix through the normal next release train. Do we have a high-confidence way to reproduce the issue? No current-main reproduction remains: current main already recognizes canonical Is this the best way to solve the issue? No: the branch's string-prefix check is not the best fix because it accepts non-IP hostnames. Current main uses the shared canonical IPv4 and parsed-loopback predicates, which covers the full loopback range without widening classification beyond numeric addresses. Security review: Security review cleared: The branch changes only a local display/filter classifier and introduces no dependency, workflow, credential, permission, or supply-chain change. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against a8b114b3f315; fix evidence: commit e07d75dc091c, main fix timestamp 2026-08-02T00:30:21+08:00. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
ClawSweeper applied the proposed close for this PR.
|
What Problem This Solves
The
isLocalBaseUrlfunction in the model provider status command only matched exact"127.0.0.1", missing model providers bound to other loopback addresses like127.0.0.2:11434. This affects howopenclaw statusclassifies provider URLs as local or remote.Why This Change Was Made
Changed from
host === "127.0.0.1"tohost.startsWith("127."), covering the full 127.0.0.0/8 loopback range.0.0.0.0and::are intentionally preserved as local-classified wildcard binds (consistent with existing status display contract).Evidence
All 11 status command tests pass. The
isLocalBaseUrlfunction is a display classifier foropenclaw statusoutput — the wider range check means providers on127.0.0.2+ are now correctly displayed as local.🤖 Generated with Claude Code