# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [0.2.1] - 2026-06-11 ### Added - ๐Ÿ” **Global search modal.** New unified search (โŒ˜K / โŒ˜โ‡งF) that finds chats by title *and* message content, plus files by name โ€” across all workspaces or scoped to the active one. Shows recent chats when the query is empty. Replaces the old QuickOpen modal. - ๐ŸŒ **Perplexity web search provider.** Added Perplexity as a first-class search provider (auto-detected between Exa and Tavily when `PERPLEXITY_API_KEY` is set). - ๐ŸŒ **Chat Completions search provider.** Any OpenAI-compatible `/chat/completions` endpoint (e.g. Perplexity Sonar, LiteLLM proxy) can now be used for web search. Configure via Settings or environment variables. - โž• **New Chat button per workspace.** Each workspace row in the sidebar now shows a pencil icon on hover to quickly create a new chat. ### Fixed - ๐Ÿ” **Search no longer pinned to last workspace.** When on a non-workspace page (e.g. Automations), search results are now global instead of silently scoped to the last-selected workspace. - ๐Ÿ”„ **Sidebar chat cache invalidated globally.** Chat events from automations or other tabs now clear the cache for *all* workspaces, so re-expanding any workspace shows fresh data. - ๐Ÿ”„ **New chats from automations appear in landing page.** The chat landing now debounce-reloads when it receives a socket event for an unknown chat, so automation-created chats appear without a manual refresh. - ๐Ÿท๏ธ **Chat tab labels update from DB title.** Opening a chat from search or sidebar now shows the real title instead of a generic "Chat" label. - ๐Ÿ” **Duplicate new-chat tabs prevented.** Opening a new chat reuses an existing empty/pending chat tab instead of creating duplicates. ### Changed - ๐Ÿ”— **URL-driven navigation for chat and file intents.** Clicking a chat or file in the sidebar/search now uses URL query params (`chatId`, `file`, `dir`) which are consumed and cleaned up after navigation, enabling deep-linking and back-button support. - ๐Ÿž **Improved toast notifications.** Toaster now uses rich colors and close buttons for better visibility. - ๐Ÿ”’ **Automations sidebar link hidden when chat is disabled.** The Automations nav item is now conditionally shown only when the chat/LLM backend is available. - โฌ†๏ธ **Python 3.10 minimum.** Bumped `requires-python` from `>=3.9` to `>=3.10`. - ๐Ÿ“ฆ **Added `truststore` dependency.** Uses platform-native TLS certificate stores for better certificate handling. - ๐ŸŒ **i18n for search UI.** Search-related strings added across all 10 supported locales. ## [0.2.0] - 2026-06-09 ### Added - โฑ๏ธ **Automations.** Schedule recurring tasks that run on a timer. Each automation creates a real chat with full tool access, so they can do anything you'd do manually. Manage them from the new `/automations` page or ask the AI to create one. - ๐Ÿ”” **Task completion notifications.** Get a browser notification (with optional sound) when a background task finishes. Toggle in Settings > General. - ๐Ÿช **Webhook notifications.** Send alerts to Slack, Discord, Teams, or any webhook URL when tasks complete. Configure in Settings > General. - ๐Ÿ’ฌ **Sidebar chat history.** Each workspace now shows its recent chats directly in the sidebar. Click to reopen, updates live as new chats come in. - ๐Ÿ—ƒ๏ธ **Config file sync.** Settings now persist to `config.toml` on disk, so your configuration survives across reinstalls and can be hand-edited. ### Changed - ๐ŸŽจ **Improved artifact cards.** File previews in chat now show a file icon and cleaner styling. ## [0.1.9] - 2026-06-07 ### Fixed - ๐Ÿ“ฆ **PyPI install actually works now.** Hatchling's `exclude` took precedence over `artifacts`, causing every published wheel to ship without the frontend build. The app returned `{"detail":"Not Found"}` on all non-API routes. Switched to `force-include` (matching open-webui's approach), which unconditionally bundles `cptr/frontend/build` into the wheel regardless of exclude rules. ## [0.1.8] - 2026-06-07 ### Fixed - ๐Ÿ“ฆ **Attempted PyPI wheel fix (incomplete).** Changed hatchling `exclude` from a single broad pattern to granular excludes, but the `artifacts` directive still did not override `exclude`. Wheel still shipped without the frontend. ## [0.1.7] - 2026-06-07 ### Fixed - ๐Ÿ”„ **Messages no longer disappear after sending.** Fixed a race condition where the frontend needed a separate GET request after sending a message, creating a window where socket events were dropped. The POST now returns the created messages directly, eliminating the round-trip and the race. ## [0.1.6] - 2026-06-07 ### Added - ๐Ÿ“‹ **Plan mode.** Request an implementation plan before AI changes. ### Fixed - ๐Ÿ”’ **Protected `.env` files.** File tools and search now block `.env` and `.env.*` access. ### Changed - โœจ **Cleaner artifact cards.** Simplified assistant artifact card headers and preview text. ## [0.1.5] - 2026-06-07 ### Fixed - ๐Ÿ—„๏ธ **Alembic migration no longer fails on startup.** Renamed migration revision IDs from 3-character (`001`) to 4-character (`0001`) identifiers, fixing Alembic's `ResolutionError` for partial revision matches. - ๐Ÿ“ฆ **PyPI wheel no longer bundles frontend source code.** Fixed `.gitignore` paths (old `computr/` โ†’ `cptr/`) and added an explicit `exclude` in `pyproject.toml` so only `cptr/frontend/build` ships in the wheel โ€” eliminating ~14,000 unnecessary files including `node_modules`. ## [0.1.4] - 2026-06-06 ### Fixed - ๐Ÿ”„ **Chat streaming no longer drops final content.** Fixed a race where the `done` socket event arrived before the DB commit, causing a transient blank message. The streamed content now stays visible until the reload confirms it. - ๐Ÿ”„ **Unflushed text no longer lost at end of chat responses.** The final text buffer is now properly flushed and emitted before marking a message as done, across all exit paths (normal completion, cancellation, and errors). - ๐Ÿ”„ **Intermediate chat state persisted during tool loops.** Content and output items are now saved to the database between tool call iterations, so progress survives crashes or disconnects. - ๐Ÿงน **In-memory task state cleaned up on completion.** The `_task_state` dict entry is now removed when a chat task finishes (done, cancelled, errored, or max iterations), preventing unbounded memory growth. - ๐Ÿ“ฑ **Sidebar stays closed on mobile.** The sidebar default breakpoint was raised to 1024px and an auto-close listener now collapses it whenever the viewport shrinks below 768px. - ๐Ÿ”„ **Stale chat loads discarded.** Rapid chat switches no longer apply data from a slow earlier load, fixing a race condition that could show the wrong conversation. ### Changed - โšก **All blocking filesystem I/O offloaded to threads.** File reads, writes, directory walks, search, archive creation, uploads, renames, and deletions in the workspace and tool routers now run via `asyncio.to_thread()`, preventing event-loop stalls under heavy file operations. - โšก **Port scanner made fully async.** Platform-specific port scanning (Darwin `lsof`, Linux `/proc`, Windows `netstat`) and PID-to-process lookups now use `asyncio.create_subprocess_exec` or `asyncio.to_thread` instead of blocking `subprocess.run`. - โšก **Welcome endpoint system info collected off the event loop.** The `/welcome` handler now gathers hostname, memory, disk, CPU, network, and process data in a background thread. ## [0.1.3] - 2026-06-06 ### Fixed - ๐Ÿ“ฑ **Tool calls no longer overflow on mobile.** Fixed tool call rendering that could exceed the parent container width on narrow screens. - ๐Ÿ“ฑ **Settings tabs scroll horizontally on mobile.** The settings tab bar now scrolls on narrow screens instead of overflowing. ### Changed - ๐Ÿ”ค **Tool call labels show filenames instead of full paths.** Tool call summaries like `Read`, `Edit`, and `Write` now display just the filename (e.g. `Read stores.ts`) instead of the full absolute path, keeping labels readable on all screen sizes. - ๐Ÿ“‹ **Redesigned changelog modal.** The changelog is now presented as a clean, continuous vertical list with color-coded section badges. ## [0.1.2] - 2026-06-06 ### Fixed - ๐Ÿ“ฑ **Improved mobile keyboard handling.** The terminal and chat now resize correctly when the on-screen keyboard opens on iOS and Android. - ๐Ÿ“ฑ **Fixed page bouncing on mobile.** Eliminated unwanted page scrolling and bounce effects on touch devices. ### Changed - ๐Ÿ”„ **Model selection syncs across devices.** Your selected chat model now persists across browsers and devices instead of being saved locally. ## [0.1.1] - 2026-06-06 ### Fixed - ๐Ÿ›‘ **File browser no longer refreshes constantly.** Replaced the macOS `PollingObserver` (which generated a feedback loop of phantom filesystem events) with the native `FSEventsObserver`. Background refreshes are now silent โ€” no more loading spinner flash on every update. - ๐Ÿ”‡ **Eliminated noisy filesystem watcher events.** The watcher now ignores changes in `.git`, `__pycache__`, `.DS_Store`, and `node_modules` directories, which were triggering unnecessary file browser refreshes. - โšก **Centralized git status store.** All components (GitBar, GitView, FileEditor, layout) now share a single `gitStatusStore` instead of each independently polling `git/status`. On page load, this reduces git status API calls from ~6+ down to 1. - ๐Ÿ” **Reduced git polling frequency.** Removed the 5-second git status polling intervals that were running in multiple components simultaneously. ## [0.1.0] - 2026-06-06 ### Added - ๐Ÿš€ **Initial release.** First public version of cptr: your computer, from anywhere. Code, manage, and control your machine from the web. - ๐Ÿ–ฅ๏ธ **Terminal emulator.** Full PTY-backed terminal accessible from the browser with support for macOS and Linux. - ๐Ÿ’ฌ **AI chat.** Built-in chat panel with multi-provider LLM support (OpenAI, Anthropic, Ollama, and OpenAI-compatible endpoints), model selector, tool calling, and streaming responses. - ๐Ÿ”ง **Tool system.** Extensible tool framework enabling AI agents to interact with the local filesystem, run commands, search the web (Brave, DuckDuckGo, Exa, Tavily), and read URLs. Streaming JSON parser for improved tool-calling reliability. - ๐Ÿ“Ž **File mentions.** Type `@` in the chat input to mention files with an inline suggestion popup, giving the AI context about your codebase. - ๐Ÿ”„ **Queued messages.** Queue follow-up messages while the AI is responding โ€” they'll be sent automatically when the current response completes. - โœ๏ธ **Output editing.** Review and edit AI-generated file changes before applying them. - ๐Ÿ“ **File browser.** Web-based file explorer with directory navigation, file viewing, file icons by extension, and management capabilities. - โŒจ๏ธ **Keyboard shortcuts.** Customizable keybinding system with a dedicated settings panel, including support for new-tab, quick-open, and other common actions. - ๐Ÿ“ **Resizable sidebar.** Drag-to-resize sidebar with persistent width and smooth panel resize handles. - ๐Ÿ” **Quick open.** Cmd+K modal with keyboard pill hints for fast file and command navigation. - ๐ŸŒ **Proxy middleware.** Reverse-proxy system for forwarding local ports with automatic port detection and notification. - ๐Ÿ“ **Workspace management.** Manage multiple project directories from a single instance. - ๐Ÿ“Š **Chat history.** Persistent chat list with automatic title generation, scrolling, and pagination. - ๐Ÿ” **Authentication.** Username/password authentication with JWT-based session management. - ๐ŸŽจ **Admin settings.** Settings UI for managing AI connections and app configuration. - ๐Ÿณ **Docker support.** Multi-stage Dockerfile and GitHub Actions workflow for building and publishing to GHCR. - ๐Ÿ“ฆ **PyPI packaging.** Hatchling-based build with frontend assets bundled into the wheel, published via trusted OIDC publishing.