Skip to content

Conversation

@iptton
Copy link
Collaborator

@iptton iptton commented May 28, 2025

No description provided.

iptton and others added 19 commits April 17, 2025 10:44
…vious inlay panel when new one shown

Handle ESC key to dispose inlay panel and cleanup resources. Track current panel instance for proper disposal

close phodal#375
# Conflicts:
#	gradle.properties
…I, delete functionality, and improved editing experience
Relocate markdown documentation files to the .augment subdirectory for better organization.
@iptton iptton requested a review from Copilot May 28, 2025 02:15
Copy link
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

This PR refactors the LLM settings system by migrating legacy configurations, introducing a simplified settings UI and configuration wizard, and integrating GitHub Copilot as an LLM provider.

  • Add automatic migration tool and configuration wizard for new users
  • Replace legacy fields with a unified LlmConfig and CustomRequest model, deprecating old settings
  • Integrate GitHub Copilot support via new manager and provider classes

Reviewed Changes

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

Show a summary per file
File Description
LegacyConfigMigration.kt Adds legacy-to-new config migration and user prompt UI
LLMConfigurationWizard.kt New wizard dialog to help users configure their first LLM
AutoDevSettingsState.kt Deprecates old fields; adds new fields for custom LLMs
AutoDevSettingsConfigurable.kt Hooks migration and wizard into settings UI lifecycle
LlmFactory.kt Switches from legacy provider to new adapter
LLMProviderAdapter.kt Bridges old provider interface to new LLMProvider2
LlmConfig.kt Overhauls model config class; adds Copilot detection/creation
CopilotModels.kt Deserializes GitHub Copilot models into LlmConfig
LLMProvider2.kt Enhances streaming/HTTP logic; adds factory for Copilot
GithubCopilotProvider.kt & GithubCopilotManager.kt OAuth, token management, and Copilot-specific streaming
GithubCopilotModelInitActivity.kt & autodev-core.xml Registers Copilot init activity on startup
(multiple .augment files) Documentation summaries
Comments suppressed due to low confidence (1)

core/src/main/kotlin/cc/unitmesh/devti/settings/LegacyConfigMigration.kt:17

  • No tests cover the legacy migration logic—consider adding unit tests for migrateIfNeeded and performMigration to ensure migration paths remain reliable.
fun migrateIfNeeded(): Boolean {

iptton and others added 2 commits May 28, 2025 10:19
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
@phodal phodal merged commit ddb03a2 into phodal:master May 28, 2025
3 of 4 checks passed
@iptton
Copy link
Collaborator Author

iptton commented May 28, 2025

close #391

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