Skip to content

Conversation

@lifeizhou-ap
Copy link
Collaborator

Summary

Issue: When deeplink is triggered in chrome, a new window is created but the recipe is not loaded.
Why: There is a race condition that the server is not up when triggering decode recipe api call

Screenshot 2025-10-06 at 2 57 48 pm

Fix:

  • Check server is ready when creating a new window (in create_chat).
  • This will the centralised place to check server status. Removed the existing check in get-goosed-host-port handling as it is redundant now

Type of Change

  • Feature
  • Bug fix
  • Refactor / Code quality
  • Performance improvement
  • Documentation
  • Tests
  • Security fix
  • Build / Release
  • Other (specify below)

Testing

Manual testing

throw new Error('Backend server failed to start in time');
}
console.log('[Main] Backend server is ready');

Copy link
Collaborator

Choose a reason for hiding this comment

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

can you remove the log statements? either this works and we dont care or it fails and it says so

@lifeizhou-ap lifeizhou-ap merged commit aedc126 into main Oct 6, 2025
11 checks passed
@lifeizhou-ap lifeizhou-ap deleted the lifei/client-wait-for-server-start branch October 6, 2025 10:56
wpfleger96 added a commit to wpfleger96/goose that referenced this pull request Oct 6, 2025
* main: (130 commits)
  Add new subcommand for opening recipes in desktop app (block#4970)
  Update system.md with softer subagent language (block#5023)
  docs: add new goose tip (block#4941)
  Fix nix flake double copy (block#4976)
  Upgrade electron for macOS Tahoe compatibility (block#5015)
  fix: check server is ready so that we can decode the recipe deeplink (block#5021)
  fix: backwards compatible parsing recipe file (block#5020)
  chore: Used common function to list recipes in local machine (block#4974)
  fix: Issue block#4540: `goose configure` -> Cursor Agent succeeds (block#4942)
  feat: Add advanced data analysis pipeline recipe (block#4990) (block#5005)
  Create / edit recipe form unification and improvements (block#4693)
  feat: add Code Review Mentor recipe with Developer and Memory extensions (block#4992) (block#5014)
  feat: set custom models for lead/worker (block#4598)
  feat: add grok-code-fast-1 support for xAI provider (block#4472)
  Persist dynamic extension config so we can resume recipe sessions w/ extensions (block#4331)
  fix: show PowerShell PATH instructions for Windows users (block#4989)
  feat: add Smart Task Organizer recipe for Hacktoberfest (block#4936)
  Fix extension headers (block#5000)
  feat: add advanced software project generator initializer recipe (block#4767) (block#4949)
  Removed unused libs (block#4932)
  ...
lifeizhou-ap added a commit that referenced this pull request Oct 7, 2025
* main:
  fix: check server is ready so that we can decode the recipe deeplink (#5021)
  fix: backwards compatible parsing recipe file (#5020)
Itz-Agasta pushed a commit to Itz-Agasta/goose that referenced this pull request Oct 7, 2025
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.

3 participants