Skip to content

fix(models): preserve manual OpenAI visibility and row identity - #3685

Merged
lidge-jun merged 4 commits into
devfrom
codex/lane-b-01-visibility
Sep 5, 2026
Merged

lidge-jun merged 4 commits into
devfrom
codex/lane-b-01-visibility

Conversation

@lidge-jun

@lidge-jun lidge-jun commented Sep 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Configured manual OpenAI models currently duplicate the bare native dashboard row and fail visibility updates with HTTP 400. Preserve the manual routed selector, keep account-qualified native rows distinct, and retain canonical OpenAI controls even when all displayed rows are manual.

Carries the complete final diff of #3653 at 956eedac439922cf7645f130ef8432833e813a9a, including its final Fast-row assertions. The source author's commit identity and screenshot are preserved. Closes #3650 after verified dev integration.

Stack — merge bottom-up

Layer Branch Scope
1 (this PR) codex/lane-b-01-visibility Manual/native row identity and visibility
2 (planned) codex/lane-b-02-context Persistent context selections
3 (planned) codex/lane-b-03-ordering Go efforts and picker/spawn ordering
4 (planned) codex/lane-b-04-management Model hide/delete and default-only sync
5 (planned) codex/lane-b-05-fable Fable 1M selector persistence

The owner requested this stack. Source PR #3653 remains open until this replacement is verified on dev. The first layer also contains the shared documentation-only roadmap for the five carries.

Verification

  • Full binary-preserving source-diff applicability and git diff --check: passed.
  • Added mixed native/manual group toggles, atomic invalid-target rejection and real-loader/export replacement/disable/restoration regressions. Independent production/security review and final diff review: PASS. Exact-head hosted CI is pending execution.
  • Remote pinned Bun 1.4.0 typecheck, GUI full tests (1,457 pass) and GUI lint passed. The root full run recorded 19,343 pass / 14 skip / 1 initial bundled-runtime setup failure; after canonical package-runtime setup, the failing file passed 19/0. These are separate results, not a claim of a clean full run. Hosted full CI remains required.
  • Local test suites/typecheck/build are intentionally not run, per owner instruction. Hosted CI supplies full-suite evidence. Isolated macmini-cf GUI build and Astro build (425 pages) passed; current e556cc9 focused API/export tests: 40 pass, 0 fail; GUI grouping tests: 9 pass, 0 fail.
  • Contributor screenshot below is carried unchanged. An isolated real compiled GUI with synthetic API fixtures was also observed: manual native:false toggle, account-qualified row retention and manual-only native controls passed. Backend acceptance was verified separately by the remote management-route tests. GUI/server/docs file fingerprints match the built 42c448e and current e556cc9 heads.

Manual OpenAI model visibility — contributor screenshot

Checklist

  • Scope stays focused and avoids unrelated cleanup.
  • Docs or release notes were updated when needed.
  • Security-sensitive changes were reviewed for secrets, auth, and unsafe defaults.

Co-authored-by: Robin Bially [email protected]

t and others added 3 commits September 6, 2026 01:38
@coderabbitai

coderabbitai Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

✅ Deterministic PR hygiene checks passed.

@github-actions github-actions Bot added the bug Something isn't working label Sep 5, 2026
@lidge-jun

Copy link
Copy Markdown
Owner Author

리뷰 · 우선순위 73 / 80

이 PR은 수동(manual) OpenAI 모델이 대시보드에서 네이티브 bare 행과 겹치고, visibility 업데이트가 HTTP 400으로 실패하던 문제를 고칩니다. 지금 HEAD에서 listManagementModelRows는 native+routed+custom을 그대로 합치고, model-routes는 (provider === "openai") !== native 식으로 OpenAI non-native를 거의 막습니다. 그래서 customModels에 openai/gpt-5.5를 넣으면 피커에는 중복이 생기고, 수동 행 토글은 invalid target이 됩니다. 이 변경은 (1) bare native 행을 같은 namespaced custom이 있을 때 숨기고, (2) 설정된 OpenAI custom만 non-native 타깃으로 허용하며, (3) GUI에서 openai+forward이면 보이는 행이 전부 custom이어도 canonical OpenAI 카드(nativeProviderGroup)를 유지합니다. 원본 #3653 최종 diff carry이고, 이슈 #3650을 닫는 Lane B 1/5입니다.

테스트가 두껍습니다. 수동/네이티브 혼합 토글, provider-group 원자성(잘못된 trailing target이면 롤백), export/loader에서 manual 교체·비활성·제거 후 bare 복귀, Fast-row 관련 기존 회귀 유지. 스크린샷도 원본에서 옮겼습니다. plan 문서 벌크가 크지만 제품 코드는 model-rows.ts / model-routes.ts / models-groups.ts 몇 줄과 테스트입니다. dev 직행 베이스라 지금 HEAD(81871b3fa) 위에서 바로 리뷰 가능합니다. types/config 분할과 충돌하지 않습니다.

모델 피커/관리 API는 사용자가 매일 누르는 면입니다. manual OpenAI 행이 bare native와 겹치면 “껐는데 남는다/켜면 400” 같은 신뢰 손상이 납니다. Lane B가 catalog 정리를 다섯 층으로 나눈 이유가 바로 이 정체성 문제이고, 1층에서 export·loader·GUI 카드까지 한 번에 잠근 점이 좋습니다. Fast selector 기본값이 이미 dev에 있는 지금, manual/native 충돌을 먼저 치우는 순서가 맞습니다.

경로/심볼 src/server/management/model-rows.ts visibleNative - bare id는 customNamespaced에 있으면 빠지고, account-qualified(id.includes("/"))는 남습니다. 수동 행이 bare를 대체한다는 설명이 코드와 맞습니다.

경로/심볼 model-routes.ts configuredOpenAiCustom - OpenAI non-native는 설정에 있는 custom만 통과. 없는 id는 400.

경로 gui/src/models-groups.ts - forward auth OpenAI는 native 행이 없어도 nativeProviderGroup true. 카드 정체성 유지.

경로 테스트 export 단계 - native → manual namespaced → disabled → custom 제거 후 bare 복귀( disable 키 남아 있어도). 로더/클라이언트 export 계약이 잠깁니다.

경로 원본 #3653 / 이슈 #3650 - 둘 다 아직 열려 있습니다. 이 PR이 dev에 안착한 뒤 닫으세요.

경로 plan 020–050 - 상위 Lane B 로드맵입니다. 이 PR 머지 블로커는 아니고, 리뷰 범위는 visibility 레이어입니다.

메인테이너의 판단이 필요한 지점

  • plan 문서를 이 PR에 남길지, visibility 구현만 남길지
  • 브라우저 current-head 스크린샷을 머지 게이트로 요구할지(본문은 별도 추적)
  • 원본 #3653을 이 PR ready 시점에 바로 닫을지, CI 후 닫을지

너의 추천
사용자-보이는 버그이고 회귀가 탄탄합니다. hosted CI 초록·draft 해제 후 머지를 추천합니다. 머지 직후 #3653/#3650에 landed 처리를 하고, Lane B 2층(context)으로 넘어가면 됩니다.

이 댓글은 grok-bot이 작성했습니다

@lidge-jun
lidge-jun marked this pull request as ready for review September 5, 2026 17:22
@lidge-jun
lidge-jun requested a review from Ingwannu as a code owner September 5, 2026 17:22
@lidge-jun
lidge-jun merged commit 9115b17 into dev Sep 5, 2026
33 of 36 checks passed
@lidge-jun
lidge-jun deleted the codex/lane-b-01-visibility branch September 5, 2026 17:22
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-05T17:23:51.300392Z e556cc9 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants