Skip to content

Restrict forced follow-ups to latest queued request#23

Merged
afurm merged 1 commit intomainfrom
af/restrict-force-follow-up-latest
May 6, 2026
Merged

Restrict forced follow-ups to latest queued request#23
afurm merged 1 commit intomainfrom
af/restrict-force-follow-up-latest

Conversation

@afurm
Copy link
Copy Markdown
Owner

@afurm afurm commented May 6, 2026

Summary

  • reject force requests for older queued follow-ups when a newer follow-up is queued
  • only show the Force request button on the latest queued follow-up bubble
  • add regression coverage for the A/B queued follow-up case from review

Why

The force endpoint previously accepted any queued follow-up. Forcing an older queued follow-up could cancel a newer queued execution that still sorted as the task's latest execution, causing clients to show the cancelled newer execution instead of the forced run's successful output.

Validation

  • npm run typecheck
  • npm test -- src/server/routes.test.ts src/client/components/TaskModal.test.tsx
  • npm test
  • npm run build

@afurm afurm marked this pull request as ready for review May 6, 2026 15:50
@afurm afurm merged commit bf3e64e into main May 6, 2026
2 checks passed
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.

1 participant