Repository navigation
Studio: let the model see images read in imported Claude Code chats - #18702
Conversation
[skip ci]
|
@codex security 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. 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". |
|
Codex Review: Didn't find any major issues. Hooray! 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". |
…d up front (intermittent diffusion-shard timeout) (#18885) ## Summary `(Python 3.13, diffusion)` fails intermittently on unrelated PRs with the same test: ``` studio/backend/tests/test_diffusion_ddp.py::test_all_reduce_averages_grads_and_loss_and_flags tests/test_diffusion_ddp.py:55: in _spawn codes = [p.wait(timeout = timeout) for p in procs] E Failed: Timeout (>330.0s) from pytest-timeout. ``` It is the failing test in 3 of the last 6 failed Backend CI runs (`studio-wan-vae-2frame`, `audio-cpp-accelerator-chosen-install`, `perf/r37-translate-history-memo`) and on #18851 and #18702. The test (from #18771) spawns two gloo ranks and joins them through a `TCPStore` on a port that `_port()` found free by binding and closing a socket in the parent. The port is only bound for real later, by rank 0 in its own process, after torch has imported. Under xdist another worker can take that port in the meantime. Rank 0 then fails to bind, rank 1 waits out the store's 300 s timeout, and pytest-timeout kills the test at 330 s. In the failing logs only one of the spawned pairs ever prints the gloo "connected to 1 peer ranks" lines. ## Fix The two spawned ranks rendezvous through a `FileStore` in a fresh temp directory per spawn (same 300 s store timeout), so there is no port to race for. `diffusion_ddp`'s gate only uses `store.set` / `store.wait`, which `FileStore` provides. Production code is unchanged; this is the test harness only. ## Testing - `studio/backend/tests/test_diffusion_ddp.py`: 22 passed, including the gradient all-reduce and the two-rank `train` spawns.
In an imported Claude Code chat, an image opened by the Read tool showed in the chat but reached the model as an empty result, so follow-up questions about it went unanswered. These images are now sent the same way as images from Studio's own image tools. This only applies to imported chats, and text-only models still get text only.
Before (left, main) and after (right, this branch):