fix(copaw): remap local provider URLs in containers - #1014
Open
RerankerGuo wants to merge 3 commits into
Open
Conversation
Contributor
📊 CI Metrics ReportSummary
By Role
Per-Test Breakdown
Trends✅ 3 test(s) improved (fewer LLM calls) Generated by HiClaw CI on 2026-07-13 14:09:34 UTC |
RerankerGuo
force-pushed
the
fix/issue-907-copaw-local-provider-url
branch
from
July 10, 2026 02:16
56c2d86 to
690b7ce
Compare
RerankerGuo
force-pushed
the
fix/issue-907-copaw-local-provider-url
branch
from
July 13, 2026 13:23
690b7ce to
a95c8c4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
localhostor127.0.0.1tohost.docker.internalwhen the CoPaw bridge runs inside a container.:8080gateway port remap behavior for non-container runs.changelog/current.md.Why
Fixes #907. Users can pass host-side/local-model curl checks while Matrix chat still fails because the runtime provider URL is written as
localhostinside the container. In that context,localhostpoints to the CoPaw container, not the host model service.Temporary dependencies
This branch is temporarily stacked on #985 and #1015. Its previous CI failures
were the SHARD_A Bob-creation race fixed by #985 and the SHARD_D/test-21 Team
Room coordination failure fixed by #1015. Both dependency PRs now pass all 10
integration matrix jobs.
Relative to #1015, this PR still changes only:
changelog/current.mdcopaw/src/copaw_worker/bridge.pycopaw/tests/test_bridge.pyAfter the dependency PRs merge, this PR automatically reduces to those files.
Validation
git diff --checkagainst test: nudge team leader to coordinate in team room #1015python3 -m py_compile copaw/src/copaw_worker/bridge.py copaw/tests/test_bridge.pylocalhostand127.0.0.1remap tohost.docker.internalin containers while non-local hosts remain unchangedPYTHONPATH=copaw/src python3 -m pytest copaw/tests/test_bridge.py -qremains blocked during collection by the branch's pre-existing stale import ofbridge_controller_to_copaw, before reaching the new test.