Skip to content

feat(settings): auto-switch to newly connected outputs#227

Open
XiaKaiYang wants to merge 1 commit into
ronitsingh10:mainfrom
XiaKaiYang:codex/auto-switch-connected-output
Open

feat(settings): auto-switch to newly connected outputs#227
XiaKaiYang wants to merge 1 commit into
ronitsingh10:mainfrom
XiaKaiYang:codex/auto-switch-connected-output

Conversation

@XiaKaiYang

Copy link
Copy Markdown

What changed

  • added a new Auto-Switch New Output audio setting so newly connected output devices can become the active output immediately when the user wants that behavior
  • updated output-device connection handling and pending auto-switch reconciliation so FineTune accepts the new device when the setting is enabled instead of forcing the old default back
  • documented the new setting in the troubleshooting guide and added focused tests for the switching rules plus AppSettings persistence

Why

FineTune currently only auto-switches to a connected output when that device is already the highest-priority device. Newly seen outputs are appended to the end of the priority list, so common cases like plugging in headphones require a manual menu bar selection every time.

Impact

  • users can opt into immediate switching for newly connected outputs without changing the existing priority-based behavior for everyone else
  • existing disconnect fallback and priority ordering behavior remain unchanged when the new setting is off

Validation

  • xcodebuild test -project /Users/xiakaiyang/WeChatReplyAssistant/tmp/FineTune/FineTune.xcodeproj -scheme FineTune -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY='' -only-testing:FineTuneTests/OutputDeviceAutoSwitchTests
  • xcodebuild test -project /Users/xiakaiyang/WeChatReplyAssistant/tmp/FineTune/FineTune.xcodeproj -scheme FineTune -destination 'platform=macOS' CODE_SIGNING_ALLOWED=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY='' -only-testing:FineTuneTests/SettingsJSONTests -only-testing:FineTuneTests/AppSettingsDefaultTests

@XiaKaiYang XiaKaiYang changed the title [codex] Add auto-switch setting for connected outputs Add auto-switch setting for connected outputs Apr 9, 2026
@XiaKaiYang XiaKaiYang changed the title Add auto-switch setting for connected outputs feat(settings): auto-switch to newly connected outputs Apr 9, 2026
@XiaKaiYang XiaKaiYang marked this pull request as ready for review April 10, 2026 18:13
@gigimon

gigimon commented Apr 17, 2026

Copy link
Copy Markdown

Super feature, I need it :)

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