# 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.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.