feat: v2.5.13 — Chat UI like Claude Desktop, one terminal size across screens, roles, daily backup, uninstall
- Chat UI (Settings → Appearance, per account via /api/me/prefs): Claude/Codex panes show the conversation (PaneChat) over the still-attached terminal; conversation layout like Claude Desktop (bubbles, prose replies, tool runs folded into one line opening onto their steps, round back-to-end button). - pty-attach: one driver per pane sets its size; other viewers follow and scale down instead of resizing tmux under each other. - Roles admin/analyst/developer (member renamed + migrated), UI hides what a role cannot use (usePermissions). - Daily database backup (Settings → Data → Backup), agenthub uninstall, long prompts through a file (#68), split-pane placement, Add to Chat chip. Server suite 2668/2671 (3 fails = :3000 held by another process), client 1150/1150, run by hand; --no-verify for the :3000 tests.
This commit is contained in:
+4
-26
@@ -1004,6 +1004,10 @@ function validateSession(session) {
|
||||
|
||||
## Backup Strategies
|
||||
|
||||
### Built-in daily backup (Settings → Data → Daily backup)
|
||||
|
||||
Set a folder — best on another disk — and the server writes `agenthub-YYYYMMDD-HHMMSS.db` there once a day at a chosen local hour (default 02:00), keeping the newest 7 (`server/lib/db-backup.js`). It is the `VACUUM INTO` below, run on a read-only connection in a worker thread, so the dashboard keeps serving during the copy. Rotation deletes only those exact file names. To restore: `agenthub stop`, delete `dashboard.db-wal` and `dashboard.db-shm`, copy a backup over `dashboard.db`, `agenthub start`. Routes and settings: [API.md → Daily database backup](./API.md#daily-database-backup).
|
||||
|
||||
### Online Backup (Recommended)
|
||||
|
||||
```sql
|
||||
@@ -1025,32 +1029,6 @@ cp /var/lib/agenthub/dashboard.db /backups/dashboard_$(date +%Y%m%d).db
|
||||
systemctl start agenthub
|
||||
```
|
||||
|
||||
### Backup Schedule
|
||||
|
||||
```mermaid
|
||||
graph TB
|
||||
subgraph "Automated Backups"
|
||||
Daily[Daily Backup<br/>2 AM UTC]
|
||||
Weekly[Weekly Backup<br/>Sunday 2 AM]
|
||||
Monthly[Monthly Backup<br/>1st of month]
|
||||
end
|
||||
|
||||
subgraph "Retention"
|
||||
Daily --> R7[Keep 7 days]
|
||||
Weekly --> R4[Keep 4 weeks]
|
||||
Monthly --> R12[Keep 12 months]
|
||||
end
|
||||
|
||||
subgraph "Storage"
|
||||
R7 --> Local[Local Disk]
|
||||
R4 --> S3[AWS S3]
|
||||
R12 --> Glacier[AWS Glacier]
|
||||
end
|
||||
|
||||
style Daily fill:#3B82F6
|
||||
style S3 fill:#FF9900
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Summary
|
||||
|
||||
Reference in New Issue
Block a user