Repository navigation
v1.3.1
Changelog
All notable changes to the KDE AI Chat project will be documented in this file.
The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.
[1.3.1] - 2026-07-22
Fixed
- 🗣️ Voice Service Autostart Management: Fixed an issue where systemd user units (
kde-ai-stt.serviceandkde-ai-tts.service) remained enabled and autostarted on system reboot even when voice tools were toggled off in settings. Toggling voice tools or TTS off now disables systemd autostart units (systemctl --user disable --now), and widget startup automatically syncs systemd service state to avoid unnecessary background RAM usage.
[1.3.0] - 2026-07-21
Added
- ■ Global TTS Stop Button: Added an interactive global Stop (■) button to the bottom chat status bar during voice generation/playback, allowing instant interruption of text-to-speech.
- 📚 Streamlined Step-by-Step Setup Guide: Completely redesigned
VOICE_SETUP.mdwith clear distros requirements (Ubuntu, Arch, Fedora, openSUSE) and explicit environment steps. - 📸 10-Image Screenshot Gallery: Refactored the
README.mdto feature 10 newly-updated screenshots displaying settings, task scheduler, voice tools, and system memory monitors.
Fixed
- 🗣️ Local Voice Mode GPU Support: Fixed a bug where Voice STT/TTS would silently fall back to CPU despite GPU/CUDA libraries being installed. Ensured venv CUDA libs are preloaded before PyTorch checks device availability.
⚠️ Voice Installation Disclaimers: Added time and storage requirement warnings to the setup guide to manage user expectations during machine learning framework installation.
[1.2.9] - 2026-07-20
Added
- 🗣️ Local Voice Tools Integration: Documented Voice Mode and local setup for Whisper Speech-to-Text and Kokoro Text-to-Speech in the primary README and verified compatibility lists.
- 📅 Background Task Scheduler: Promoted the systemd-integrated cron task scheduler daemon to a first-class supported feature.
- 📚 Documentation Updates: Refactored README, VOICE_SETUP, and file catalogs to match the current release structure.
Fixed
- Voice Mode State Leakage & Controls: Fixed voice status leakage across different chat sessions by centralizing the playback tracker in the root
main.qmlcomponent. Switching chat sessions or creating new ones now properly halts current voice generation, stops playback, and cleans up UI states. - Manual TTS Stop Buttons: Enabled manual TTS stop action on spoken assistant responses.
- Voice Playback Race Condition: Fixed a race condition in
voice_helper.pywhere starting a new TTS session while one was active could cause state collisions. Added thread joins to wait for the previous synthesis thread to clean up before initiating the new playback. - Scheduler Auto-Archive and Limits: Migrated and updated the scheduler task tracking logic in
kde-ai-scheduler.pyto auto-archive completed scheduled tasks and show run counts inScheduleDialog.qml. - Repository Cleanup: Removed unused pre-production testing scripts and temporary log files from git tracking.
[1.2.8] - 2026-05-28
Added
- 6-Part Demonstration Walkthrough Videos: Replaced the outdated 2-part walkthrough with a brand new, highly comprehensive 6-part video walkthrough series under
.github/assets/spanning all widget capabilities.
Fixed
- API Key Config Save Fix: Resolved a critical race condition in the KCM initialization lifecycle where empty API key values were flushed over user credentials before
cfg_aliases fully loaded. - Settings Auto-Save & Cleanup: Removed the redundant manual "Save keys to config file" action button; keys are now fully auto-saved on switch and when closing/destroying the settings panel.
- Always-Visible Clear Chat Button: Kept the "Clear current chat history" button visible at all times in the chat view to prevent header layout shifting, disabling it dynamically when there are no messages to clear.
- Repository Streamlining & Clean Packaging: Purged unused development assets and the deprecated scratchpad file
scratch_config_v126.qmlfrom the root directory.
[1.2.7] - 2026-05-27
Added
- Secure KWallet & Configuration Sync: Replaced the old KWallet toggle with an automated background synchronization mechanism. API keys entered in settings are securely saved to KWallet via DBus, and fall back to local configuration (
~/.config/kdeaichatrc) if KWallet is unavailable. - Configuration Auto-Save: Settings are now persisted automatically as the user types — no Apply button click required. The configuration is written to disk immediately on change.
- Chat Export: Export any conversation to a
.mdor.txtfile via the chat toolbar. The save dialog is pre-filled with<chat_title>_<timestamp>.<ext>as the default filename. Exports use full UTF-8 encoding and include a formatted header with role labels, timestamps, and the export date. - Right-Aligned User Bubbles: User messages are now right-aligned with a distinct bubble style, mirroring modern messaging UIs. AI responses and system messages remain left-aligned.
- LiteLLM Proxy Provider: Added LiteLLM Proxy as a fully supported 17th provider. Connects to any LiteLLM-compatible server (default
http://localhost:4000/v1). API key is optional for keyless local proxy setups. Full model discovery, KWallet/plain-config key storage, and model selection are all supported, enabling routing to 100+ LLMs through a single unified proxy.
Fixed
- Base64 Config Serialization: Rewrote config payload handling to use base64 encoding when passing data through shell commands, eliminating all bash double-quote stripping and config parsing errors that occurred with special characters in API keys.
- Config File Race Condition: The config file and its parent directory are now guaranteed to exist before
xdg-openis called, preventing the "empty file" bug where opening the config showed a blank file. - KConfig Caching: Implemented physical plainconfig loading and synchronous pre-open writing to bypass KConfig's in-memory cache, ensuring the file on disk always reflects the current UI state.
- Duplicate xaiApiKey assignment: Removed an accidental double-assignment of
xaiApiKeyField.textinapplyPlainConfigKeys.
[1.2.6] - 2026-05-23
Added
- Multi-Format Document & File Attachments: Added drag-and-drop and copy-paste support for document attachments (Images, Word files, PDFs, CSVs, etc.) directly into the chat input field.
- Text-Free Attachment Submissions: Allows users to dispatch queries consisting solely of attachment files (images, documents) without forcing textual prompt input.
- Message Editing & History Rewind: Modifying an older user prompt now cleanly deletes all messages following it and re-runs the query, allowing users to rewind the chat history from the edited prompt.
- Viewport-Aware Question Navigation: Added Up/Down tool navigation buttons in the toolbar to cycle between user questions based on the active scroll viewport, with fallback index checking to prevent empty page scrolling.
- NVIDIA NIM & OpenRouter Attribution: Fully updated all NVIDIA configurations to the standard "NVIDIA NIM" terminology. Added HTTP-Referer and X-Title metrics/attribution headers for OpenRouter API requests.
Fixed
- Scrollbar Stability (Layout Flickering): Added large cache buffers (
cacheBuffer: 20000on messages and5000on history) to prevent dynamic delegate recycling and scrollbar sizing/position jitter during scrolling. - Interactive Drag & Wheel Scrolling: Overhauled manual scroll detection by monitoring
contentYchanges and checking scrollbar active/pressed states to prevent automated snap-to-bottom actions from fighting the user's manual scroll. - API Key Whitespace Sanitization: Automatically
.trim()all keys when loading configurations, stripping accidental spaces/newlines copied from web browsers that trigger HTTP 401 Unauthorized errors. - NVIDIA NIM Error Field Parsing: Enhanced JSON response parsing in
doOpenAICompatRequestto capture and display custom API error fields (such asdetailormessage) returned by NVIDIA NIM and OpenRouter gateway endpoints.
[1.2.5] - 2026-05-22
Added
- Interactive Ctrl+Scroll Zooming: Added Ctrl+Scroll interactive zooming support (
0.75xto1.5xlayout scaling) for the settings configuration sheet, offering on-the-fly sizing adjustments.
Fixed
- Dynamic Sizing and Auto-Scaling: Completely overhauled the KCM configuration sheet to be dynamically responsive across all monitor aspect ratios and DPI scales. Enabled adaptive
wideMode(single-column under36gridUnits, two-column when wide) and boundLayout.preferredWidth: 0to all fields, comboboxes, text areas, and warning labels, eliminating horizontal stretching and LHS coordinate clipping.
[1.2.4] - 2026-05-22
Added
- Precise Bottom Scrolling: Re-engineered
scrollToBottom()list view controller to align to the absolute bottom coordinate (contentHeight - height) to ensure it scrolls precisely to the last line of the latest message instead of its midpoint. - Settings Theme Warning: Added a helpful system configuration note in the appearance theme label explaining that appearance preferences apply strictly to the main chat popup UI, while the KCM settings sheet style is natively driven by the host system.
Fixed
- Version Number Alignment: Updated
metadata.json'sKPluginblock to correctly show1.2.4so the About tab displays the actual current release version. - Redundant Size Control Elimination: Removed the redundant popupsize cycling ToolButton from the toolbar, as well as unused QML properties and timers, since drag-to-resize is natively supported by dragging the bottom-right corner.
- Documentation Refactoring: Removed the duplicate changelog section from
README.mdto establishchangelog.mdas the single source of truth, adding prominent KDE Store badge download hooks.
[1.2.3] - 2026-05-21
Added
- High-Performance Markdown-to-HTML Parser: Rebuilt Markdown rendering from the ground up! Written a custom, extremely optimized native JavaScript Regex parser to convert Markdown tags (bold, italic, links, headers, nested lists, inline code, and pre-formatted language code blocks) into high-performance HTML.
- Beautiful RichText Rendering Without Freezes: Switched the message label
textFormattoText.RichText. Qt's RichText layout engine renders this pre-compiled HTML instantly (<1ms), bringing back beautiful, rich formatting for AI responses with absolutely zero UI lag or system hangs.
[1.2.2] - 2026-05-21
Fixed
- System Hang — True Root Cause Found and Fixed: The actual cause was
textFormat: Text.MarkdownTexton the message content label. Qt's Markdown renderer converts the entire AI response into a QTextDocument rich-text tree — for long responses with code blocks, headers, and lists this takes 5–15 seconds and completely blocks the Plasma shell's single main thread. Switched toText.PlainTextas a temporary measure. - Dead Code Cleanup: Removed the now-unused SSE batch timer, buffer properties, and
flushSseBuffer()function left over from the v1.2.0 streaming experiment.
[1.2.1] - 2026-05-21
Fixed
- System Hang During AI Response (Partial): Removed streaming (
stream: false). This eliminated per-token writes but the hang persisted because the real bottleneck was the Markdown renderer, not the network layer.
[1.2.0] - 2026-05-21
Fixed
- System Hang During Streaming (Partial): Attempted to batch SSE token writes via an 80ms Timer to reduce rendering pressure. The fundamental problem (QML property binding storm on every token) remained under fast providers, so this was superseded by the v1.2.1 non-streaming fix.
- Long Chat Title Expanding the Window: The header title
Labelhad no width constraint, allowing very long session names to push toolbar buttons off-screen to the right. Now capped withLayout.maximumWidthso it always elides gracefully within the available space.
[1.1.0] - 2026-05-21
Added
- OpenCode Interactive Questions: Real-time interactive cards for prompt-based clarifications or input requests directly inside the chat bubbles, with Submit and Dismiss pathways.
- OpenCode Session ID Header Display: Real-time dynamic subtitle showing the active OpenCode session ID in the header area.
- Ollama Provider Integration: Out-of-the-box keyless support for local Ollama instances, pre-configured to point to
http://localhost:11434/v1and defaulting tollama3.2. - Optional KWallet Support: Toggle Secure KWallet credentials storage via a simple checkbox in settings. Disabling it saves API keys directly inside plain local configuration files for easier manual setups.
- Full Offline Local LLM Support: Keyless setup integration for local/offline engines (Ollama, LM Studio, or custom local OpenAI-compatible endpoints) without requiring dummy API keys.
- Comprehensive User Manual & FAQ Guide: Added a complete operational playbook and troubleshooting guide (
user_manual.md) covering KWallet setups, Ollama CORS, and OpenCode workflows.
Fixed
- OpenCode Freeze Bug: Refactored the network and stream connection logic to support robust async failure callback pipelines, completely resolving the "thinking" spinner hang.
- Dynamic Theme apply bug: Added strict
Kirigami.Themeoverrides and matching solid layouts in representations to honor Light and Dark appearance mode selections. - Repository Rename: Updated all links, descriptors, metadata files, and git configuration to point to the new home:
https://github.com/racstan/KDE-AI-Chat. - Repository Streamlining: Removed temporary provider validation scripts (
validate_providers.py) from distribution. - Stale URL Footprints: Updated all documentation (
KDE_STORE_PUBLISHING.md,README.md) and package instructions to strictly utilize the renamedKDE-AI-Chatendpoint URLs.
[1.0.0] - 2026-05-20
Added
- Initial Release of KDE AI Chat for KDE Plasma 6 & Qt 6.
- 13 API Providers: Multi-provider support (OpenAI, Anthropic Claude, Groq, DeepSeek, Google Gemini, OpenRouter, Mistral, Cloudflare Workers AI, NVIDIA, Hugging Face, xAI, LM Studio, local OpenAI-compatible).
- Session History Persistence: Elegant native calendar-grouped history panel.
- Smart Model Search: Real-time searchable dropdown box for model switching.
- Native Canvas Scaling: Drag-to-resize panel support.