Skip to content

bug(dashboard): failed refresh leaves the button loading forever #2682

Closed

Description

@HandSonic

Chat2DB Edition

Chat2DB Community

Chat2DB Version

main at 2442df9

Deployment

Web and Desktop

Problem Summary

When refreshing the current dashboard, a failed detail request leaves the refresh action pending forever. The refresh button remains in its loading state even though the request layer reports the error.

Steps to Reproduce

  1. Open an existing dashboard.
  2. Make the dashboard detail endpoint fail, for example by disconnecting the network or returning HTTP 500.
  3. Click the dashboard refresh button.

Expected Behavior

The refresh attempt settles after the request fails and the refresh button stops spinning.

Actual Behavior

refreshCurrentDashboard wraps getDashboardById in a Promise with only a resolve path. A rejection never settles the outer Promise, so DashboardContent never clears refreshLoading.

Logs

The request layer surfaces the HTTP or network error, but the refresh Promise remains pending.

Screenshots or Additional Context

The failure path is deterministic in the dashboard store action on current main. The request helper rejects on both business and network failures.

Impact

Dashboard refresh appears permanently stuck after a transient backend or network error.

Workaround

Reload the page.

Submission Checklist

  • Reproduced on the selected Chat2DB edition.
  • Searched existing issues and pull requests for duplicates.
  • Removed credentials and private data.

Activity

  1. github-actions commented on Aug 11, 2026

    @github-actions

    Thanks for the clear report. I understand that when getDashboardById rejects during refreshCurrentDashboard, the outer Promise remains pending and DashboardContent never clears refreshLoading.

    Please add the missing required environment details: Operating System and Operating System Version. Since this occurs in both Web and Desktop deployments, note the OS/version used for each reproduced deployment if they differ. That is the smallest remaining detail needed for maintainers to evaluate the failure path and its regression coverage.

    Generated by AI Issue Assistant for #2682 · 6.79 AIC · ⌖ 2.69 AIC · ⊞ 36K · ◷

  2. moved this from Inbox to In Review in Chat2DB Communityon Aug 12, 2026
  3. moved this from In Review to Backlog in Chat2DB Communityon Aug 22, 2026
  4. moved this from Backlog to In Review in Chat2DB Communityon Aug 22, 2026
  5. moved this from In Review to Done in Chat2DB Communityon Sep 9, 2026
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

    edition/communityChat2DB Communityneeds/infoNeeds more information from the reporter

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions