GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — fix(providers): honor saved baseUrl for alibaba-token-plan via override + choices by alexanderxcmo · Pull Request #459 · lidge-jun/opencodex Conversation
Contributor
Fixes #457 ProblemThe After the July provider migration merged user configs into the id FixMirror the existing
Default resolution is unchanged when no user Tests
Notes
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions…de + choices The alibaba-token-plan registry entry (Beijing) lacked allowBaseUrlOverride, so the router silently discarded any user-saved baseUrl and forced the Beijing endpoint. Configs migrated to this id with an international (ap-southeast-1) baseUrl were routed to cn-beijing and failed with 401. Give the entry allowBaseUrlOverride + baseUrlChoices (beijing default, intl/Singapore, custom), mirroring the existing qwen-cloud pattern. Default resolution is unchanged when no user baseUrl is set. Fixes lidge-jun#457
Contributor
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codex ReviewHere are some automated review suggestions for this pull request. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
When the new Useful? React with 👍 / 👎.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
For a migrated configuration whose saved Useful? React with 👍 / 👎.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Wibias
marked this pull request as draft
Contributor
The revert carries no stated reason, but what replaced it is legible in the code: region became a separate registry id. This PR's Also worth noting: your own confirmed workaround in #457 — renaming the id to On the migration: I couldn't find it, and I'd genuinely like to be wrongThe premise that a shipped migration merged user providers into
You clearly saw that file, so the likeliest explanation is that I'm searching for the wrong thing. If you still have The part that seems unambiguous either wayIndependent of how region ends up being modelled: I'm happy to put that up as a small separate PR so it doesn't tangle with the policy question here — but it's your finding and your issue, so just say if you'd rather own it and I'll stay out of the way. All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Owner
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Owner
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Owner
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
lidge-jun
added a commit
that referenced
this pull request
통합(dev push 완료): #437 803807a, #460 74ddd96, #431 82a47db, #405 be16c1d, #468 후속 테스트 bcaf029. close: 통합 4건 + 통합 없이 1건(#459, 설계 충돌). #457은 OPEN 유지. 이슈 close 0건 — dev에서 고쳐졌는데 안 닫힌 이슈가 없었다. 무효화: WP4(#466)와 WP6(#467)은 동료가 직접 머지했고, 우리 분석이 지적한 결함을 동료 커밋이 같은 방향으로 해소했다. 보안 보류 5건에 신규 발견 게시: #429 재분류, #355 OAuth 토큰 목적지, #424 유료 브리지 기본 ON, #408 설치 락 해제, #403 4분할 요청. A-gate는 사이클마다 3~5라운드를 돌았다. 반복된 원인은 계획서에 테스트나 코드를 적으면서 실물 소스를 확인하지 않은 것이었다.
lidge-jun
added a commit
that referenced
this pull request
… at diff level Two issues reproduce against current dev and get implementation phases; the rest are recorded with why they are not code fixes this unit can close. The roadmap went through six adversarial audit rounds before any code, and two findings changed the shape of the work rather than its details: - #477's suggested fix (delete the early return in writeJournal) would snapshot an already-injected config as the user's original, making opencodex routing survive 'ocx stop'. The guard is load-bearing; ownership is now checked from the bytes being journaled instead of trusted from the caller. - #457's obvious fix (allowBaseUrlOverride on the Beijing entry) shipped once, was reverted twice, and was refused again when PR #459 closed on 2026-07-26. Beijing and International are deliberately separate providers, so the repair is a config migration, not an override flag. The migration is split: the provider-id reference rewriter is its own phase, because a missed reference silently orphans a setting or invalidates a combo target, which makes loadConfig discard the whole config. Also recorded: an integrity rule added under audit pressure would have thrown out of startServer and refused to boot the proxy after a legitimate config edit. It was removed in favour of copy-verify-link publication.
lidge-jun
added a commit
that referenced
this pull request
Closes #457. A provider rename left users with `alibaba-token-plan` holding an international (ap-southeast-1) endpoint. That entry is pinned to cn-beijing and takes no baseUrl override, so the router discards the saved URL and sends an international key to Beijing: 401 on every request. #464 made the discard visible; this makes it recoverable. The obvious fix is not available. Giving the Beijing entry `allowBaseUrlOverride` shipped once, was backed out twice, and was refused again when PR #459 closed on 2026-07-26: `alibaba-token-plan` and `alibaba-token-plan-intl` are deliberately separate products with different model lists, context windows, modality maps and dashboards. A URL override carries none of that, so the endpoint would work while the catalog described the wrong product — and the provider's key would become sendable to whatever destination happened to be saved. The maintainer named the right shape when closing that PR: a migration, not a flag. So the entry moves to the id whose registry entry actually serves its endpoint. The destination is built with `providerConfigSeed`, the same function `ocx provider add` uses, so the migrated row is indistinguishable from one created against the international provider directly; only credentials and genuinely user-owned fields are overlaid. A user-chosen `defaultModel` survives only if the destination can serve it. Every reference to the old id is re-pointed through `rewriteProviderReferences`. The migration refuses rather than guesses in two cases: when the destination provider row already exists, and when the rewrite reports an occupied destination key. Merging two credential sets or two context caps is a user decision. A pre-migration snapshot is taken first. Relying on the OpenAI tier backup was considered and rejected: it only writes when its own projection changes, which is not the common path, so a config already at tier v2 would migrate with no rollback point at all. The snapshot is copy-verify-link — exclusive creation alone would let a crash mid-copy leave a truncated file that the next run accepts as valid. An existing snapshot is reused as-is rather than validated against the current config: that check would refuse to boot the proxy after a legitimate edit following an aborted run, and a safety net must not become the thing that stops the product. Fail-closed on a backup write failure: no rollback point, no credential rewrite. 15 tests across three files.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
통합(dev push 완료): lidge-jun#437 5187368, lidge-jun#460 262a90a, lidge-jun#431 a376788, lidge-jun#405 eca9b92, lidge-jun#468 후속 테스트 8f6cbcc. close: 통합 4건 + 통합 없이 1건(lidge-jun#459, 설계 충돌). #457은 OPEN 유지. 이슈 close 0건 — dev에서 고쳐졌는데 안 닫힌 이슈가 없었다. 무효화: WP4(lidge-jun#466)와 WP6(lidge-jun#467)은 동료가 직접 머지했고, 우리 분석이 지적한 결함을 동료 커밋이 같은 방향으로 해소했다. 보안 보류 5건에 신규 발견 게시: lidge-jun#429 재분류, lidge-jun#355 OAuth 토큰 목적지, lidge-jun#424 유료 브리지 기본 ON, lidge-jun#408 설치 락 해제, lidge-jun#403 4분할 요청. A-gate는 사이클마다 3~5라운드를 돌았다. 반복된 원인은 계획서에 테스트나 코드를 적으면서 실물 소스를 확인하지 않은 것이었다.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
… at diff level Two issues reproduce against current dev and get implementation phases; the rest are recorded with why they are not code fixes this unit can close. The roadmap went through six adversarial audit rounds before any code, and two findings changed the shape of the work rather than its details: - lidge-jun#477's suggested fix (delete the early return in writeJournal) would snapshot an already-injected config as the user's original, making opencodex routing survive 'ocx stop'. The guard is load-bearing; ownership is now checked from the bytes being journaled instead of trusted from the caller. - lidge-jun#457's obvious fix (allowBaseUrlOverride on the Beijing entry) shipped once, was reverted twice, and was refused again when PR lidge-jun#459 closed on 2026-07-26. Beijing and International are deliberately separate providers, so the repair is a config migration, not an override flag. The migration is split: the provider-id reference rewriter is its own phase, because a missed reference silently orphans a setting or invalidates a combo target, which makes loadConfig discard the whole config. Also recorded: an integrity rule added under audit pressure would have thrown out of startServer and refused to boot the proxy after a legitimate config edit. It was removed in favour of copy-verify-link publication.
agentHits
pushed a commit
to agentHits/opencodex
that referenced
this pull request
Closes lidge-jun#457. A provider rename left users with `alibaba-token-plan` holding an international (ap-southeast-1) endpoint. That entry is pinned to cn-beijing and takes no baseUrl override, so the router discards the saved URL and sends an international key to Beijing: 401 on every request. lidge-jun#464 made the discard visible; this makes it recoverable. The obvious fix is not available. Giving the Beijing entry `allowBaseUrlOverride` shipped once, was backed out twice, and was refused again when PR lidge-jun#459 closed on 2026-07-26: `alibaba-token-plan` and `alibaba-token-plan-intl` are deliberately separate products with different model lists, context windows, modality maps and dashboards. A URL override carries none of that, so the endpoint would work while the catalog described the wrong product — and the provider's key would become sendable to whatever destination happened to be saved. The maintainer named the right shape when closing that PR: a migration, not a flag. So the entry moves to the id whose registry entry actually serves its endpoint. The destination is built with `providerConfigSeed`, the same function `ocx provider add` uses, so the migrated row is indistinguishable from one created against the international provider directly; only credentials and genuinely user-owned fields are overlaid. A user-chosen `defaultModel` survives only if the destination can serve it. Every reference to the old id is re-pointed through `rewriteProviderReferences`. The migration refuses rather than guesses in two cases: when the destination provider row already exists, and when the rewrite reports an occupied destination key. Merging two credential sets or two context caps is a user decision. A pre-migration snapshot is taken first. Relying on the OpenAI tier backup was considered and rejected: it only writes when its own projection changes, which is not the common path, so a config already at tier v2 would migrate with no rollback point at all. The snapshot is copy-verify-link — exclusive creation alone would let a crash mid-copy leave a truncated file that the next run accepts as valid. An existing snapshot is reused as-is rather than validated against the current config: that check would refuse to boot the proxy after a legitimate edit following an aborted run, and a safety net must not become the thing that stops the product. Fail-closed on a backup write failure: no rollback point, no credential rewrite. 15 tests across three files.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
bug
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. | |||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |