Skip to content

update Jan 8th#144

Merged
Deodat-Lawson merged 4 commits intostablefrom
main
Jan 9, 2026
Merged

update Jan 8th#144
Deodat-Lawson merged 4 commits intostablefrom
main

Conversation

@Deodat-Lawson
Copy link
Copy Markdown
Owner

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented Jan 9, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
pdr-ai-v2 Ready Ready Preview, Comment Jan 9, 2026 1:32am

@Deodat-Lawson Deodat-Lawson merged commit bd4428d into stable Jan 9, 2026
5 checks passed
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 435ac9c87c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines 35 to +37
aiName: text("ai_name"),
aiGender: text("ai_gender"),
aiAvatarUrl: text("ai_avatar_url"),
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add migration for ai_avatar_url column

This commit adds aiAvatarUrl to the studyAgentProfile schema, but there is no corresponding migration updating the actual Postgres table (a repo-wide search for ai_avatar_url only finds this schema line). If a deployed database doesn’t already have that column, any profile SELECT/INSERT/UPDATE will error with “column does not exist,” breaking the study-agent profile endpoints after release. Please add a drizzle migration that alters study_agent_profile to include ai_avatar_url so the schema stays in sync.

Useful? React with 👍 / 👎.

Comment on lines +166 to +175
} else {
console.log("🔊 [VoiceChat] Using blob playback");
const audioBlob = await response.blob();
const audioUrl = URL.createObjectURL(audioBlob);

const audio = new Audio(audioUrl);
audioRef.current = audio;
setupAudioHandlers(audio, audioUrl);

await audio.play();
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Set ttsStartedAtRef for blob playback path

VoiceChat’s interruptTTS intentionally ignores VAD interrupts within the first 200ms based on ttsStartedAtRef, but in the blob playback fallback this ref is never set. On browsers that hit this path (e.g., Firefox/macOS or Safari where MediaSource is disabled), VAD can immediately interrupt the newly started TTS playback, cutting off responses prematurely. Set ttsStartedAtRef.current = performance.now() before audio.play() in the blob path as well to preserve the same guard.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant