refactor(InputField): clean up computed properties and improve agent selection logic

Refactored the Input-field.vue component to enhance the clarity and maintainability of computed properties related to selected items. Improved the logic for handling agent configurations and user-selected files, ensuring a more streamlined approach to displaying knowledge bases and files. Additionally, adjusted the handling of disabled agents to ensure proper fallback selection when necessary.

Refs: #1303
This commit is contained in:
wizardchen
2026-05-18 00:47:10 +08:00
committed by lyingbug
parent 8d4c58c5fa
commit ce67ba0310
2 changed files with 342 additions and 395 deletions
File diff suppressed because it is too large Load Diff