Commit Graph
2 Commits
Author SHA1 Message Date
helloxjade 64c01d2b29 fix(cli): pass search number as file limit (#19285)
### Summary

The Go CLI parses `search foo files -n 20` into
`SearchCommandOptions.TopK`, but only forwards the value as `top_k`.
File search reads the independent `SearchOptions.Limit` field, so it
receives zero and falls back to the default page size.

This change forwards the parsed number as both `limit` and `top_k`. File
search can consume `Limit`, while semantic dataset search continues to
consume `TopK`.

A focused regression test covers the full CLI command-to-provider
parameter path.

Fixes #19284
2026-09-07 11:28:00 +08:00
Jin Hai 417f805bd9 Go: add API mode check in file system command (#16022)
### What problem does this PR solve?

As title.

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
2026-06-15 16:37:47 +08:00