Skip to content

PR_26171_BETA_075 tts message table cleanup#37

Merged
ToolboxAid merged 1 commit into
mainfrom
pr/26171-BETA-075-tts-message-table-cleanup
Jun 21, 2026
Merged

PR_26171_BETA_075 tts message table cleanup#37
ToolboxAid merged 1 commit into
mainfrom
pr/26171-BETA-075-tts-message-table-cleanup

Conversation

@ToolboxAid

Copy link
Copy Markdown
Owner

Summary

  • Removed stale TTS Named Sentence, Queue, Output Summary, and duplicated left-column profile/emotion controls.
  • Kept profile voice filters in inline TTS Profile rows and delivery/preset values in Emotion Settings rows.
  • Updated TTS preview playback to speak current text through the selected profile/emotion.
  • Updated Message Studio Message Parts visible columns and targeted tests.

Validation

  • PASS node --check toolbox/text-to-speech/text2speech.js
  • PASS node --check toolbox/messages/messages.js
  • PASS npx playwright test tests/playwright/tools/TextToSpeechFunctional.spec.mjs
  • PASS npx playwright test tests/playwright/tools/MessagesTool.spec.mjs --trace=off
  • PASS node --test tests/tools/Text2SpeechShell.test.mjs
  • PASS npm run test:workspace-v2
  • PASS git diff --check
  • PASS git diff --cached --check

Reports

  • docs_build/dev/reports/codex_review.diff
  • docs_build/dev/reports/codex_changed_files.txt
  • docs_build/dev/reports/PR_26171_BETA_075-tts-message-table-cleanup.md
  • docs_build/dev/reports/PR_26171_BETA_075-tts-message-table-cleanup-validation-report.md
  • docs_build/dev/reports/PR_26171_BETA_075-tts-message-table-cleanup-manual-validation-notes.md
  • docs_build/dev/reports/PR_26171_BETA_075-tts-message-table-cleanup-instruction-compliance-checklist.md

Delta ZIP

  • tmp/PR_26171_BETA_075-tts-message-table-cleanup_delta.zip

@ToolboxAid ToolboxAid merged commit 195c90a into main Jun 21, 2026
1 check passed

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

Copy link
Copy Markdown

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: a569fef611

ℹ️ 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 +920 to +923
const profile = previewProfile();
const hasVoice = Boolean(profile?.voice);
const supported = engine.isSupported();
if (elements.speak) elements.speak.disabled = !(supported && hasText && hasVoice && selectedItem());
if (elements.pause) elements.pause.disabled = !(engine.canPause() && selectedItem());
if (elements.resume) elements.resume.disabled = !(engine.canResume() && selectedItem());
if (elements.stop) elements.stop.disabled = !(supported && selectedItem());
if (elements.copyJson) elements.copyJson.disabled = isWorkspaceLaunch();
if (elements.exportJson) elements.exportJson.disabled = isWorkspaceLaunch();
if (elements.importJson) elements.importJson.disabled = isWorkspaceLaunch();
setTextContent(root, "[data-tts-text-count]", String(String(elements.text?.value || "").length));
if (elements.speak) elements.speak.disabled = !(supported && hasText && hasVoice);

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 Rebind default profiles after voices load

In browsers where speechSynthesis.getVoices() returns an empty list on first load and later fires voiceschanged, the default profiles are created before any voices exist, so their voice fields stay empty. Since the Speak button now keys readiness off profile?.voice, the later voiceschanged refresh only updates state.voiceOptions and re-renders rows; it never assigns a voice to those existing default profiles, leaving preview playback disabled until the user manually edits a profile. This regresses first-load TTS preview on common Web Speech implementations that hydrate voices asynchronously.

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.

2 participants