|
|
@@ -208,11 +208,12 @@ async function startDialogue() {
|
|
|
sessionCreating.value = true
|
|
|
sessionError.value = null
|
|
|
try {
|
|
|
+ // Fresh instance per attempt; MockDialogueAPI resets roundIndex in createSession.
|
|
|
const api = createDialogueApi(props.mode)
|
|
|
const info = await api.createSession({
|
|
|
topic: speakingStore.config.topic || props.topic,
|
|
|
- totalRounds: speakingStore.config.practice.rounds || props.totalRounds,
|
|
|
- roleId: 'tom',
|
|
|
+ totalRounds: speakingStore.config.practice.rounds ?? props.totalRounds,
|
|
|
+ roleId: mockRole.id,
|
|
|
vocabulary: speakingStore.config.learningGoals.vocabulary,
|
|
|
})
|
|
|
preparedSession.value = {
|