Skip to content

fix: pass search id to searchbots ask - #15646

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
buua436:b064
Jun 4, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
buua436:b064

Conversation

@buua436

@buua436 buua436 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

What problem does this PR solve?

This change ensures /searchbots/ask receives search_id from the frontend, so the backend can load the matching search configuration when the shared search flow invokes the endpoint.

Type of change

  • Bug Fix (non-breaking change which fixes an issue)

@coderabbitai

coderabbitai Bot commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ca687e3e-9886-4a9d-acce-619f2f326e80

📥 Commits

Reviewing files that changed from the base of the PR and between 23aae19 and 7a23020.

📒 Files selected for processing (1)
  • web/src/pages/next-search/hooks.ts

📝 Walkthrough

Walkthrough

The PR adds a single field to the AI completion request payload in the useSendQuestion hook. The search_id parameter is now included when sending the completion request to the backend, enabling the server to track and associate responses with the corresponding search context.

Changes

AI Completion Request Tracking

Layer / File(s) Summary
Pass search_id in completion request
web/src/pages/next-search/hooks.ts
The useSendQuestion hook now includes search_id: searchId in the payload object passed to the AI completion endpoint (askUrl / api.askShare or api.searchCompletion).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🐰 A tiny change hops into place,
Search_id now tracks the pace,
Payload grows complete and bright,
One small field, oh what delight! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and specifically describes the main change: passing search_id to the searchbots ask endpoint, which is directly related to the code modification shown in the raw summary.
Description check ✅ Passed The description includes both required template sections: 'What problem does this PR solve' with clear context about the backend needing search_id for configuration loading, and 'Type of change' correctly marked as Bug Fix.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@buua436 buua436 added the ci Continue Integration label Jun 4, 2026
@buua436
buua436 marked this pull request as ready for review June 4, 2026 09:33
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. 🐞 bug Something isn't working, pull request that fix bug. labels Jun 4, 2026
@wangq8
wangq8 merged commit 04dc3bb into infiniflow:main Jun 4, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐞 bug Something isn't working, pull request that fix bug. ci Continue Integration size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants