Skip to content

Conversation

@dest4590
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings September 29, 2025 17:28
@dest4590 dest4590 merged commit 1e5dbd1 into main Sep 29, 2025
1 of 4 checks passed
Copy link

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

This PR introduces CI/CD improvements and removes unused "cordshare" functionality from the codebase.

  • Adds automated artifact cleanup and prerelease management scripts
  • Removes cordshare feature from client settings and agent arguments
  • Cleans up debug logging in client commands

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
src-tauri/src/core/storage/settings.rs Commented out cordshare setting definition
src-tauri/src/core/clients/internal/agent_overlay.rs Removed cordshare field from AgentArguments struct and methods
src-tauri/src/core/clients/client.rs Commented out cordshare setting usage in client initialization
src-tauri/src/commands/clients.rs Removed debug log statement from get_app_logs function
scripts/remove_releases.py Added Python script for managing GitHub prerelease cleanup
.github/workflows/cleanup-artifacts.yml Added GitHub workflow for automated artifact cleanup
Comments suppressed due to low confidence (1)

src-tauri/src/core/clients/internal/agent_overlay.rs:1

  • The commented self.cordshare argument should be completely removed from the log_info! macro call rather than commented out.
use crate::core::network::servers::SERVERS;

Comment on lines 17 to 21
token: String,
client_name: String,
analytics: bool,
cordshare: bool,
// cordshare: bool,
ircchat: bool,
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

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

Instead of commenting out the cordshare field, it should be completely removed from the struct definition to avoid dead code. The commented code can cause confusion and should be cleaned up.

Copilot uses AI. Check for mistakes.
Comment on lines 26 to 30
token: String,
client_name: String,
analytics: bool,
cordshare: bool,
// cordshare: bool,
ircchat: bool,
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

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

The commented cordshare parameter should be removed from the constructor function signature rather than commented out to maintain clean code.

Copilot uses AI. Check for mistakes.
Comment on lines 32 to 38
Self {
token,
client_name,
analytics,
cordshare,
// cordshare,
ircchat,
}
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

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

Remove the commented cordshare field assignment from the struct initialization to eliminate dead code.

Copilot uses AI. Check for mistakes.
discord_rpc_enabled: Setting<bool> = (true, true),
optional_telemetry: Setting<bool> = (true, true),
cordshare: Setting<bool> = (true, true),
// cordshare: Setting<bool> = (true, true),
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

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

Instead of commenting out the cordshare setting, it should be completely removed from the settings definition to avoid confusion and maintain clean code.

Suggested change
// cordshare: Setting<bool> = (true, true),

Copilot uses AI. Check for mistakes.
let app_handle_clone_for_crash_handling = options.app_handle.clone();
let optional_analytics = SETTINGS.lock().is_ok_and(|s| s.optional_telemetry.value);
let cordshare = SETTINGS.lock().is_ok_and(|s| s.cordshare.value);
// let cordshare = SETTINGS.lock().is_ok_and(|s| s.cordshare.value);
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

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

Remove the commented cordshare variable declaration entirely rather than leaving it as a comment to maintain clean code.

Suggested change
// let cordshare = SETTINGS.lock().is_ok_and(|s| s.cordshare.value);

Copilot uses AI. Check for mistakes.
optional_analytics
},
cordshare,
// cordshare,
Copy link

Copilot AI Sep 29, 2025

Choose a reason for hiding this comment

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

The commented cordshare argument should be completely removed from the AgentArguments::new call rather than commented out.

Suggested change
// cordshare,

Copilot uses AI. Check for mistakes.
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