Skip to content

fix: disable select all option in MemoriesFormField component - #17363

Merged
wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/agent-memory-error
Jul 27, 2026
Merged

wangq8 merged 1 commit into
infiniflow:mainfrom
dcc123456:fix/agent-memory-error

Conversation

@dcc123456

Copy link
Copy Markdown
Collaborator

Summary

fix: disable select all option in MemoriesFormField component

@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. 🧰 typescript Pull requests that update Typescript code labels Jul 24, 2026
@coderabbitai

coderabbitai Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

MemoriesFormField now disables the select-all control in its MultiSelect component.

Changes

Memories form field

Layer / File(s) Summary
Hide select-all control
web/src/components/memories-form-field.tsx
Passes showSelectAll={false} to the MultiSelect component.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: wangq8

Poem

A bunny sees the choices bright,
No “select all” button in sight.
One prop hops in, the form feels neat,
Fewer clicks for fluffy feet.
The memories rest, arranged just right.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
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.
Title check ✅ Passed The title clearly and accurately summarizes the only substantive change in the PR.
Description check ✅ Passed The description includes the required Summary section and states the change, though it is very brief.

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.

@dcc123456
dcc123456 requested a review from wangq8 July 24, 2026 11:03
@dcc123456 dcc123456 added the ci Continue Integration label Jul 24, 2026
@dcc123456
dcc123456 marked this pull request as draft July 24, 2026 11:03
@dcc123456
dcc123456 marked this pull request as ready for review July 24, 2026 11:03

@wangq8 wangq8 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Simple and clean fix. The showSelectAll prop already exists on the MultiSelect component (defined at multi-select.tsx:188, defaults to true), so this is just disabling it for the Memories form field where selecting all doesn't make sense given the embedding-consistency constraint already enforced by the useDisableDifferenceEmbeddingMemory hook.

LGTM! ✅

@wangq8
wangq8 merged commit 069a2aa into infiniflow:main Jul 27, 2026
12 checks passed
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. 🧰 typescript Pull requests that update Typescript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants