Skip to content

Dev#151

Merged
koishi510 merged 6 commits into
mainfrom
dev
Mar 11, 2026
Merged

Dev#151
koishi510 merged 6 commits into
mainfrom
dev

Conversation

@koishi510
Copy link
Copy Markdown
Owner

Related Issue

Summary

Change Type

  • New Feature (feat)
  • Bug Fix (fix)
  • Refactoring (refactor)
  • Documentation (docs)
  • Dependency / Configuration (chore)

Self-Check Checklist

Backend (Go):

  • go build ./... passes
  • go vet ./... passes
  • gofmt produces no diff

Frontend (Vue):

  • npm run lint passes
  • npm run typecheck passes

General:

  • Removed all temporary debug output
  • No sensitive data in the code

Test Steps

  1. Pull branch and install dependencies:
    cd backend && go mod download
    cd ../frontend && npm install
  2. Start the application:
    make dev-backend    # Terminal 1
    make dev-frontend   # Terminal 2
  3. Verification steps:
    • ...

koishi510 and others added 6 commits March 12, 2026 03:31
Phase 2 - Conversation Summary:
- Add ConversationSummary field to ChatMemory model
- Auto-summarize old turns via AI when conversation exceeds 20 turns
- Keep recent 15 turns + compressed summary for long-term context
- Inject summary into prompt alongside recent conversation history

Phase 3 - Structured Memory Facts:
- Add ChatMemoryFact model with category-based classification
- Auto-extract and deduplicate facts from AI memory_extract
- Add GET /api/v1/companion/memories and DELETE /memories/:id APIs
- Track last_referenced_at for memory relevance
- Add frontend API client for memory management

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Create AiMemoryPanel.vue with list/delete UI for structured facts
- Add memory button in ChatPanel header (globe icon, auth-only)
- Category-colored badges: family, interest, concern, personal, etc.
- Register 'ai-memory' panel in UI store and App.vue
- Frontend API: getMemories() and deleteMemory() in chat.ts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Add right padding to chat header to clear the overlay close button.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…l to 2x5 grid

Remove the 3D pearl mesh, point light, and all associated state transition
animations from PearlShell. Change photo wall layout from 3x3 (9 photos)
to 5-column 2-row grid (10 photos), updating limits in both frontend
validation and backend DTO/service constraints. Also update suitcase and
profile modal overlays to use consistent glass-style panel transitions.
Configure Docker for ModelScope Studios: nginx listens on port 7860,
entrypoint auto-initializes PostgreSQL (initdb, create user/db), and
adds /uploads/ proxy in nginx. Also adjust car page layout padding and
rename chat companion to 小石光.
…anel

Add backend endpoints GET/DELETE /api/v1/companion/history for retrieving
and clearing conversation turns and summary. Add tabbed UI to AiMemoryPanel
with "记忆" (facts) and "对话历史" (history) tabs, showing summary, recent
turns, and a confirm-to-clear button.
@koishi510 koishi510 requested a review from 4rthurCai as a code owner March 11, 2026 19:32
@koishi510 koishi510 merged commit 0053ea0 into main Mar 11, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant