- Added Rust `AstrBotClient` for probe/list/send chat stream.
- Added `DualSlotRuntime` with activate/probe/send/deactivate skeleton.
- Added bounded credential enrollment IPC (`enroll_profile_credential` / `clear_profile_credential`) using Windows Credential Manager; secrets never returned to React.
- Added frontend transport fields and credential enrollment card.
- Recorded ADR-0005 and live probe report.
## In progress
- User acceptance of real-protocol foundation.
- Next product increments: chat panel rendering, history persistence, JWT login path, stronger server identity UX.
## Remaining
- Wire auto-connect startup to DualSlotRuntime without weakening secret boundary.
3. Optional auto-connect activation using enrolled credential references only.
## 2026-07-20: remote identity and runnable paper pet increment
- Added `remote_display_name` as a separate user-facing nickname; `remote_username` remains the validated ASCII protocol ID used for AstrBot session isolation.
- Migrated SQLite profiles to schema v9 without changing existing IDs or credentials.
- Passed the nickname through the Rust-owned AstrBot request boundary as an optional `nickname` field; secrets remain Rust-only.
- Added a transparent, borderless, skip-taskbar pet window with tray-resident hide-on-close behavior and a small CSS 2D paper-character state loop.
- Frontend checks pass; Rust test/build gate remains to be rerun after the final patch.
- Q3: main chat panel MVP with Companion/Operations switching, streaming event merge, send error state, and session history restore.
- Q4: dynamic Tauri quick-chat window sharing the Rust runtime.
- Q5: non-default-topmost status bubble window with runtime status display.
- Q6: pet state, safe PNG/WebP manifest schema, monitor geometry, and safe-edge placement model.
Validation: Rust workspace tests passed (59 tests), Rust Clippy with warnings denied passed, Rust format check passed, TypeScript check passed, Vitest passed (6 tests), and Vite production build passed.
Still not claimed complete: automatic startup activation, real Tauri multi-window manual UX, long-duration reconnect soak, JWT login, attachment protocol, certificate pinning, actual Windows multi-monitor/game-mode integration, voice, and release installer validation.
- Q1: normalized runtime events are now broadcast at the application level, so the main window and quick-chat window receive the same stream without competing for a single drain queue.
- Q2: chat schema v10 includes `slot` in the message key and all history/read IPC queries; streaming deltas append to the stored draft and completed events replace it with the authoritative content.
- Q3: main chat sends user messages into durable history after the runtime assigns a session, keeps slot/session filtering isolated, and preserves live assistant updates.
- Q4: quick chat continues to reuse the Rust runtime and SQLite history, with persisted geometry and shared live events across windows.
- Q5: the status bubble shows connection state and unread totals; the tray menu shows live Companion/Operations states and provides main/quick chat entry points.
- Validation: Rust workspace tests pass (67 tests plus protocol/integration suites), frontend typecheck/lint/Vitest/build pass, and touched frontend files are formatted.
## 2026-07-20: Q6-Q8 companion, diagnostics, and interaction MVP
- Q6: removed the desktop pet's timer-driven idle/resting placeholder; runtime connection and normalized chat events now drive working, speaking, resting, and error states.
- Q6-Q7: added monitor geometry discovery, safe-edge placement, remembered monitor selection, always-on-top control, and game-mode safe-edge fallback without input injection or arbitrary desktop control.
- Q7: added bounded read-only diagnostics for the foreground window, a user-selected process ID, and one explicitly requested network host/port.
- Q8: added browser Web Speech input and speech synthesis playback on top of the shared chat send/message path, plus proactive-message pet updates and configurable quiet hours for bubble reminders.
- Validation: Rust format, Clippy, workspace tests, TypeScript, ESLint, Vitest, and Vite build pass.
## 2026-07-20: Q9 local stability and unsigned release
- Added a session marker in the application data directory; an unexpected previous session is reported on the next startup while local profiles and chat history remain recoverable.
- Bumped the local release line to `0.1.0-alpha.2` and added the Q9 local acceptance checklist.
- Updated the changelog to distinguish the unsigned local installer from future signed/auto-update releases.
- Rust workspace tests pass after the version and recovery changes; frontend checks remain green.
- Pending manual acceptance: install the unsigned NSIS package, exercise tray/second-launch/network-reconnect/window-restore paths, and verify the recovery marker after a disposable forced termination.
- Completed: added the `window_states` SQLite table (schema v7) for quick-chat position, size, and monitor identity.
- Completed: restore geometry on open; fall back to the current primary monitor and clamp to its work area when a monitor is unavailable or the saved position is invalid.
- Completed: save geometry on move, resize, and close-to-tray; keep the quick window single-instance without destroying the shared chat runtime.
## 2026-07-20: JWT profile and 2D paper pet foundation
- Added JWT as a persisted connection authentication type alongside API Key and device token; SQLite schema is now v8 and migrates existing profiles without losing slot assignments.
- Added remote ID validation: 3-32 ASCII letters or digits; the ID remains separate from the user-facing nickname field planned for the profile UI.
- Extended the pet-pack manifest with optional animation IDs, loop flags, and bounded movement modes for 2D paper-character actions.
- Updated the pet importer copy and JWT selection UI; full Dashboard login, JWT expiry handling, and background pet window controller remain next-stage work.
- Validation: Rust workspace tests, TypeScript, ESLint, Vitest (6), and Vite production build pass.
- Added a Rust-owned login_profile_jwt command for AstrBot Dashboard login at /api/v1/auth/login.
- Dashboard username, password, and optional TOTP stay inside Rust; successful JWTs are written to Windows Credential Manager and the Profile is switched to JWT authentication.
- Added Profile UI fields for JWT login and retained API Key/device-token enrollment for non-JWT profiles.
- Full JWT expiry/401 re-login UX and nickname/remote-ID separation remain next increments.
- The floating 2D pet now polls the dual-slot runtime and switches between idle, work, reply, rest, and error states instead of running an isolated demo loop.
## 2026-07-20: production pet renderer white-window fix
- Replaced the floating pet CSS background-image crop with a clipped `<img>` spritesheet renderer for more reliable WebView2/asset-protocol loading.
- Added explicit pet-view root sizing and transparent `html`/`body`/`#root` backgrounds so Tauri transparent windows do not fall back to an opaque blank surface.
- Validation: TypeScript, ESLint, Vitest (6), Vite build, Rust format, Clippy with warnings denied, Rust workspace tests (66), and NSIS bundle build pass.
- The already-running executable must be fully closed and relaunched; the generated installer is at `target/release/bundle/nsis/AstrBot Desktop_0.1.0-alpha.1_x64-setup.exe`.
## 2026-07-20: desktop pet rendering and tray exit follow-up
- Fixed the pixel spritesheet crop by setting the sprite image transform origin to the top-left; the previous default center origin moved the selected frame outside the clipped viewport and produced a blank transparent pet window.
- Added an application exiting state so tray Quit allows all windows to close instead of the global close-to-tray handler hiding them and leaving an empty, non-interactive placeholder.
## 2026-07-20: transparent pet and tray process exit hardening
- Replaced the transparent-window spritesheet crop with a PNG-backed Canvas renderer; this avoids WebView2 transparent-window failures with the large WebP image and CSS transform cropping.
- Changed tray Quit to call Tauri cleanup and terminate the process immediately, ensuring the tray icon, hidden main window, and pet window cannot remain as orphaned UI surfaces.
## 2026-07-20: wire pet display mode and render diagnostics
- Connected the pet display-mode setting to persisted local UI state; `app-ui` now embeds the pet in the Pet page, while `desktop-floating` explicitly opens the transparent Tauri window.
- Added sprite loading and Canvas failure feedback instead of leaving a silent blank/white surface.
- Promoted the app-ui pet from a static page preview to an application-level floating overlay, matching the Codex/Hermes-style in-window companion behavior.
- Added pointer dragging with clamped coordinates and local persistence; the overlay can be hidden without creating a native desktop window.
- Disabled the broken desktop-floating launch path in the Pet settings and provided a direct switch back to the in-app mode.
## 2026-07-20: restore desktop floating pet transparency
- Restored the desktop-floating display option and its `open_pet_window` action; it is no longer disabled.
- Fixed the Windows transparent WebView configuration by explicitly setting an RGBA-zero background and disabling undecorated window shadow, which could otherwise render a white rectangle around the pet.
- Preserved the app-ui draggable overlay implementation.
- Added independent connection cancellation and message cancellation tokens for each Companion / Operations slot.
- Connected the desktop gateway SSE reconnect loop to the active slot lifecycle, including state synchronization and terminal error mapping.
- Added generation guards so a late response from a cancelled or replaced slot cannot restore a stale client into the new slot state.
- Preserved AstrBot OpenAPI request-stream handling and bounded retry behavior; AstrBot does not expose a separate unsolicited SSE subscription endpoint in the current adapter.
- Fixed runtime status parsing so Rust null option fields are accepted as an unconnected slot state instead of showing raw Zod validation output.
- Made the chat page chat-first: removed the workspace layout selector and model dropdown from the primary page; secondary settings remain in their dedicated navigation pages.
- Reduced main-window spacing, added rounded application corners, and preserved the frameless custom title bar.
- Validation: TypeScript, ESLint, Vitest (6), Vite build, and Rust workspace check pass.