Skip to content

Settings contract: read the embedding picker's stacking classes inside cn() too - #12945

Merged
danielhanchen merged 1 commit into
mainfrom
ci/embedding-picker-stack-contract
Oct 7, 2026
Merged

danielhanchen merged 1 commit into
mainfrom
ci/embedding-picker-stack-contract

Conversation

@danielhanchen

Copy link
Copy Markdown
Member

Repo tests (CPU, studio) is red on main since 8f20a9f3db (#12875), and on every PR built on it (#12913, #12937, #12940):

FAILED tests/studio/test_settings_compact_overflow_contract.py::test_embedding_model_controls_stack_on_the_narrowest_viewports
AssertionError: assert ['studio/frontend/src/features/settings/components/documents-rag-section.tsx'] == []

Cause

The test, not #12875. The contract is that the row holding EmbeddingModelPicker stacks and fills under 360px. #12875 kept exactly those classes on the same row, but moved them from a literal className="..." into className={cn("max-[360px]:flex-col max-[360px]:items-stretch max-[360px]:gap-3", notLoaded && "items-end")} to add a conditional class. The test matched the whole className="..." attribute, so it read a row that still stacks as one that does not.

Fix

The check looks for the quoted class string itself, which is present both as a plain className and as an argument of cn(...). The width half of the contract (max-[360px]:w-full or max-[360px]:flex-1) is unchanged.

Verification

  • tests/studio/test_settings_compact_overflow_contract.py: 1 failed on main (c6cfbb71cc), 5 passed here.
  • Sabotage: dropping max-[360px]:flex-col from the row fails it, and so does dropping the max-[360px]:w-full widths.

@danielhanchen

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 7, 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-10-07T12:41:21.910200Z cae0a06 Manual request
🔒 Security Review ⚠️ Failed 2026-10-07T12:39:12.967439Z cae0a06 PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. What shall we delve into next?

Reviewed commit: cae0a06a83

ℹ️ 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".

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".

@danielhanchen
danielhanchen merged commit 26c86cb into main Oct 7, 2026
@danielhanchen
danielhanchen deleted the ci/embedding-picker-stack-contract branch October 7, 2026 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant