Conversation
Fixes #1248 handleAddTag had tags in its useCallback dependency array only so the closure-level duplicate check could read it, which forced the callback to re-create on every tag mutation and compared new additions against a potentially-stale closure value. Collapse the duplicate check into the functional setTags updater so the check always runs against the latest state, and drop tags from the dependency array - the callback is stable for the component's lifetime and downstream memoization won't get invalidated on every keystroke.
…onal fix(hitl-edit-panel): move duplicate-tag check into functional setTags (#1248)
feat: add internal backend URL configuration, internal host gateway & Ollama docs
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
📝 WalkthroughWalkthroughThis PR adds Docker-level hostname resolution for internal service communication and introduces Ollama language model provider integration. It configures containers to access Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Review by RecurseML
🔍 Review performed on c1754e4..5353d45
✨ No bugs found, your code is sparkling clean
✅ Files analyzed, no issues (7)
• docker/.env.example
• docker/docker-compose.dev.yml
• docker/docker-compose.yml
• surfsense_web/app/api/zero/query/route.ts
• surfsense_web/components/hitl-edit-panel/hitl-edit-panel.tsx
• surfsense_web/content/docs/how-to/meta.json
• surfsense_web/content/docs/how-to/ollama.mdx
Description
Motivation and Context
FIX #
Screenshots
API Changes
Change Type
Testing Performed
Checklist
High-level PR Summary
This PR fixes Docker networking issues by enabling
host.docker.internalconnectivity for backend and worker services, and introduces a new internal backend URL configuration (FASTAPI_BACKEND_INTERNAL_URL) to properly route API calls from the Next.js web service to the backend within Docker. The changes ensure that containerized services can communicate with the host machine and each other correctly. Additionally, the PR includes new documentation for connecting Ollama and a minor bug fix in the email tags component.⏱️ Estimated Review Time: 5-15 minutes
💡 Review Order Suggestion
docker/.env.exampledocker/docker-compose.ymldocker/docker-compose.dev.ymlsurfsense_web/app/api/zero/query/route.tssurfsense_web/content/docs/how-to/ollama.mdxsurfsense_web/content/docs/how-to/meta.jsonsurfsense_web/components/hitl-edit-panel/hitl-edit-panel.tsxsurfsense_web/components/hitl-edit-panel/hitl-edit-panel.tsxsurfsense_web/content/docs/how-to/ollama.mdxsurfsense_web/content/docs/how-to/meta.jsonSummary by CodeRabbit
New Features
Documentation
Improvements