Skip to content

fix: New Recipe Warning does not close on cancel#7524

Merged
jamadeo merged 1 commit intomainfrom
goose/issue-7523
Feb 26, 2026
Merged

fix: New Recipe Warning does not close on cancel#7524
jamadeo merged 1 commit intomainfrom
goose/issue-7523

Conversation

@github-actions
Copy link
Contributor

Closes #7523

Summary

Issue #7523 Fix Summary: New Recipe Warning does not close on cancel

Problem

The New Recipe Warning dialog did not close when clicking the Cancel button. The background page would reset, but the dialog would persist on screen.

Root Cause

The RecipeWarningModal.tsx component was missing the onOpenChange handler on its <Dialog> component. Without this handler, the dialog's internal state changes (triggered by user interaction) were not propagating to the parent component's state.

Solution

Added the onOpenChange handler to the Dialog component in RecipeWarningModal.tsx:

// Before:
<Dialog open={isOpen}>

// After:
<Dialog open={isOpen} onOpenChange={(open) => !open && onCancel()}>

This pattern matches how other modal components in the codebase handle dialog state (e.g., ConfirmationModal.tsx).

Files Changed

  • ui/desktop/src/components/ui/RecipeWarningModal.tsx - Added onOpenChange handler

Verification

  • ✅ TypeScript type check passes (npm run typecheck)
  • ✅ All 340 tests pass (npm test)
  • ✅ ESLint passes (npm run lint)

Generated by goose Issue Solver

@angiejones angiejones marked this pull request as ready for review February 26, 2026 01:55
@angiejones angiejones enabled auto-merge February 26, 2026 02:01
@jamadeo jamadeo closed this Feb 26, 2026
auto-merge was automatically disabled February 26, 2026 16:59

Pull request was closed

@jamadeo jamadeo reopened this Feb 26, 2026
@jamadeo jamadeo enabled auto-merge February 26, 2026 17:00
@jamadeo jamadeo added this pull request to the merge queue Feb 26, 2026
Merged via the queue into main with commit d74c836 Feb 26, 2026
19 checks passed
@jamadeo jamadeo deleted the goose/issue-7523 branch February 26, 2026 17:24
tlongwell-block added a commit that referenced this pull request Feb 27, 2026
…patible

* origin/main: (70 commits)
  feat: allow goose askai bot to search goose codebase (#7508)
  Revert "Reapply "fix: prevent crashes in long-running Electron sessions""
  Reapply "fix: prevent crashes in long-running Electron sessions"
  Revert "fix: prevent crashes in long-running Electron sessions"
  fix: replace unwrap() with graceful error in scheduler execute_job (#7436)
  fix: Dictation API error message shows incorrect limit (#7423)
  fix(acp): Use ACP schema types for session/list (#7409)
  fix(desktop): make bundle and updater asset naming configurable (#7337)
  fix(openai): preserve order in Responses API history (#7500)
  Use the correct Goose emoji 🪿 instead of Swan in README.md (#7485)
  feat(ui): implement fullscreen and pip display modes for MCP Apps (#7312)
  fix: prevent crashes in long-running Electron sessions
  Disable tool pair summarization (#7481)
  fix: New Recipe Warning does not close on cancel (#7524)
  The client is not the source of truth (#7438)
  feat: support Anthropic adaptive thinking (#7356)
  copilot instructions: reword no prerelease docs (#7101)
  fix(acp): don't fail session creation when model listing is unavailable (#7484)
  feat: simplify developer extension (#7466)
  feat: add goose-powered release notes generator workflow (#7503)
  ...

# Conflicts:
#	Cargo.lock
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.

New Recipe Warning does not close on cancel

2 participants