AstrBot-Desktop/CHANGELOG.md
YokiiroBW 58a98d3c94 docs(reports): record the source audit, fix queue, and R1/R2 results
Adds the 2026-07-26 full-source audit and the execution-ordered fix queue, and
records what actually happened when R1 and R2 were verified:

- R1 had never been compiled. The gate found a type error introduced by its own
  `.nullish()` widening and a lint failure from a non-component export, plus one
  acceptance test that was specified but never written.
- R2 landed F-10 through F-13, and an adversarial review of it surfaced three
  defects the batch had itself introduced, all fixed in the same batch.
- The review subagents ran against the live working tree and left mutations
  behind, including a deliberate duplicate POST inside the stream error path.
  That injected code was briefly mistaken for a real HTTP-stack defect. It has
  been removed and the process note recorded so review runs are isolated next
  time.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-26 23:12:57 +08:00

6.5 KiB

Changelog

[0.1.0-alpha.2] - 2026-07-20

Added

  • Q6-Q8 companion state, multi-monitor safe placement, read-only diagnostics, proactive-message handling, quiet hours, and Web Speech MVP.
  • Q9 local session recovery marker and release validation checklist.

Fixed

  • Streaming chat history isolation and completed-message persistence across both slots.
  • Tray exit, hidden-window cleanup, and release build packaging regressions.

Notes

  • This is an unsigned local Windows build. Automatic updates and code signing are not configured.

Unreleased

Added

  • Q10-Q15 chat experience increment: lightweight Markdown rendering, message actions, generation controls, session actions, connection controls, and responsive chat layout.
  • AstrBot OpenAPI adapter foundation: SSE mapper, dual-slot runtime skeleton, credential enrollment IPC, transport-aware profiles (ADR-0005). All notable changes to this project will be documented in this file.

The format follows Keep a Changelog, and versions follow Semantic Versioning.

[Unreleased]

Fixed

  • Long-lived event streams are no longer killed by a total request timeout. Streaming endpoints now use a separate HTTP client with idle-based read_timeout detection, so a desktop-v1 connection survives past 30 seconds and an AstrBot reply may take longer than two minutes.
  • Chinese and other multi-byte text no longer turns into replacement characters when a character straddles two network chunks; the SSE stream is now split into lines at the byte level.
  • A chat message is no longer resent after AstrBot has started answering it, which previously duplicated both the question and the answer in the remote conversation. A stream that breaks mid-reply now reports a distinct error so it can be retried manually.
  • A long reply no longer makes the rest of its slot report "not connected" while it streams, so attachments, session lists, and capability lookups keep working during generation.
  • Stopping generation, or losing the stream mid-reply, now finalizes the message. It could previously stay marked as generating, including after a restart.
  • Stopping generation no longer flickers the connection status to disconnected and back.
  • Corrected a session-timestamp type and moved a link-safety helper out of a component module, both of which broke the type and lint gates for the previous batch.

Changed

  • Synchronized the 13-item roadmap status with the actual P02 implementation state.
  • Documented external prerequisites for HTTPS certificate pinning, signed updates, and dual-server soak testing.
  • Fixed duplicate optimistic chat messages when switching sessions repeatedly.

Added

  • Authoritative architecture, implementation, and repository workflow documents.
  • Repository rules, ignore rules, implementation plan, progress tracking, and decision log.
  • Tauri 2, React, TypeScript, Vite, and Rust workspace skeleton with tray and single-instance lifecycle.
  • Independent companion and operations REST/SSE clients with local profile binding, cancellation, reconnect, Last-Event-ID, and per-slot deduplication.
  • Windows Credential Manager, bounded UI Automation, selected-window in-memory capture, Event Log, process, port, foreground-window, authorized log-tail, configuration parsing, and redaction Spikes.
  • Recoverable plan/dry-run/copy/verify/commit file transactions with no-overwrite conflict policies and source preservation.
  • Composite-key SQLite isolation for profile, server, conversation, message, cursor, proposal, and transaction data.
  • Provisional desktop-v1alpha1 Rust types, TypeScript exports, ten JSON Schemas, drift checks, and two loopback-only Mock Gateway instances.
  • Frontend, browser, Rust, integration, Windows provider, soak, and Forgejo CI test entry points.
  • P00 dependency review and durable Spike result records.
  • Persistent SQLite application-data initialization with transactional user_version migration and future-version rejection.
  • Strict Zod validation for the Rust bootstrap IPC payload, including the active database schema version.
  • Redacting tracing output writer with structured-field, bearer-token, URL-credential, private-key, and known-secret coverage.
  • P01 migration, logging, IPC validation, real Tauri startup, and production-build verification.
  • SQLite schema v2 for persistent non-sensitive ConnectionProfile metadata.
  • Bounded Rust-owned Profile list/create/update/delete IPC with generated UUIDs and timestamps.
  • Strict frontend ConnectionProfile Schemas and a basic Profile management UI.
  • Migration, five-Profile CRUD, persistent reopen, secret-field rejection, and browser fallback tests.
  • Persistent dual companion/operations slot assignment with SQLite schema v3 and bounded list/assign/clear IPC.
  • Auto-connect configuration validation for at most two Profiles with distinct slots.
  • Runtime operations switch guard that blocks operations slot changes while an operations task is active.
  • Duplicate server_instance_id warnings without silently merging Profiles.

Fixed

  • Scoped AstrBot stream event ids per chat request so the second and later messages on a connection are no longer discarded by the client-side event deduplicator.
  • Accepted Rust null values in the runtime-event, remote-session, and model-option frontend contracts, restoring streaming events, remote session lists, and file upload.
  • Serialized AstrBot model options in camelCase to match the frontend contract.
  • Allowed blob: images in the production Content Security Policy so chat attachments render in release builds.
  • Granted the desktop pet window a Tauri capability so its IPC and event listeners work.
  • Corrected the pet pack manifest image pattern, which previously rejected every valid pack.
  • Restricted rendered markdown links to http, https, and mailto and added rel="noopener".
  • Replaced [object Object] IPC error text with the message returned by Rust.
  • Restored corrupted user-facing strings and an accessibility label in the pet view and shell.

Security

  • Kept credentials and native capabilities in Rust; the React capability set remains core:default only.
  • Added secret redaction and repository scans; no arbitrary PowerShell, CMD, shell, input-injection, registry-write, or unrestricted filesystem API is exposed.
  • Kept real UNC writes, signing keys, updater keys, and release secrets outside P00.
  • Rejected Token, password, API Key, URL credential, query-string credential, and unknown fields at the Profile IPC boundary.
  • Required explicit approval for insecure HTTP and kept slots, connections, and credential enrollment outside P01.