mirror of
https://github.com/block/goose.git
synced 2026-07-17 12:56:20 +02:00
fda42daa4f
Implement a low-interruption periodic feedback prompt that appears inline in the chat. After every 5th message exchange, users see a "How's Goose doing?" banner with 4 emoji-face rating buttons (1-4 scale). Ratings are sent via the existing PostHog telemetry pipeline. - New hook `useFeedbackPrompt` manages trigger heuristics: every 5th exchange, 20-minute in-session cooldown, 24-hour cross-session cooldown - New component `FeedbackBanner` renders inline within chat scroll area with emoji ratings and dismiss button - Analytics events `feedback_submitted` and `feedback_dismissed` track user sentiment - Settings persistence for cross-session cooldown via `lastFeedbackTimestamp` - Respects telemetry opt-out: banner never shows if telemetry is disabled Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>