Skip to content

Personalize stance example#11

Merged
xangcastle merged 11 commits intomainfrom
xangcastle/personalize-stance-example
Jan 27, 2026
Merged

Personalize stance example#11
xangcastle merged 11 commits intomainfrom
xangcastle/personalize-stance-example

Conversation

@xangcastle
Copy link
Copy Markdown
Owner

@xangcastle xangcastle commented Jan 27, 2026

This pull request introduces several significant updates to the Ronin IntelliJ plugin, focusing on improved configuration management, enhanced command execution, and overall codebase simplification. The most notable changes include the removal of the RoninConfigService, expanded support for stance configuration (including execution commands and descriptions), enhancements to the shell command execution logic, and improvements to the LLM service's prompt construction and credential handling.

Configuration and Stance Management Improvements:

  • Removed the RoninConfigService and all related project context/rules logic, simplifying how file and context information is gathered throughout the plugin. (src/main/kotlin/com/ronin/service/RoninConfigService.kt [1] src/main/kotlin/com/ronin/actions/BaseRoninAction.kt [2] src/main/kotlin/com/ronin/service/LLMService.kt [3]
  • Expanded stance configuration in the settings UI to support new fields: description and execution command. These fields are now editable, persisted, and loaded as part of each stance. The UI also disables editing when locked by admin, and includes better state management for stance selection. (src/main/kotlin/com/ronin/settings/RoninSettingsConfigurable.kt [1] [2] [3] [4] [5]

Shell Command Execution Enhancements:

  • Improved shell detection and command execution in TerminalService to use the user's preferred shell (with fallbacks), run in interactive/login mode, and handle environment variables more robustly. Added better process interruption and error handling. (src/main/kotlin/com/ronin/service/TerminalService.kt src/main/kotlin/com/ronin/service/TerminalService.ktL14-R63)

LLM Service and Prompt Construction:

  • Updated the LLM system prompt to include the new execution command and improved instructions for tool usage, including stricter anti-hallucination rules and explicit command configuration. (src/main/kotlin/com/ronin/service/LLMService.kt [1] [2]
  • Enhanced credential resolution for OpenAI stances to support base64-decoded encrypted keys as a fallback. (src/main/kotlin/com/ronin/service/LLMService.kt src/main/kotlin/com/ronin/service/LLMService.ktL116-R124)

General Codebase Maintenance:

  • Bumped the plugin version to 2.6.0 in preparation for release. (gradle.properties gradle.propertiesL7-R7)
  • Minor bug fixes and improvements, including safer document handling in EditService and improved JSON model parsing in LLMService. (src/main/kotlin/com/ronin/service/EditService.kt [1] [2] src/main/kotlin/com/ronin/service/LLMService.kt [3]

These changes collectively improve the plugin's configurability, reliability, and maintainability.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 27, 2026

Qodana Community for JVM

4 new problems were found

Inspection name Severity Problems
Incorrect string capitalization 🔶 Warning 1
Usage of redundant or deprecated syntax or deprecated symbols 🔶 Warning 1
Unused import directive 🔶 Warning 1
Unused symbol 🔶 Warning 1

💡 Qodana analysis was run in the pull request mode: only the changed files were checked

View the detailed Qodana report

To be able to view the detailed Qodana report, you can either:

To get *.log files or any other Qodana artifacts, run the action with upload-result option set to true,
so that the action will upload the files as the job artifacts:

      - name: 'Qodana Scan'
        uses: JetBrains/qodana-action@v2025.1.1
        with:
          upload-result: true
Contact Qodana team

Contact us at qodana-support@jetbrains.com

@xangcastle xangcastle marked this pull request as ready for review January 27, 2026 11:08
@xangcastle xangcastle merged commit 1d7f40c into main Jan 27, 2026
2 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.

1 participant