Skip to content

Tree views lack loading and error states when CLI commands fail #13

Description

@aadorian

Summary

Agents, Models, MCP, and Sessions tree providers refresh asynchronously via child_process.exec() with stderr redirected to /dev/null and || true. When the OpenCode CLI fails or is unavailable, users see stale or placeholder data with no loading spinner or error feedback.

Location

extension.jsAgentsProvider, McpProvider, SessionsProvider, ModelsProvider refresh() methods

Suggested Fix

  • Show a loading state while exec() is in flight
  • Surface CLI errors via vscode.window.showWarningMessage
  • Distinguish "CLI not installed" from "command failed"

Environment

Found during exploratory GUI/UX testing session (21/06/2026)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions