feat: implement session management for image generation skills and add session handling functions

This commit is contained in:
Jim Liu 宝玉
2026-01-16 20:20:07 -06:00
parent 259baff413
commit 8e88cf4a8b
7 changed files with 211 additions and 31 deletions
+6
View File
@@ -104,6 +104,12 @@ For each page (cover + pages):
- If text-only: concatenate prompts into single text
- If multiple skills available, ask user preference
**Session Management**:
If the image generation skill supports `--sessionId`:
1. Generate a unique session ID at the start (e.g., `comic-{topic-slug}-{timestamp}`)
2. Use the same session ID for character sheet and all pages
3. This ensures visual consistency (character appearance, style) across all generated images
3. Report progress after each generation
### Step 5: Completion Report