Files
ai_agent/.claude/commands/fix-issue.md
T
furyhawk 8351e73d39 feat: add Zustand stores for conversation, file preview, sidebar, theme, and knowledge base selection
- Implemented `conversation-store` for managing conversations and messages.
- Created `file-preview-store` to handle file preview state.
- Added `sidebar-store` for sidebar visibility management.
- Developed `theme-store` for theme persistence and management.
- Introduced `kb-selection-store` for managing active knowledge base selections with persistence.

chore: define API and chat types

- Added types for API responses, authentication, chat messages, conversations, and projects.
- Defined interfaces for various entities including users, sessions, and message ratings.

build: configure TypeScript and testing setup

- Set up `tsconfig.json` for TypeScript configuration.
- Created `vitest.config.ts` for testing configuration with Vitest.
- Added `vitest.setup.ts` for global test setup including mocks for Next.js router and media queries.
- Configured Vercel deployment settings in `vercel.json`.
2026-06-11 16:54:43 +08:00

800 B

description
description
Investigate and fix an issue

Fix the issue: $ARGUMENTS

  1. Understand — search the codebase for relevant code, read the files, understand current behavior
  2. Reproduce — if possible, identify a test case or request that triggers the issue
  3. Root cause — trace through Routes → Services → Repositories to find where the bug originates
  4. Fix — implement the fix following project conventions:
    • Domain exceptions in services (not HTTP errors)
    • db.flush() in repositories (not commit)
    • Type hints on all changed signatures
  5. Test — run cd backend && uv run pytest to verify no regressions
  6. Lint — run cd backend && uv run ruff check . --fix && uv run ruff format .
  7. Summary — explain what was changed and why