Files
shunxinyi fd582fd166 fix(cli): reject an ambiguous --kb name instead of picking the first match (#6037)
* fix(cli): reject an ambiguous --kb name instead of picking the first match

ResolveKBNameToID returned the first knowledge base whose name matched.
Knowledge-base names are not unique — the table has no unique index and
CreateKnowledgeBase only rejects an empty name — so with two KBs named
"prod", `doc upload --kb prod` wrote into whichever one the server listed
first, with no warning.

Collect the matches and fail on more than one, mirroring ResolveModelRef,
which already rejects an ambiguous model name with input.invalid_argument.

* style(cli): wrap the ambiguous-kb-name message under the 120-column limit
2026-11-27 12:07:18 +08:00
..
2026-07-06 22:53:01 +08:00
2026-07-06 22:53:01 +08:00
2026-07-06 22:53:01 +08:00