Release Notes - Version v0.6.1
Release notes for version v0.6.1
Release Notes - Version 0.6.1
Release Date: 2025-06-10
Type: Patch Release
Previous Version: 0.6.0
๐ฏ Release Highlights
Version 0.6.1 introduces a critical fix to the Story Node Settings system, resolving significant UX issues with the โUse Custom Settingsโ checkbox functionality. This patch release includes a new database field, enhanced settings inheritance behavior, and comprehensive documentation updates.
๐ง Major Fixes & Improvements
Story Node Settings System Overhaul
Problem Resolved
The โUse Custom Settingsโ checkbox had incorrect behavior:
- โ New story nodes always had checkbox checked (should be unchecked)
- โ Unchecking the checkbox had no effect (page refreshed but remained checked)
- โ No explicit field to track custom vs inherited settings intent
- โ Settings UUID missing from image generation TOKEN logs
Solution Implemented
- โ
New Database Field: Added
useCustomSettingsboolean field to explicitly track custom vs inherited settings - โ Correct Checkbox Behavior: New nodes start unchecked, checking/unchecking works properly
- โ Settings Inheritance Fix: Fixed node targeting to use current node instead of non-existent next node
- โ
Complete TOKEN Logging: Added
settingsUUIDto all image generation logs for cost tracking - โ Proper Service Integration: Updated both story generation and image generation workflows
๐๏ธ Database Schema Changes
Story Node Schema
interface StoryNode {
// ... existing fields
storyNodeSettingsUUID?: string; // Existing field
useCustomSettings?: boolean; // ๐ NEW FIELD (default: false)
}
Migration Notes
- Backward Compatible: Existing nodes default to
useCustomSettings = false - No Data Loss: All existing settings UUIDs are preserved
- Automatic Application: New field applied automatically during story generation
๐ Settings Inheritance Hierarchy
Correct Behavior (v0.6.1)
- Custom Node Settings (
useCustomSettings = true) - Highest Priority - Parent Node Settings (inherited from parent) - Medium Priority
- Story Default Settings (story-wide configuration) - Low Priority
- System Default Settings (fallback) - Lowest Priority
User Experience
- New Nodes: Start with
useCustomSettings = false(checkbox unchecked) - Enable Custom: Checking box creates new settings record, sets
useCustomSettings = true - Disable Custom: Unchecking box removes custom settings, sets
useCustomSettings = false, reverts to inheritance
๐ ๏ธ Technical Implementation
Backend Services Updated
story-node.service.ts: Fixed settings retrieval to use current node instead of next nodestory-node-settings.service.ts: Updated all CRUD operations to properly handleuseCustomSettingsfieldmulti-layer-image.service.ts: Added settings UUID retrieval and passing to image generation- All TOKEN logs: Now include
settingsUUIDfor complete traceability
API Endpoints Enhanced
GET /api/v1/stories/nodes/{nodeId}/settings: Now correctly returnshasCustomSettingsbased onuseCustomSettingsfieldPOST /api/v1/stories/nodes/{nodeId}/settings/custom: SetsuseCustomSettings = truewhen creating custom settingsDELETE /api/v1/stories/nodes/{nodeId}/settings/custom: SetsuseCustomSettings = falsewhen removing custom settings
Frontend Integration
- Checkbox State: Now properly reflects
hasCustomSettingsvalue from API - Form Behavior: Checking/unchecking triggers appropriate API calls
- State Management: Consistent state between frontend and backend
๐ Testing & Quality Assurance
Test Coverage
- โ 286/286 Backend Tests Passing (100% success rate)
- โ 106/106 Frontend Tests Passing (100% success rate)
- โ Total: 392/392 Tests Passing across entire codebase
Updated Test Cases
story-node-settings.service.spec.ts: Updated to test newuseCustomSettingsfield behavior- Integration Tests: Verified complete checkbox workflow functionality
- TOKEN Log Tests: Confirmed
settingsUUIDinclusion in all scenarios
๐ Documentation Updates
Comprehensive Documentation Overhaul
All project documentation updated to reflect new behavior:
-
Implementation Status (
docs/implementation-status.md)- Added Story Node Settings System to completed features
- Updated latest progress with v0.6.1 changes
-
Schema Definitions (
docs/schema-definitions.md)- Added complete Story Node Settings schema
- Documented
useCustomSettingsfield and inheritance hierarchy
-
Technical Architecture (
docs/technical-architecture.md)- Enhanced service architecture documentation
- Added StoryNodeSettingsService to specialized services
-
API Documentation (
docs/api-documentation.md)- Added complete Story Node Settings API endpoints
- Documented request/response examples with correct behavior
-
User Guide (
docs/user-guide.md)- Added comprehensive โUnderstanding the Use Custom Settings Checkboxโ section
- Explained settings hierarchy and inheritance rules for storytellers
๐๏ธ Development Workflow Improvements
Dev Journal Documentation
Created detailed development journals documenting:
01-endpoint-naming-consistency-fix.md: API endpoint standardization02-story-node-settings-fix.md: Settings retrieval and UUID fixes03-use-custom-settings-checkbox-fix.md: Complete checkbox behavior solution
Code Quality
- DRY Principles: Removed duplicate logic and consolidated settings handling
- Error Handling: Enhanced error logging and debugging capabilities
- Type Safety: Improved TypeScript interfaces and validation
๐ Performance & Monitoring
Enhanced Logging
- TOKEN Logs: All image generation now includes
settingsUUIDfor cost tracking - Debug Endpoint: Enhanced
/api/v1/logs/debug-recentwith settings context - Error Tracking: Improved error context for settings-related issues
Cost Transparency
- Settings Traceability: Every AI generation call now traceable to specific settings UUID
- Budget Monitoring: Better cost tracking for custom settings usage
- Administrative Visibility: Complete audit trail for settings changes
โก Breaking Changes
None
This release is fully backward compatible:
- โ Existing story nodes continue to work without modification
- โ All existing APIs maintain backward compatibility
- โ Database migrations are automatic and non-destructive
- โ Frontend interfaces remain unchanged (only behavior improved)
๐ฎ Looking Forward
Foundation for Future Features
This release establishes a solid foundation for:
- Advanced Settings Management: More granular control over AI behavior
- Settings Templates: Reusable settings configurations
- Collaborative Settings: Shared settings between storytellers
- Settings Analytics: Usage patterns and effectiveness tracking
Next Release Preview
Upcoming features planned for v0.7.0:
- Node-Based Story Editor: Visual story editing with React Flow
- Enhanced Visual Themes: More comprehensive theme system
- Advanced Analytics: Deeper insights into story performance
๐ก Developer Notes
Migration Required
- None: All changes are automatic and backward compatible
Environment Variables
- No Changes: All existing configuration remains valid
Deployment Notes
- Database: Automatic schema updates during application startup
- Redis/Caching: No cache invalidation required
- CDN: No asset changes require cache busting
๐ Acknowledgments
This release represents a significant improvement in user experience and system reliability. Special recognition for:
- Critical Issue Identification: User feedback identified the checkbox behavior problem
- Comprehensive Testing: 392/392 tests ensure release stability
- Documentation Excellence: Complete documentation overhaul for clarity
- Backward Compatibility: Zero-downtime deployment with full compatibility
๐ Full Changelog
Added
- ๐
useCustomSettingsboolean field to Story Node schema - ๐ Settings UUID inclusion in all TOKEN logs
- ๐ Comprehensive Story Node Settings API documentation
- ๐ Enhanced user guide with checkbox behavior explanation
Fixed
- ๐ง โUse Custom Settingsโ checkbox now starts unchecked for new nodes
- ๐ง Checkbox checking/unchecking now works correctly
- ๐ง Settings inheritance uses correct node targeting
- ๐ง Image generation TOKEN logs include settings UUID
- ๐ง Multi-layer image service properly passes settings context
Changed
- ๐ Updated all documentation to reflect correct behavior
- ๐ Enhanced API responses with proper settings metadata
- ๐ Improved error messages and logging context
Technical
- โ๏ธ Updated 6 backend service files with enhanced logic
- โ๏ธ Modified database schema with new field (backward compatible)
- โ๏ธ Enhanced 286 backend tests for new behavior
- โ๏ธ Improved TypeScript interfaces and validation
Download: Release v0.6.1
Issues: Report Issues
Documentation: Complete Documentation
Everything Happens Team - Making Interactive Storytelling Better ๐