Skip to content

fix: prevent intermittent Model Plans load failures #2059

Description

@devRickyyy

Summary

The Model Plans settings can intermittently fail to load and show the red toast 暂时无法加载模型方案.

When this happens, the configured model plans are not displayed and the user cannot manage them from Settings.

Steps to Reproduce

The issue is intermittent and does not yet have a deterministic trigger.

  1. Open Settings > Model Plans.
  2. Navigate away, reopen the panel, switch workspaces, or restart Tutti.
  3. Repeat until the model-plan list fails to load.

Expected Behavior

  • Model Plans load successfully whenever the settings surface is opened.
  • Existing configured plans remain visible and manageable.
  • Reopening Settings, switching workspaces, or restarting Tutti does not produce a spurious load-failure toast.

Actual Behavior

  • The Model Plans surface occasionally fails to populate.
  • Tutti shows 暂时无法加载模型方案.
  • The user must leave the surface and try again, and the failure may recur.

Acceptance Criteria

  • Identify and fix the intermittent Model Plans loading failure.
  • Opening and revisiting Model Plans reliably displays the configured plans.
  • Workspace switching and normal application restarts do not trigger the failure.
  • The 暂时无法加载模型方案 toast no longer appears for this intermittent case.
  • Add regression coverage for the failure path once identified.

Environment

  • OS: macOS
  • Surface: Desktop Settings > Model Plans
  • Current project checkout inspected: cfc997347ff4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions