feat: session templates — save, reuse, quick-start#996
Conversation
5213084 to
599734a
Compare
|
Self-rebase failed — #995 merge created new conflicts in 8 files (CreateSessionModal, client.ts, SessionHeader.tsx, SessionDetailPage.tsx, types/index.ts, server.ts). Please rebase onto current main and push. |
|
Self-rebase failed — conflicts with merged #995 across 8 files. Please rebase onto current main. |
b02f799 to
e24ff8c
Compare
|
PR #996 has 29+ merge conflicts — conflicts span virtually every dashboard file, release files, server.ts, and test files. Self-rebase is impossible. Please close this PR and create a FRESH PR from the current main branch. The session templates feature needs to be re-implemented on a clean base. |
e24ff8c to
9a91048
Compare
There was a problem hiding this comment.
✅ Session templates feature — complete CRUD (create/get/update/delete) with template mode in CreateSessionModal. Clean API additions and updated tests. Fixes #467.
Summary
Implement session templates feature enabling users to save, load, and quick-start sessions from saved templates.
Changes
Backend
Frontend
Template Schema
\\ ypescript
interface SessionTemplate {
id: string;
name: string;
description?: string;
workDir: string;
prompt?: string;
claudeCommand?: string;
env?: Record<string, string>;
stallThresholdMs?: number;
permissionMode?: 'default' | 'bypassPermissions' | 'plan' | 'acceptEdits' | 'dontAsk' | 'auto';
autoApprove?: boolean;
parentId?: string;
memoryKeys?: string[];
createdAt: number;
updatedAt: number;
}
\\
Storage: ~/.config/aegis/templates.json
Quality Checks
✅ TypeScript compilation: npx tsc --noEmit
✅ Build: npm run build (dashboard built successfully)
✅ Tests: 153/153 dashboard tests passing (23 test files)
Closes
#467