This repository was archived by the owner on May 29, 2026. It is now read-only.
Commit 9ef8aec
committed
feat(admin): redesign write AI agent panel into a focused module
- Decompose the inline WriteAgentPanel into features/write/components/agent/ (useWriteAgent hook + view components), keeping the data layer intact
- Composer-centric layout: inline model selector with search + recents, session-header title dropdown with inline rename and delete-confirm
- Asymmetric messages — plain flowing assistant text (no bubble), right-aligned user chips; expandable tool-call detail (params/result/error)
- Pin diff-review suggestions to the bottom of the thread; gate accept/reject/reapply until the agent run finishes (prevents snapshot desync)
- Persist agent sessions for unsaved docs via the draft id and preserve the first turn across draft creation1 parent c8a0a6f commit 9ef8aec
20 files changed
Lines changed: 1944 additions & 966 deletions
File tree
- apps/admin/src
- features/write/components
- agent
- hooks
- i18n/resources
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
0 commit comments