Repository navigation
Studio: add /skills to open the Skills dialog (CS 146S) - #16717
Conversation
The dialog opens only from the Skills pill, which is hidden while Skills is off, as it is on a fresh install. Typing exactly /skills now opens it, like /rewind opens its picker. It is never sent and works with no model loaded.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Mount ChatSkillsDialog through useMemo like the other composer dialogs (unslothai#17504). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. 🚀 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". |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. More of your lovely PRs please. 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". |
|
The staging run of this branch fails The new |
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1b9ba257e5
ℹ️ 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".
| !hasAttachments && | ||
| !hasPendingAudio && | ||
| isSkillsCommand(composerText) |
There was a problem hiding this comment.
Exclude materializing native drops from the bare-command match
In the desktop app, submitting /skills while the first dropped file is still being read satisfies this condition: composer.attachments is still empty and pendingAudioName is unset, while the pending file is tracked by the hasMaterializingImageAttachments, hasMaterializingAudioAttachments, or hasMaterializingVideoAttachments flags. This branch consequently clears the draft and opens Skills instead of reaching shouldBlockSend() and parkIfWaitingOnAttachments(), swallowing the attachment-bearing submission. Include the materializing-attachment checks so these prompts retain the existing wait-and-send behavior.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 279c0bc: the /skills branch now also requires no image, audio or video drop still materializing, so that submit reaches shouldBlockSend and parks as before.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Chef's kiss. 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". |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Breezy! 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". |
…top depending on order (#2520) ## Summary Since #2510, the Gemma 3 tests fail depending on test order in unsloth's `Core zoo` jobs (HF=4.57.6, default and latest; seen on the staging runs of unslothai/unsloth#16717, #17725 and #17801): ``` ERROR at setup of test_unpadded_prefill_longer_than_window_matches_sdpa tests/test_gemma3_fa2_sliding_window_mask.py:45: in model E AssertionError: generic Gemma3 attention patch did not install tests/test_gemma3_forced_float32_undo.py::test_bf16_then_fp16_still_installs_forced_set E AssertionError: assert 'patch_Gemma3TextScaledWordEmbedding' in 'Gemma3TextScaledWordEmbedding.forward@106' ``` ## Cause `get_transformers_model_type` records the base model name in `os.environ["UNSLOTH_MODEL_NAME"]` by design. `test_adapter_of_a_native_model_resolves_without_the_base_config` (both parametrizations, added in #2510) calls it with `base_model_name_or_path = "/nonexistent/unsloth-dsv41-base"` and never restores the variable. A Gemma 3 test that later lands on the same xdist worker sees that name: - the Gemma 3 patches decide by model name, so the generic attention patch does not install; - the forced float32 test's subprocess inherits the environment. I found it by running each test file new since `0c225609`, then each test, before `tests/test_gemma3_fa2_sliding_window_mask.py` in one process. Only these two parametrizations reproduce it. ## Fix (tests only) - `tests/test_deepseek_v41_native_resolver.py`: `monkeypatch.setenv("UNSLOTH_MODEL_NAME", "")` before the call, so monkeypatch restores the previous value, or its absence, at teardown. `delenv(raising=False)` would not work here: on an unset name it records nothing to restore. - `tests/conftest.py`: the existing autouse fixture that restores `UNSLOTH_RETURN_HIDDEN_STATES` after every test now restores `UNSLOTH_MODEL_NAME` too. A future test that reaches `get_transformers_model_type` cannot leak it either. ## Verification `tests/test_deepseek_v41_native_resolver.py` followed by `tests/test_gemma3_fa2_sliding_window_mask.py` in one process: | | result | |---|---| | main | 13 passed, 1 error | | test fix only | 14 passed | | conftest fix only | 14 passed | | both | 14 passed | The resolver test plus all three Gemma 3 files (`fa2_sliding_window_mask`, `forced_float32_undo`, `prepare_decode_after_prefill`): 21 passed. Every test file that reads or writes `UNSLOTH_MODEL_NAME`, run under `-n 8`: | | result | |---|---| | main | 2 failed | | this branch | 0 failed | Both arms also share the same 12 setup errors in `test_gpt_oss_causal_mask_not_skipped.py`. Those come from my local environment, not this change.
…narios run on main again (#17816) ## Summary `tests/studio/test_chat_autoload_failure_gate.py` has failed 85 of 86 scenarios on `main` since #17673 ("Show loadable Hugging Face snapshots from custom folders in Select Model"). It shows up in `Repo tests (CPU, studio)`, first on the staging run of #16717: ``` tests/studio/test_chat_autoload_failure_gate.py:950: in _build_harness E AssertionError: the sliced region uses ['isOtherCacheSnapshot'], imported by chat-adapter.ts but absent from this harness. Add a stub to PREAMBLE, or these scenarios will fail as wrong-model assertions ``` #17673 is correct. `isAutoLoadableLocalRow` now admits another cache's snapshot rows through `isOtherCacheSnapshot` (from `features/model-picker/inventory/local-cache-snapshot.ts`). The harness slices that region of `chat-adapter.ts` and supplies its imports itself, and its import guard flagged the new name as intended. ## Change (test only) The harness now inlines the shipped `isOtherCacheSnapshot`, plus the `looksLikeLocalPath` it calls, read from source. It already inlines `server-model-wait.ts` and `load-request.ts` the same way. A hand-written stub would let the scenarios drift from the rule auto-load actually applies. If the function stops being a top-level `export function`, the extraction asserts and names the file. ## Verification | | `test_chat_autoload_failure_gate.py` | |---|---| | main (`04ce4572`) | 85 failed, 1 passed | | this branch | 86 passed | Every `tests/studio` file that reads `chat-adapter.ts` (16 files): 446 passed.
Fixes #16716
The Skills dialog opens only from "Manage skills" in the Skills pill's menu, and the pill is hidden while Skills is off, which is the default until a skill is enabled. Typing
/skillsand pressing Enter now opens the same dialog, with Skills on or off. Like/rewind, it is handled in the composer before the model and queue gates, so it is never sent and works with no model loaded. Only the bare command matches:/skills list, or/skillswith an attachment or staged audio, is sent as usual.It reuses
ChatSkillsDialogand adds no new strings.Testing
chat-skills-command.test.ts: only the bare/skillsmatches, ignoring case and surrounding whitespace. It also checks thathandleSubmitintercepts it ahead ofshouldBlockSendandinterceptSend, clears the composer and opens the dialog./skillsopened the dialog and cleared the composer. No message was sent and no/chat/completionsrequest was made.This touches the same command block in
handleSubmitas #13929 (/context). I'll rebase whichever lands second.Before / after
/skillstyped into a fresh chat with no model loaded, then Enter. Before (merge base3221ed08b): it is sent as a prompt, a user message appears and Studio starts loading a model. After (0fcc25b1f): the Skills dialog opens, nothing is sent, and the composer stays empty after a reload.