Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 19, 2026

Enables window resizing for the Settings dialog and adds a user option to display speech sentence-by-sentence instead of in one long bubble.

Changes

Resizable Windows

  • Changed SettingsForm from FixedDialog to Sizable with minimum size constraint
  • Added anchors to tab control and dialog buttons for proper resize behavior

Sentence-by-Sentence Speech

  • Added TruncateSpeech setting (default: false) with UI toggle in Voice tab
  • Implemented SplitIntoSentences() using regex pattern (?<=[.!?])\s+|(?<=\.\.\.)\s*
  • Added SpeakSentences() to queue each sentence separately to MS Agent
// When truncation is enabled, text is split and queued per sentence
if (_settings.TruncateSpeech)
{
    var sentences = AppSettings.SplitIntoSentences(cleanText);
    _agentManager.SpeakSentences(sentences);  // Each sentence gets its own bubble
}
else
{
    _agentManager.Speak(cleanText);  // Original behavior
}

Note: Simple sentence splitting may not handle all edge cases (e.g., abbreviations like "Dr.", decimal numbers).

Original prompt

Make the windows resizable. Add an option to truncate speech, so that instead of it all being one long speech bubble, it will go sentence by sentence


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Copilot AI and others added 4 commits January 19, 2026 01:06
Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
Co-authored-by: ExtCan <60326708+ExtCan@users.noreply.github.com>
Copilot AI changed the title [WIP] Add option to truncate speech for better readability Add resizable windows and sentence-by-sentence speech option Jan 19, 2026
Copilot AI requested a review from ExtCan January 19, 2026 01:15
@ExtCan ExtCan marked this pull request as ready for review January 19, 2026 01:54
@ExtCan ExtCan merged commit 1742f03 into main Jan 19, 2026
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