Skip to content

fix(desktop): show pending cron trigger feedback - #70833

Closed
nv-cho wants to merge 1 commit into
NousResearch:mainfrom
nv-cho:fix/desktop-cron-trigger-feedback
Closed

fix(desktop): show pending cron trigger feedback#70833
nv-cho wants to merge 1 commit into
NousResearch:mainfrom
nv-cho:fix/desktop-cron-trigger-feedback

Conversation

@nv-cho

@nv-cho nv-cho commented Jul 24, 2026

Copy link
Copy Markdown

Summary

  • block a second manual Cron trigger before React renders the disabled state
  • show a spinner and aria-busy while the trigger is pending
  • add a queued Run History row immediately, then replace it with the stored run
  • poll queued runs without overlapping requests
  • unlock the action after a request failure or a bounded timeout

The trigger handler relied on React state to block repeated activation, leaving a same-render window where two requests could start. Run History could only show persisted sessions, so an accepted trigger appeared missing until the backend created its session.

Fixes #70826

Test plan

  • npm run build
  • npm run typecheck
  • npx eslint src/app/cron/index.tsx src/app/cron/index.test.tsx src/app/overlays/panel.tsx src/app/overlays/panel.test.tsx
  • npx vitest run src/app/cron/index.test.tsx src/app/overlays/panel.test.tsx — 7 passed
  • npm test -- --run — 2,754 passed; 3 skipped

Block duplicate manual triggers before React rerenders. Keep the action busy and show a queued run until run history catches up.
Sign up for free to 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.

[Bug]: Desktop Cron Trigger now accepts duplicate clicks and delays run feedback

1 participant