5 Commits

Author SHA1 Message Date
Jiayuan
b10b3ff709 Add AI code safety defense system: tests, pre-commit hooks, and CI
Implemented three-layer defense mechanism to prevent AI-generated code from breaking the codebase:
- Layer 1: AGENTS.md with universal AI agent instructions
- Layer 2: Husky pre-commit hooks with test file checking
- Layer 3: GitHub Actions CI with TypeScript, ESLint, tests, and coverage

Includes design document, test infrastructure, and coverage thresholds.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-16 00:22:33 +08:00
Jiayuan
68072f3217 docs: Add implementation plan for chatbox agent selector
Detailed step-by-step plan for adding inline agent switcher to
MessageInput with backend support and toast notifications.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 14:32:13 +08:00
Jiayuan
0908b52fc2 docs: Add chatbox agent selector design
Design for inline agent switcher in MessageInput that allows
switching the current session's agent mid-conversation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 14:32:13 +08:00
Jiayuan
cb67f5d340 feat: add comprehensive test suite with Vitest
Add unit and integration tests covering core business logic:
- SessionStore: 18 tests for session persistence and management
- Conductor: 13 tests for session orchestration and agent lifecycle
- IPC Handlers: 19 tests for main-renderer communication
- Agent check: 10 tests for agent detection utilities

Tests achieve 31.74% overall coverage with focus on critical paths. Includes Vitest configuration, mock setup, and test utilities.

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-15 04:11:56 +08:00
Jiayuan
caca31802a docs: add right sidebar directory tree design
Design for adding a file tree browser in the right panel showing
the current session's working directory with context menu support.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-15 01:46:27 +08:00