94368ec981
leo 試用 P0 後反饋的 4 個問題: bug #1: popup 編輯時沒有,更擠 - EditingArea 元件加 ⇱ 放大 button + popup overlay(共用 PostComposer 的 popup pattern) - 影響:所有 edit / reply 模式現在都有放大編輯 bug #2: Mira 思考中很久(即使沒 @mira) - root cause: onAiTriggered(pageName) 在 PostComposer 永遠 fire,會在每篇貼文觸發 thinking indicator UI - 修:移到 if (hasMiraMention) 分支內。沒 @mira → 不顯示 thinking - wiki_synthesis 仍每篇都跑(背景靜默)但不顯示 thinking,避免 leo 誤會 bug #3: Mira reply 不知道有 wiki,無狀態 - 加 fetchRelevantWikiContext: 撈所有 type=index-entry blocks,用 entity 名稱 keyword match against post content,取 top 3 整篇 markdown 餵進 prompt - prompt 加規則「如果 leo 提到的 entity 你已有 wiki 知識,請主動引用」 - 對應 leo「應該以擁有知識庫的專人來回覆」 bug #4: edit 時 @mira 沒反應 - PostEditor.save / BlockEditor.saveEdit / ReplyLine.save 三處都加 hasMiraMention 偵測 - 條件:新內容含 @mira 且舊版沒有 → 觸發(避免重複編輯重複 trigger) placeholder 加 hint「@mira 呼叫 Mira 回覆」。
This is a Next.js project bootstrapped with create-next-app.
Getting Started
First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
Learn More
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
Deploy on Vercel
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.