Skip to content

Conversation

@EhabY
Copy link
Collaborator

@EhabY EhabY commented Dec 15, 2025

Summary

  • Fix false "setting changed" notifications appearing when connecting to remote
  • Compare actual setting values instead of relying on affectsConfiguration()
  • Use getter functions (getGlobalFlagsRaw, getSshFlags, getLogDir, getHeaderCommand) to properly resolve defaults
  • Show single notification when multiple settings change at once
  • Add coder.headerCommand to watched settings

Closes #681

Copy link
Collaborator

@DanielleMaywood DanielleMaywood left a comment

Choose a reason for hiding this comment

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

Approving although I'd definitely prefer we find a solution for the as unknown as pattern. As they're in tests and not production code this is a non-blocking comment

The watchSettings function was using affectsConfiguration() which can
return true even when values haven't changed (e.g., during Remote SSH
connection setup). Now compares actual values using getter functions
that properly resolve defaults.

Also:
- Add coder.headerCommand to watched settings
- Show single notification listing all changed settings
@EhabY EhabY force-pushed the fix-notify-setting-change-on-connect branch from e57b14c to 103be3f Compare December 15, 2025 10:54
@EhabY EhabY force-pushed the fix-notify-setting-change-on-connect branch from 103be3f to e5d706d Compare December 15, 2025 10:58
@EhabY EhabY merged commit e7fc732 into coder:main Dec 15, 2025
3 checks passed
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.

"Global flags setting changed" notification appears on every connection

2 participants