willchen96 crash-proofs shared workflows

A single shared workflow could take down the backend; this pass makes the listing page fail gracefully instead of falling over.

workflowinfrastructure

The trigger was concrete: when a workflow shared by one user was displayed to another, the app tried to attach the sharer's name and profile - and if that lookup failed, the whole request could crash the server rather than just erroring out. willchen96's pass hardens that path and adds a few related fixes:

  • The workflow list now degrades gracefully - if a sharer's name or contact can't be found, the list still loads instead of aborting.
  • Loading shared workflows is faster and cheaper, swapping a scan of up to a thousand user records for direct lookups of only the people actually involved.
  • Users can no longer share a workflow with themselves, and email addresses are cleaned up before matching so invites land correctly.
  • Missing AI-provider keys (Google, OpenAI, Anthropic) now surface a clear error up front instead of failing deep inside a request.
So what Anyone whose team leans on shared workflows gets a more stable product and cleaner errors when something is misconfigured.

View this fork on GitHub →

Spotted something wrong? Or know the PR text has fresher detail than the writeup above?

Commits in this thread

2 commits from Open-Legal-Products/mike, oldest first. Source extracted verbatim from the harvested git log.

SHA Subject Author Date
a2368a74 refactor: enhance error handling and streamline API key management in LLM modules willchen96 2026-05-14 ↗ GitHub
08d99678 feat: enhance workflow sharing by preventing users from sharing with themselves and normalizing email inputs willchen96 2026-05-14 ↗ GitHub

Capture this thread into my fork

Download a single Markdown prompt that tells Claude how to port every commit above into your working tree — adapting paths and structure to match your repo. Run it via claude -p < capture-thread-711.md from inside the repo you want the changes in.

⬇ Download capture-thread-711.md