feat(tui): add agent descriptions to autocomplete options
Enhance the agent selection autocomplete by displaying agent descriptions alongside the agent names.
This helps users:
- understand what each agent does before picking one,
- differentiate agents from local files
Feature request: https://github.com/sst/opencode/issues/5805
@assagman Consider truncating long descriptions as I am doing in this dummy PR: https://github.com/ariane-emory/opencode/pull/51/changes (don't worry, will not submit that PR upstream to sst, wouldn't want to steal your glory).
hey @ariane-emory , thanks for the interest and suggestion. Initially I also thought that it might be good to limit description chars, but later on I realized that the menu has horizontal scroll functionality :) . One may want to read more about their agents by leveraging this feature, so left as it is.
https://github.com/user-attachments/assets/aaf1c66e-0c8d-4a29-8f80-246d1bdbcde3
@assagman Fair enough, I wasn't previously aware of that either, you taught me something. :)