bug: TipFeedback type includes helpful/not_helpful but backend rejects them #73
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
packages/shared-types/src/http/tip.ts:17defines:But
services/api/src/routes/recommender.ts:261validates:The web UI (
apps/web/src/app/tip/page.tsx) shows Helpful/Not helpful buttons that will get 400 responses.Fix
Either:
helpful | not_helpfulfrom the type and UI buttons (simpler), orOption 2 aligns with the reward model — explicit helpfulness signal is more informative than dwell-time inference.