Skip to content

fix(desktop): show pending state while group descriptions generate - #16

Open
jakob1379 wants to merge 1 commit into
jamesaphoenix:mainfrom
jakob1379:fix/describe-pending-indicator
Open

fix(desktop): show pending state while group descriptions generate#16
jakob1379 wants to merge 1 commit into
jamesaphoenix:mainfrom
jakob1379:fix/describe-pending-indicator

Conversation

@jakob1379

@jakob1379jakob1379 commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

Problem

Group descriptions come only from the paid LLM metadata pass — apply_heuristic_metadata fills risk, group_type and impact, and deliberately leaves description empty. In the desktop app that pass is fire-and-forget after analyze (describeGroups, App.tsx), so groups render immediately and descriptions appear minutes later with nothing having said they were coming.

It also jumped: reservesDescription is false while the pass is in flight, so the description row was not rendered at all and the summary block grew when the first description landed.

Change

  • describing flag around describeGroups.
  • While pending, the description slot renders a spinner + "Writing group description..." reusing the existing .refine-spinner.
  • Same 34px slot as the real description, so no layout shift on arrival.

Testing

npx tsc --noEmit clean. No E2E test: browser mode has HAS_BACKEND === false, so describeGroups returns early and the flag never flips without mocking the Tauri bridge.

The LLM metadata pass runs fire-and-forget after analyze, so descriptions
landed minutes later with no signal they were coming — and the description
row was not reserved until one arrived, so the block jumped on arrival.
Reserve the slot and render a spinner while the pass is in flight.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

@jakob1379