Kevin
7317bf10cd
fix/various fixes
2026-03-20 15:15:35 +08:00
Kevin
7f57f96c25
重构回忆录为 story-first / markdown-first 架构并整合图片意图与前端 UI 修复
...
本次 squash merge 将 codex-story-first-image-intent 的整体改动合入 development,核心内容包括:
1. 后端数据与迁移:新增 stories、story_versions、story_image_intents、chapter_cover_intents、assets 等模型与 Alembic 迁移,建立 story-first、markdown-first、asset-first 的主数据链路。
2. 生成与任务链:引入 StoryBuilderOrchestrator、ChapterComposerOrchestrator、story_image_tasks、chapter_cover_tasks,图片生成从正文占位符改为结构化 intent -> asset -> markdown 回填。
3. 并发与一致性:为 story/chapter intent 增加 claim_token、claimed_at、attempt_count,采用数据库原子 claim 为主、Redis 锁为辅,避免重复生成、锁误删和 processing 卡死。
4. Memoir 读写路径:章节 canonical_markdown 成为正文真源,列表/详情接口补齐 markdown、cover_asset、word_count 等字段,PDF 与 asset 解析链路同步升级。
5. Memory / Retrieval:扩展 transcript ingest、chunking、evidence 检索与 story 聚合基础设施,为后续 story-first RAG 与多 agent 编排提供底座。
6. App 端体验:章节页继续走 MarkdownRenderer 阅读链,同时吸收 fix3-19 的跨平台 UI glitch 修复;更新对话页、首页、文案资源与章节列表映射逻辑。
7. 测试与文档:补充 asset resolver、story image task、章节封面派发、markdown 映射等回归测试,并加入图片占位符退役设计文档。
2026-03-20 10:31:51 +08:00
Kevin
c6e07ce5ca
chore/ 删除无用文件
2026-03-19 14:36:40 +08:00
yangshilin
4c75c6f4f4
feat: 引入deepseek结构化输出
2026-03-19 11:27:43 +08:00
yangshilin
f3629efec3
fix: 去除LLM直接生成图片占位符逻辑
2026-03-19 11:18:58 +08:00
yangshilin
67fb5d2cb6
refactor: 进一步重构agents目录结构 符合多agent架构
2026-03-19 10:54:48 +08:00
yangshilin
c21cda3e78
feat: 生成图片提示词agent结构封装
2026-03-19 10:43:34 +08:00
yangshilin
4a1d6f0dcc
feat: 生成回忆录agent结构封装
2026-03-19 10:38:11 +08:00
yangshilin
48b70e1350
Merge branch 'refactor/backend-architecture' into development
2026-03-18 17:18:23 +08:00
yangshilin
2070a03d35
fix: 用户开始录音5s后ai反馈“我在认真听”
2026-03-16 11:24:40 +08:00
Sully
c2ce4c61f1
修复版本1.0.7的若干问题 ( #11 )
...
* fix/ 0:00 audio ui
* fix/ persist memoir image state and collapse voice history
Keep generated chapter images from staying in processing after successful uploads, and restore segmented voice recordings as a single audio message when reopening conversations.
Made-with: Cursor
* fix/ persist local conversation state and stabilize voice UI
Keep CreateMemory conversations driven by Room so recent text and audio survive page exits, and prevent stale 0:00 voice bubbles while list ordering follows the latest local message time.
Made-with: Cursor
* fix/ server-side root cause for conversation list time and message timestamps
- Add Conversation.last_message_at column with migration and index
- Update last_message_at on text message, audio segment, and AI response
- Sort conversation list by COALESCE(last_message_at, started_at) DESC
- Return real per-message timestamps from Redis history instead of now()
- Pass user_message_timestamp through agent pipeline to avoid LLM delay skew
- Remove all debug logging from server, client, and CI workflow
- Restore import json in conversation_agent (was broken by debug removal)
- Client: remove DebugRuntimeLogger, stop sending transcript as text message
Made-with: Cursor
---------
Co-authored-by: Kevin <kevin@brighteng.org >
2026-03-14 23:58:46 +08:00
yangshilin
672abf5ec7
fix: 图片生成失败后重试 前端一直显示生成中
2026-03-13 16:23:51 +08:00
yangshilin
ab4fb46c0d
fix: 修复打个招呼的bug
2026-03-13 14:50:04 +08:00
Sully
2eb066dbec
把“章节正文 + 图片”从 chapters 单表/JSON 结构,重构为“章节 chapter + 段落 section + 图片 memoir_images 独立表”的新数据模型,同时联动修改接口、PDF 导出、异步任务、迁移脚本、测试,以及修复 Android 端聊天列表显示问题。 ( #9 )
...
* refactor: 表结构重构,新增段落section和图片image新表
* fix: fix android app import error
* refactor: 重构文件名
* fix: 优化提示词
* fix: 消息气泡显示位置异常问题
---------
Co-authored-by: yangshilin <2157598560@qq.com >
2026-03-13 11:12:10 +08:00
yangshilin
e4555cb73a
fix: 修复花括号显示异常问题
2026-03-12 10:13:40 +08:00
Kevin
305e5dcde9
修复回忆录图片重试状态透传与前端展示
2026-03-11 15:23:58 +08:00
Kevin
f7d95c4c9a
Fix dynamic memoir image limits
2026-03-11 14:07:02 +08:00
Kevin
822aefe54b
Reuse memoir JSON payload parsing
2026-03-11 13:46:07 +08:00
Kevin
32954d4b3f
Fix memoir image prompt parsing and host allowlist
2026-03-11 13:18:20 +08:00
Kevin
1f98b8bfd6
fix: fix various issues before merging
2026-03-11 11:27:32 +08:00
Kevin
00092d34c9
fix: harden memoir image generation flow
2026-03-11 11:26:42 +08:00
Kevin
a76cf8da18
Fix memoir image delivery and Android rendering
2026-03-11 10:06:12 +08:00
Kevin
0970cb7408
fix: 修复 Liblib provider 认证和多个图片生成关键缺陷
...
- 重写 LiblibImageProvider:Bearer token 改为 HMAC-SHA1 签名认证,
适配 Liblib 真实 API(Star-3 Alpha 文生图端点)
- 修复 chapter.images JSON 列原地修改不持久化(深拷贝+整列重赋值)
- 修复 generate_chapter_images 在事务提交前派发(改为 commit 后统一 delay)
- 修复 initialize_chapter_images 覆盖已完成图片(新增 merge 去重逻辑)
- 修复 Android failed 图片渲染为错误卡片(改为隐藏,保持正文连续)
- 模型模板 UUID 改为环境变量配置(LIBLIB_TEMPLATE_UUID)
- 更新 .env 凭证格式为 ACCESS_KEY/SECRET_KEY
- 补充 test_memoir_image_bootstrap 缺失的 unittest.mock 导入
Made-with: Cursor
2026-03-10 17:02:50 +08:00
Kevin
f5afeb39ef
feat(api): embed memoir chapter images in PDF export and strip placeholders
...
Made-with: Cursor
2026-03-10 16:06:09 +08:00
Kevin
879466fde1
feat(api): generate memoir chapter images asynchronously via Celery
...
Made-with: Cursor
2026-03-10 16:05:13 +08:00
Kevin
d5ed2940aa
feat(api): initialize memoir chapter image assets on creation
...
Made-with: Cursor
2026-03-10 16:03:49 +08:00
Kevin
67a469f380
feat(api): add tencent cos storage for memoir images
...
Made-with: Cursor
2026-03-10 16:02:12 +08:00
Kevin
cf460dd2a4
feat(api): add liblib memoir image provider adapter
...
Made-with: Cursor
2026-03-10 16:00:59 +08:00
Kevin
f8283b398e
feat(api): add memoir image prompt settings and optimization service
...
Made-with: Cursor
2026-03-10 16:00:25 +08:00
Kevin
5b51d104b4
feat(api): add memoir image placeholder parsing
...
Made-with: Cursor
2026-03-10 15:59:36 +08:00
Kevin
8b9ccd4926
fix: 优化长语音上传交互并修复输入框高度跳变
2026-03-10 11:44:16 +08:00
Kevin
6ffe96d7a9
feat: 支持长语音分段上传与断线补传
2026-03-09 15:36:44 +08:00
iammm0
9cdd2bdf2f
test: 在重构前补充 WebSocket 基线测试
...
补齐 WebSocket 关键流程的基线测试,为后续长语音重构提供回归保护。
2026-03-09 09:05:21 +08:00
iammm0
0741aa9637
调整目录
2026-02-12 13:35:14 +08:00