Skip to content

fix(studio): six review fixes for the beginner shell - #4764

Merged
georgi merged 1 commit into
mainfrom
claude/agentic-video-product-wvx6ri
Aug 6, 2026
Merged

fix(studio): six review fixes for the beginner shell#4764
georgi merged 1 commit into
mainfrom
claude/agentic-video-product-wvx6ri

Conversation

@georgi

@georgi georgi commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

What

Follow-up to #4758/#4760: fixes the six issues found in review of the Studio shell.

  1. [P1] Storyboard edits lost on navigationuseStoryboardServerSync now flushes the pending debounced save on unmount using the same flush chain useScriptServerSync already has (in-flight saves set a flush flag; otherwise a final save(true) runs). Leaving the page right after an edit no longer drops it.
  2. [P2] Curated language model not applied to assistants — new useStudioAssistantModel (mounted in StudioShell) pins GlobalChatStore.selectedModel to the curated director model while any Studio page is mounted and restores the user's own selection on unmount, so workspace chat keeps its model.
  3. [P2] Creation-path race — both home cards disable while either is creating and the handlers guard on a ref, so a double-activation can't create multiple projects or race navigation.
  4. [P2] Failed cost request showed a full balance — the credits hook exposes unavailable (query.isError); the header chip reads "credits unavailable" (neutral color) and the account page shows a retry banner, instead of displaying the full grant.
  5. [P2] Advertised undo shortcuts didn't work — both Studio editors now mount useDocumentUndoShortcuts with active: true, wired to their stores' undo/redo.
  6. [P3] Inconsistent recent-projects scopeuseTimelines() without the project filter, matching how storyboards and scripts are listed.

Verification

  • web typecheck and eslint pass on top of the merged credits work.
  • Storyboard-related Jest suites (11 files, 67 tests) pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_011GwuPTt5T1sLkmpwWUt2N2


Generated by Claude Code

- Flush the storyboard autosave on unmount (same flush chain the script
  sync already has), so editing a field and immediately leaving the page
  no longer loses the pending debounced edit.
- Pin the Studio assistants to the curated director model: the shell
  forces GlobalChatStore.selectedModel while mounted and restores the
  user's own selection on unmount, so workspace chat is untouched.
- Serialize the two creation paths: both cards disable while either is
  creating, and the handlers guard on a ref, so double-activation can't
  create multiple projects or race the navigation.
- A failed credits request now reads "credits unavailable" (chip) and a
  retry banner (account page) instead of displaying a full balance.
- Mount useDocumentUndoShortcuts in both Studio editors so the
  advertised Cmd-Z / Cmd-Shift-Z shortcuts actually work.
- Scope recent timelines like storyboards and scripts (no project
  filter), so the merged recent-projects list is consistent.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011GwuPTt5T1sLkmpwWUt2N2
@georgi
georgi enabled auto-merge (squash) August 6, 2026 12:22
@georgi
georgi merged commit eea08bf into main Aug 6, 2026
24 of 25 checks passed
@georgi
georgi deleted the claude/agentic-video-product-wvx6ri branch August 6, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants