Skip to content

refactor(keychain-manager): use native JNA for KeychainManager - #772

Merged
haiphucnguyen merged 2 commits into
mainfrom
feature/windows-keychain-manager-improvements
Oct 18, 2026
Merged

haiphucnguyen merged 2 commits into
mainfrom
feature/windows-keychain-manager-improvements

Conversation

@haiphucnguyen

@haiphucnguyen haiphucnguyen commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Introduced full local LLM download lifecycle management (binary and models).
  • Enhanced local LLM server monitoring with detailed startup failure diagnostics.
  • Overhauled Windows credential handling using JNA for secure key storage.
  • Refactored proxy configuration logic for increased robustness and reliability.
  • Updated the settings UI to simplify the local LLM engine activation flow.

Related Issue(s)

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • 💥 Breaking change
  • 📝 Documentation
  • ♻️ Refactor (no functional change)
  • 🧪 Tests
  • 🔧 Chore / tooling / CI

What Changed & Why

How to Test

./gradlew test

Screenshots / Recordings (if applicable)

Checklist

  • I have read the CONTRIBUTING guide
  • My branch is up to date with main
  • I ran ./gradlew spotlessApply and ./gradlew detekt locally
  • I ran ./gradlew test and all tests pass
  • I added/updated tests for my changes (if applicable)
  • I added/updated documentation (if applicable)
  • My commits are signed off (DCO) — git commit -s
  • This PR is focused on a single feature/fix

Additional Notes

Copilot AI balanced review requested due to automatic review settings October 18, 2026 01:38

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

- Introduced full local LLM download lifecycle management (binary and models).
- Enhanced local LLM server monitoring with detailed startup failure diagnostics.
- Overhauled Windows credential handling using JNA for secure key storage.
- Refactored proxy configuration logic for increased robustness and reliability.
- Updated the settings UI to simplify the local LLM engine activation flow.

BREAKING CHANGE: The implementation of credential storage in `KeychainManager` uses direct JNA calls to the Credential Manager API. Consumers accessing this module must adapt to the new API contract.

BREAKING CHANGE: The `ProxyUtil` logic has been significantly refactored. Changes to proxy setup (selection and authentication) must be adapted to the new internal structure.

Refs: #<TICKET_NUMBER>
@haiphucnguyen
haiphucnguyen force-pushed the feature/windows-keychain-manager-improvements branch from 407a427 to 290163c Compare October 18, 2026 06:22
@haiphucnguyen
haiphucnguyen merged commit 63254df into main Oct 18, 2026
13 checks passed
@haiphucnguyen
haiphucnguyen deleted the feature/windows-keychain-manager-improvements branch October 18, 2026 06:49
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