Skip to content

Tasks: cached All/Active navigation can remain on skeleton rows indefinitely #7055

Closed

Description

@euclodius

Problem

Tasks can remain on skeleton rows indefinitely when switching between All tasks, Active, and project lists. This is not just a slow initial request: the list can stay loading when the target query already has cached data and is not loading.

Environment

  • BB 0.48.1
  • Bundled Tasks 0.1.2
  • Tasks bundle built against Plugin SDK 0.6.104
  • Desktop client, Linux server

The installed release was investigated; this has not been reproduced on a build of current main.

Reproduction conditions

  1. Open a task list and visit All tasks / Active so their queries are cached.
  2. Switch between a project list, All tasks, and Active.
  3. When the destination query is already settled in the shared cache (data present, isLoading === false), the new view can remain on skeleton rows indefinitely.

Expected: show the destination list, or a genuine loading/error state if a request is pending/failed.

Observed: the route remains gated as unsettled despite available query data. An unrelated rerender does not necessarily recover it.

Isolated cause

The shipped Tasks dist/app.js uses the same list component (minified T0) for All, Active and project lists without a route-specific React key. The relevant guard, with identifiers normalized for readability, is:

const routeKey = `${projectId ?? '-'}/${activeOnly}`;
const [settledKey, setSettledKey] = useState(routeKey);
const previousRoute = useRef(routeKey);
const routeMismatch = settledKey !== routeKey;

useEffect(() => {
  const routeChanged = previousRoute.current !== routeKey;
  previousRoute.current = routeKey;
  if (!routeChanged && !query.isLoading) {
    setSettledKey(routeKey);
  }
}, [routeKey, query.isLoading, query.data]);

The render gate includes routeMismatch in its skeleton condition.

On a cached transition, routeChanged is true during the effect, so settlement is skipped. If the destination query is already settled, no subsequent loading/data dependency change is guaranteed. settledKey then remains the previous route and routeMismatch remains true. In this state, the same render gate can also prevent the error branch from becoming visible.

Verification performed

An isolated Node smoke used real React 19.3.1 + jsdom and the guard extracted from the installed bundle, with synthetic task/query data only:

Transition Data present Loading Result
Initial project yes false content
Cached All tasks yes false skeleton
Cached Active yes false skeleton
Cached All tasks again yes false skeleton
Unrelated rerender, stable query snapshot yes false still skeleton
New query data identity yes false content recovers

A separate prototype keyed the list component by project/mode. In that isolated smoke, cached transitions displayed content, a genuinely pending query still displayed loading, and subsequent query completion displayed content. This is a candidate approach, not a fix validated end-to-end in the full BB application.

Read-only Tasks CLI requests on the same server completed in approximately 0.44 seconds; no SQLite busy/locked or Tasks request timeouts were observed in the inspected current server logs. Those observations support the frontend diagnosis but are not a full transport trace of the desktop UI.

Workaround

Open Manage inside Tasks, then return to the desired list. Manage renders a different component, so returning remounts the list and resets the stuck guard. This unmount/remount recovery was also checked in the isolated React smoke. Reloading the client is another workaround.

Suggested regression coverage

Exercise cached project → All → Active → All transitions with no additional query update required for settlement. Also keep coverage for genuinely pending queries and request errors, so removing the stale-route guard does not expose data from the previous scope.

No installed BB files were patched and no user task data was changed during this investigation.

Activity

  1. added theissue type on Nov 4, 2026
  2. added
    plugins
    tasks
    confirmed-repro
    on Nov 4, 2026
  3. bb-slop-cop commented on Nov 4, 2026

    @bb-slop-cop
    Contributor

    🚨 SLOP COP 🚨 · new-issue-autopilot

    AGENT GENERATED

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

    confirmed-repropluginstasks

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions