Repository navigation
Studio: simpler Rewind confirm, skipped for conversation-only rewinds - #13676
Conversation
…cker; skip it when only the conversation can rewind
|
@codex review |
1 similar comment
|
@codex review |
Codex Review SummaryThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5cbe29bc26
ℹ️ 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".
| return request !== null && request.threadKey === threadKey ? ( | ||
| <RewindFlow | ||
| key={request.messageId ?? ""} | ||
| initialMessageId={request.messageId} | ||
| onClose={closeRewind} | ||
| /> | ||
| ) : null; |
There was a problem hiding this comment.
Preserve the dialog while its close animation runs
When Cancel, the close button, or a successful rewind calls closeRewind(), request becomes null and this conditional immediately unmounts the Dialog, so Radix never renders its data-closed transition. This regresses every visible rewind-dialog dismissal and defeats the explicit keep-alive behavior in RewindDialogMount (thread.tsx:8658-8669), which remains mounted specifically so closing animations can finish; keep the dialog root mounted and drive its open state false instead.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Exit animation only. The flow unmounts with its request on purpose, so every rewind starts from a fresh read of the branch; no state or action is lost.
|
Codex Review: Didn't find any major issues. You're on a roll. 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". |
|
|
…earch contract, zoo 2026.10.5 scan baseline (#13701) * Studio i18n: move the Italian rewind filesNotRestored string into rewind #13676 added it under settings.data.library, so the overlay parity check in Frontend CI fails with an overlay key missing from en. * Tests: lift arrow-function consts like functions in the node harness resolver #13687 added const skillsForTools = () => ..., which reads the zustand Skills switch store. The resolver treated it as an eagerly evaluated const and dropped it because the store cannot be lifted, so the token count parity harness failed with ReferenceError: skillsForTools is not defined. An arrow or function expression reads its references only when called. The parity harness also gets a stand-in Skills switch store. * Baseline the unsloth-zoo 2026.10.5 findings after review Five pinned zoo sites moved digest in 2026.10.5. Four have the same matched code; speculative.py adds two mx.eval calls (MLX array evaluation). The rest of each file's 2026.10.4 to 2026.10.5 diff adds no network, exec or process code. * Studio i18n: translate skills.turnOff in every overlay #13687 added the Skills switch's Turn off skills label in en only, so the strict overlay check in Frontend CI fails with it missing from all 13. * Tests: follow the keyed + menu in the deep research contract #13679 builds the chat + menu from a keyed list, so the one-shot gate is now deepResearch: researchAvailable ? ( ... ) : null. * Tests: shorten the deep research contract comment
What changed
The Rewind confirm is simpler and only appears when there is a real choice to make.
rewind.confirmTitleandrewind.restoreLabel, rewrittenrewind.scopeNote, in all 14 locales. DroppedchooseDescription,checkingandnoFileChanges, which nothing uses any more.Verification
npm run typecheck,npm run build,npm test(12070 pass).chat-rewind.test.tscovers the untruncated quote text and the dialog rules.Not exercised here: a real file restore (needs a model running tools, not possible on this CPU host). The restore and undo paths are unchanged.