Skip to content

fix: make showSidebarBar and showFooterBar hide only usage bars #89

Description

@mynameistito

Summary

The provider display settings showSidebarBar and showFooterBar currently hide the entire provider view. They should only hide the usage percentage bar ([████░░░░░░░░]) while keeping the provider and its other usage information visible.

Expected behavior

  • enabled: false for a provider hides that provider entirely and stops fetching it.
  • showSidebarBar: false keeps the provider visible in the sidebar, including its name, tier, errors, reset information, and usage percentage, but removes only the sidebar usage bar.
  • showFooterBar: false keeps the provider's footer information visible, including the percentage and reset text, but removes only the footer usage bar.
  • The settings should remain independent per provider.

Current behavior

  • showSidebarBar: false removes the provider from the sidebar entirely.
  • showFooterBar: false removes the provider's footer usage display entirely.

This is confusing because the existing enabled setting already represents whether a provider should be fetched and displayed.

Scope

Please apply the fix to both release lanes:

  • OpenCode @latest / main
  • OpenCode @next / opencode-v2

Reproduction

Configure an enabled provider with either display flag set to false:

{
  "providers": {
    "codex": {
      "enabled": true,
      "showSidebarBar": false,
      "showFooterBar": false
    }
  }
}

The provider view disappears instead of only its [█░░░░░░░] usage bar.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions