8000
Skip to content

Add DISCORDCHATEXPORTER_ALLOW_AUTO_UPDATE env var to suppress auto-update in GUI#1514

Merged
Tyrrrz merged 4 commits intoprimefrom
copilot/add-disable-auto-update-switch
Mar 21, 2026
Merged

Add DISCORDCHATEXPORTER_ALLOW_AUTO_UPDATE env var to suppress auto-update in GUI#1514
Tyrrrz merged 4 commits intoprimefrom
copilot/add-disable-auto-update-switch

Conversation

Copy link
Copy Markdown
Contributor
Copilot AI commented Mar 21, 2026
  • Add IsAutoUpdateAllowed property to StartOptions.cs reading from DISCORDCHATEXPORTER_ALLOW_AUTO_UPDATE env var
  • Update UpdateService.cs to use IsAutoUpdateAllowed
  • Add IsAutoUpdateAvailable property to SettingsViewModel.cs using IsAutoUpdateAllowed
  • Update SettingsView.axaml to bind IsVisible on the auto-update panel to IsAutoUpdateAvailable
  • Refine IsAutoUpdateAllowed expression: grouped in !(), inverted to positive is { } env pattern, renamed venv, only false accepted (removed 0)
  • Fix CSharpier formatting: is { } env moved to indented new line per formatter expectation
  • Build verified (0 warnings, 0 errors)

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

Copy link
Copy Markdown
Owner
@Tyrrrz Tyrrrz left a comment

Choose a reason for hiding this comment

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

Comment thread DiscordChatExporter.Gui/StartOptions.cs Outdated
Comment thread DiscordChatExporter.Gui/StartOptions.cs Outdated
…CORDCHATEXPORTER_ALLOW_AUTO_UPDATE

Co-authored-by: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Tyrrrz/DiscordChatExporter/sessions/aa3944a4-e542-4770-8d17-2acb2c958ce9
Copy link
Copy Markdown
Contributor Author
Copilot AI commented Mar 21, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • av-build-tel-api-v1.avaloniaui.net
    • Triggering command: /usr/share/dotnet/dotnet dotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI changed the title Add DISCORDCHATEXPORTER_DISABLE_UPDATE env var to suppress auto-update in GUI Add DISCORDCHATEXPORTER_ALLOW_AUTO_UPDATE env var to suppress auto-update in GUI Mar 21, 2026
Copilot AI requested a review from Tyrrrz March 21, 2026 18:12
Comment thread DiscordChatExporter.Gui/StartOptions.cs Outdated
Copy link
Copy Markdown
Contributor Author
Copilot AI commented Mar 21, 2026

Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • av-build-tel-api-v1.avaloniaui.net
    • Triggering command: /usr/share/dotnet/dotnet dotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Copilot AI requested a review from Tyrrrz March 21, 2026 18:17
@Tyrrrz Tyrrrz marked this pull request as ready for review March 21, 2026 18:18
Copilot AI review requested due to automatic review settings March 21, 2026 18:18
@Tyrrrz Tyrrrz changed the title Add DISCORDCHATEXPORTER_ALLOW_AUTO_UPDATE env var to suppress auto-update in GUI Add DISCORDCHATEXPORTER_ALLOW_AUTO_UPDATE env var to suppress auto-update in GUI Mar 21, 2026
@Tyrrrz
Copy link
Copy Markdown
Owner
Tyrrrz commented Mar 21, 2026

@copilot formatting issues

Copy link
Copy Markdown
Contributor
Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a startup-level switch to fully disable the GUI auto-update system for package-based deployments by introducing an environment variable gate that affects both the update infrastructure and the Settings UI.

Changes:

  • Added StartOptions.IsAutoUpdateAllowed, controlled by DISCORDCHATEXPORTER_ALLOW_AUTO_UPDATE.
  • Prevented UpdateManager creation when auto-updates are disallowed (in addition to non-Windows short-circuiting).
  • Hid the auto-update Settings UI panel when auto-updates aren’t available.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
DiscordChatExporter.Gui/StartOptions.cs Introduces IsAutoUpdateAllowed and reads DISCORDCHATEXPORTER_ALLOW_AUTO_UPDATE to control update availability.
DiscordChatExporter.Gui/Services/UpdateService.cs Gates UpdateManager instantiation on Windows + IsAutoUpdateAllowed.
DiscordChatExporter.Gui/ViewModels/Dialogs/SettingsViewModel.cs Exposes IsAutoUpdateAvailable for UI binding (Windows + env var gate).
DiscordChatExporter.Gui/Views/Dialogs/SettingsView.axaml Switches visibility logic for the auto-update panel to bind to IsAutoUpdateAvailable.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread DiscordChatExporter.Gui/StartOptions.cs
Copy link
Copy Markdown
Contributor Author
Copilot AI commented Mar 21, 2026

@copilot formatting issues

Fixed in a1f16df — moved is { } env to an indented new line to match CSharpier's expected formatting.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • av-build-tel-api-v1.avaloniaui.net
    • Triggering command: /usr/share/dotnet/dotnet dotnet exec --runtimeconfig /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/runtimeconfig.json /home/REDACTED/.nuget/packages/avalonia.buildservices/11.3.2/tools/netstandard2.0/Avalonia.BuildServices.Collector.dll (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

@Tyrrrz Tyrrrz merged commit 4a62f9c into prime Mar 21, 2026
25 checks passed
@Tyrrrz Tyrrrz deleted the copilot/add-disable-auto-update-switch branch March 21, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

0