Skip to content

fix: wire Models tree Refresh item to refreshModels command - #35

Merged
aadorian merged 2 commits into
masterfrom
fix/models-tree-refresh-command
Jun 22, 2026
Merged

fix: wire Models tree Refresh item to refreshModels command#35
aadorian merged 2 commits into
masterfrom
fix/models-tree-refresh-command

Conversation

@aadorian

Copy link
Copy Markdown
Owner

Summary

  • Fixes the Refresh Models row in the Models tree so it calls refreshModels (reload tree data) instead of listModels (terminal dump).
  • Aligns the tree row with the toolbar refresh button, which already used the correct command.

Closes #14

Test plan

  • Launch Extension Development Host (F5)
  • Open OpenCode → Models
  • Click Refresh Models at the bottom of the tree
  • Confirm the tree reloads in place without opening a terminal opencode models session
  • Confirm the toolbar refresh button still works as before

Made with Cursor

The Refresh Models tree row invoked listModels (terminal dump) instead of
refreshModels (reload tree data). Closes #14.

Co-authored-by: Cursor <cursoragent@cursor.com>
@aadorian aadorian self-assigned this Jun 21, 2026
@aadorian aadorian added bug Something isn't working good first issue Good for newcomers labels Jun 21, 2026
@aadorian aadorian added this to the v0.0.2 — Bug fix release milestone Jun 21, 2026
@github-actions github-actions Bot added the enhancement New feature or request label Jun 22, 2026
@aadorian
aadorian merged commit af5e00c into master Jun 22, 2026
10 checks passed
@aadorian
aadorian deleted the fix/models-tree-refresh-command branch June 22, 2026 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request good first issue Good for newcomers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Models tree Refresh item runs terminal listModels instead of refreshModels

1 participant