import { useSettings } from '@/hooks/useSettings' import { useAutosavedSetting } from '@/hooks/useAutosavedSetting' import { Label } from '@/components/ui/label' import { ModelCombobox } from '@/components/model/ModelCombobox' export function WalkthroughSettings() { const { preferences, updateSettings } = useSettings() const storedWalkthroughModel = preferences?.walkthroughModel const { draft: walkthroughModel, setDraft: setWalkthroughModel } = useAutosavedSetting({ stored: storedWalkthroughModel, toDraft: (stored) => stored ?? '', toCommitted: (draft) => draft.trim(), isEqual: (a, b) => a === b, save: (next) => updateSettings({ walkthroughModel: next }), }) return (
Model of the walkthrough session that builds the walkthrough UI. Leave empty to use the session's model, or the OpenCode default.