Skip to content

fix(dashboard): --tab with an unknown tab ends with a ValueError traceback, and refresh_all has no caller #1904

Description

@dan-petty

Problem

devops dashboard --tab <value> with a value that names no tab ends with a Python traceback: ValueError: No Tab with id '--content-tab-<value>'. A user sees the traceback and not a message that names the valid tabs.

Evidence

  • A headless run of DashboardApp with initial_tab set to tab-nope, tab-ai and tab-5 ends with ValueError No Tab with id '--content-tab-tab-nope' and the same text for the two other values.
  • Every unknown value did this before the change that deleted the AI Review tab (refactor(ui): delete the dashboard GitHub tab; gh-dash replaces it #1883). The values ai and 5 were valid before that change, so they now hit the same fault.
  • The project rule says that domain errors raise typed exceptions from DevOpsCLIError with an exit code and a machine-readable error code (docs/ERRORS.md).
  • refresh_all in src/devops_cli/ui/refresh.py has no caller in src. It had none before refactor(ui): delete the dashboard GitHub tab; gh-dash replaces it #1883 either.

Remedy

Reject an unknown --tab value at the command boundary with a typed error. The message names the valid tab values. The test uses the real value list of the dashboard, not a copy of it. Delete refresh_all if a search confirms that nothing calls it.

Activity

  1. added
    source/agent
    type/bug
    on Oct 22, 2026
  2. dan-petty commented on Oct 22, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.

    • Type: type/bug. The candidate fixes an incorrect behavior where unknown tab values caused a traceback instead of a user-friendly error message.
    • Priority: P2-Medium. It improves user experience by providing clear error messages and prevents unhandled exceptions in the CLI.
    • Value: Medium. Users interacting with the dashboard CLI will benefit from clearer feedback when they specify invalid tab names.
    • Effort: Low. The fix involves adding a validation check at the command boundary and removing an unused function, both straightforward tasks.
  3. added 2 commits that reference this issue on Oct 26, 2026
    27f8c60
    b5142e6
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

    source/agenttype/bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions