6 Commits

Author SHA1 Message Date
Brandon Zhang
9e2932fbc3 Use styled modal dialogs for confirmations 2026-03-27 18:51:34 +08:00
Brandon Zhang
b0c24e10c8 Restore global instruction numbering 2026-03-27 18:38:28 +08:00
Brandon Zhang
07e31ce215 Fix consumed instruction ordering and clear history 2026-03-27 18:32:18 +08:00
7de4a03d94 fix: Enter key confirms edit (Shift+Enter for newline)
Edit textarea now mirrors composer behavior:
- Enter alone → save the edit
- Shift+Enter → insert newline
- Escape → cancel edit
2026-03-27 04:17:57 +08:00
256a445e2f feat: add Clear History button to delete all consumed instructions
- Backend: instruction_service.clear_consumed() bulk-deletes consumed rows
- Backend: DELETE /api/instructions/consumed route (preserves pending)
- Frontend: Clear button in consumed panel header (hidden when empty)
- Frontend: SSE handler for history.cleared event - instant UI update
- Frontend: api.clearConsumed() fetch wrapper
2026-03-27 04:16:24 +08:00
86eba27a24 init 2026-03-27 03:58:57 +08:00