Skip to content

feat: ChatGPT-style AI chat threads (web + mobile) - #204

Merged
MITOM06 merged 12 commits into
mainfrom
feat/ai-chat-threads
Nov 6, 2026
Merged

MITOM06 merged 12 commits into
mainfrom
feat/ai-chat-threads

Conversation

@MITOM06

@MITOM06 MITOM06 commented Nov 5, 2026

Copy link
Copy Markdown
Owner

Mỗi lần bấm "Cuộc trò chuyện mới" với AI sẽ tạo một conversation riêng (lịch sử, tiêu đề, file riêng), có sidebar giống ChatGPT trên web và mobile.

Quyết định đã chốt (D1–D5):

  • Chat AI chỉ hiện trong khu AI, không hiện trong danh sách chat chính.
  • Tiêu đề = 60 ký tự đầu của tin nhắn đầu tiên, đổi tên được.
  • Chat AI cũ trở thành cuộc đầu tiên trong danh sách.
  • File KB tách riêng từng cuộc.
  • Cuộc mới copy persona của cuộc gần nhất.

Thay đổi:

  • chat-service: /api/ai-threads (POST/GET/PATCH), tự đặt tiêu đề, excludeAi.
  • ai-service: không gửi daily digest cho chat AI.
  • web: sidebar AI threads.
  • Flutter: hub AI + danh sách cuộc chat + nút trên app bar; bỏ panel AI session cũ.

Tương thích ngược: POST /api/conversations với bot vẫn trả 409 về chat cũ nhất; GET /api/conversations không có excludeAi vẫn như cũ.

Kiểm chứng:

  • chat-service 927, web 1209, Flutter pass, analyze sạch.
  • Mỗi task đều có review riêng, thêm một vòng review tổng toàn branch.

⚠️ Thứ tự deploy: web (Vercel) lên ngay khi merge, còn Mini lên chậm khoảng 15–25 phút. Trong khoảng đó, sidebar AI trên web gọi /api/ai-threads sẽ lỗi và chat AI vẫn hiện trong danh sách chính, cho đến khi chat-service mới chạy.

🤖 Generated with Claude Code

MITOM06 and others added 12 commits November 5, 2026 18:29
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…st filter

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… excludeAi on archived

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ed fallback

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…xcludeAi lists)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…out, create while loading

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…bar actions)

Remove old AI session panel/provider/repository and l10n.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hat debounce

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-type threads, groups not AI, auto-title best-effort)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Nov 5, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 5687bcc2-8f91-4403-a7c7-650c73696da5
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@vercel

vercel Bot commented Nov 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
platform-web Ready Ready Preview Nov 5, 2026 12:29pm UTC

@MITOM06
MITOM06 merged commit 803e6ff into main Nov 6, 2026
13 checks passed
@MITOM06
MITOM06 deleted the feat/ai-chat-threads branch November 6, 2026 11:19

This branch was successfully deployed

1 active deployment
Preview — d140972e Deployed Nov 5, 2026 by vercel[bot]
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