fix: change max turns to 20

This commit is contained in:
Felarof
2026-01-16 09:51:59 -08:00
parent 1f55966c8a
commit f63af69883
5 changed files with 6 additions and 5 deletions

View File

@@ -54,7 +54,8 @@ export const GraphChat: FC<GraphChatProps> = ({
onDismiss: onDismissJtbdPopup,
} = useJtbdPopup()
const onTakeSurvey = () => onTakeSurveyBase(5, 'workflow_survey')
const onTakeSurvey = () =>
onTakeSurveyBase({ experimentId: 'workflow_survey' })
// Trigger JTBD popup when AI finishes responding
const previousChatStatus = useRef(status)

View File

@@ -4,7 +4,7 @@ import { BROWSEROS_PREFS } from '@/lib/browseros/prefs'
const JTBD_API_URL = 'https://jtbd-agent.fly.dev'
// const LOCAL_JTBD_API_URL = 'http://localhost:3001'
const DEFAULT_MAX_TURNS = 7
const DEFAULT_MAX_TURNS = 20
const DEFAULT_EXPERIMENT_ID = 'default'
export interface SurveyChatOptions {

View File

@@ -61,7 +61,7 @@ export const ChatError: FC<ChatErrorProps> = ({ error, onRetry }) => {
</a>
{' or '}
<a
href="/options.html?page=survey&maxTurns=5&experimentId=daily_limit"
href="/options.html?page=survey&maxTurns=20&experimentId=daily_limit"
target="_blank"
rel="noopener noreferrer"
className="underline hover:text-foreground"

View File

@@ -26,7 +26,7 @@ export const JtbdPopup: FC<JtbdPopupProps> = ({ onTakeSurvey, onDismiss }) => {
<div>
<p className="font-medium text-sm">Help us improve BrowserOS!</p>
<p className="mt-1 text-muted-foreground text-xs">
Take a quick 2-minute survey.
Take a quick 3-minute survey.
</p>
</div>
</div>

View File

@@ -45,7 +45,7 @@ export function useJtbdPopup() {
}, [])
const onTakeSurvey = useCallback(
async (maxTurns = 15, experimentId = 'popup_survey') => {
async ({ maxTurns = 20, experimentId = 'popup_survey' } = {}) => {
const current = await jtbdPopupStorage.getValue()
track(JTBD_POPUP_CLICKED_EVENT, { messageCount: current.messageCount })
setPopupVisible(false)