Skip to content

Conversation

@zanesq
Copy link
Collaborator

@zanesq zanesq commented Oct 10, 2025

Summary

Fixes #5110

Also noticed the new recipe warning wasn't showing, there was a race condition happening when a recipe was loaded, finalRecipe would be set before the recipe prop arrived. Yes, the useRecipeManager code is a mess, we plan on refactoring a lot of this in the upcoming basecamp2 rework.

NOTE: this fixes the installation dialog from showing again in a new chat/window which solves the immediate issue with launching a new chat after installing an extension but there is another semi related issue if you refresh the same window after installation it will show the modal again.

useEffect(() => {
const checkRecipeAcceptance = async () => {
// Create a unique key for this recipe to prevent duplicate checks
const recipeKey = finalRecipe ? `${finalRecipe.title}-${finalRecipe.instructions}` : null;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this need to include all aspects of the recipe? Like extensions included as well?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good point at first I didn't think it was necessary but now I think it should behave the same as the other checks, will update

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ended up removing these checks altogether, wasn't necessary since we can just check if we've checked the recipe or not in the same chat session

@zanesq
Copy link
Collaborator Author

zanesq commented Oct 13, 2025

this should be gtg, verified and tested locally with a few recipes (old and new)

// Recipe loaded from session metadata should be automatically accepted
setRecipeAccepted(true);
setIsRecipeWarningModalOpen(false);
hasCheckedRecipeRef.current = true;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we just move this to happen one time immediately after the early return check?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks makes sense, needed to put it after the check for the recipe so we handle the no recipe case.. the real issue here is its re-rendering multiple times so there is a race condition before the recipe is ready. This is a hack around that, will come back to that multiple rendering issue when we refactor this soon.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok got it

@zanesq zanesq requested a review from alexhancock October 13, 2025 15:47
@zanesq zanesq merged commit 73e9e1a into main Oct 13, 2025
11 checks passed
@zanesq zanesq deleted the zane/clear-deeplinks-after-use branch October 13, 2025 16:21
zanesq added a commit that referenced this pull request Oct 13, 2025
zanesq added a commit that referenced this pull request Oct 13, 2025
…sion-streaming

* 'main' of github.com:block/goose: (37 commits)
  Clear deeplinks after use (#5128)
  Revert "Fix gpt-5 input context limit (#4619)" (#5135)
  fix: missing cmake and protobuf for windows build, deduplicate sh/pws… (#5028)
  Fix bedrock tool input schema (#5064)
  Add self-test recipe for goose validation (#5111)
  fix: modifies openai request logic for reasoning models (#4221) (#4294)
  Fix race condition threat when set_param and set_secret of c… (#5109)
  Clean room implementation of the chat process (#5079)
  Bump rmcp (#5096)
  set version in an env variable for testing (#5100)
  fix : enhance fuzzy file search in goose desktop (#5071)
  Make async (#5126)
  docs: unlist tutorials for extensions with archived or moved servers (#5116)
  Add API Documentation Generator prompt (#5001)
  Add flag for enabling eleven labs voice dictation (#5095)
  force re-render fields to pick up custom params usage in instructions (#5112)
  Remove isUserInputDisabled (#5115)
  Improve Rust analysis output for `analyze` tool (#5072)
  Remove duplicate prepare_reply_context call (#5063)
  install react dev tools in development (#4979)
  ...

# Conflicts:
#	ui/desktop/src/components/BaseChat2.tsx
#	ui/desktop/src/hooks/useChatStream.ts
katzdave added a commit that referenced this pull request Oct 15, 2025
* 'main' of github.com:block/goose: (49 commits)
  fixing video embed (#5171)
  chore: clean up random unused files (#5166)
  fix: adjust download_cli.sh to tolerate no OS variable (#5169)
  mcp tutorial page for firecrawl (#5152)
  Remove orphaned tool calls before compaction (#5059)
  feat: add copy as markdown button to documentation pages (#5158)
  chore: include vendored node executable (#5160)
  remove extra whitespace from message (#5159)
  Clear deeplinks after use (#5128)
  Revert "Fix gpt-5 input context limit (#4619)" (#5135)
  fix: missing cmake and protobuf for windows build, deduplicate sh/pws… (#5028)
  Fix bedrock tool input schema (#5064)
  Add self-test recipe for goose validation (#5111)
  fix: modifies openai request logic for reasoning models (#4221) (#4294)
  Fix race condition threat when set_param and set_secret of c… (#5109)
  Clean room implementation of the chat process (#5079)
  Bump rmcp (#5096)
  set version in an env variable for testing (#5100)
  fix : enhance fuzzy file search in goose desktop (#5071)
  Make async (#5126)
  ...
lifeizhou-ap added a commit that referenced this pull request Oct 15, 2025
* main:
  fix: include apple silicon build of the desktop app in build artifacts (#5174)
  fixing video embed (#5171)
  chore: clean up random unused files (#5166)
  fix: adjust download_cli.sh to tolerate no OS variable (#5169)
  mcp tutorial page for firecrawl (#5152)
  Remove orphaned tool calls before compaction (#5059)
  feat: add copy as markdown button to documentation pages (#5158)
  chore: include vendored node executable (#5160)
  remove extra whitespace from message (#5159)
  Clear deeplinks after use (#5128)
  Revert "Fix gpt-5 input context limit (#4619)" (#5135)
  fix: missing cmake and protobuf for windows build, deduplicate sh/pws… (#5028)
michaelneale added a commit that referenced this pull request Oct 16, 2025
* main: (35 commits)
  fix: include apple silicon build of the desktop app in build artifacts (#5174)
  fixing video embed (#5171)
  chore: clean up random unused files (#5166)
  fix: adjust download_cli.sh to tolerate no OS variable (#5169)
  mcp tutorial page for firecrawl (#5152)
  Remove orphaned tool calls before compaction (#5059)
  feat: add copy as markdown button to documentation pages (#5158)
  chore: include vendored node executable (#5160)
  remove extra whitespace from message (#5159)
  Clear deeplinks after use (#5128)
  Revert "Fix gpt-5 input context limit (#4619)" (#5135)
  fix: missing cmake and protobuf for windows build, deduplicate sh/pws… (#5028)
  Fix bedrock tool input schema (#5064)
  Add self-test recipe for goose validation (#5111)
  fix: modifies openai request logic for reasoning models (#4221) (#4294)
  Fix race condition threat when set_param and set_secret of c… (#5109)
  Clean room implementation of the chat process (#5079)
  Bump rmcp (#5096)
  set version in an env variable for testing (#5100)
  fix : enhance fuzzy file search in goose desktop (#5071)
  ...
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.

Installation of recipe or extension from deeplink repeats on new window/chat

3 participants