feat: Add auto-dismiss functionality for Init Script Indicator

This commit introduces an auto-dismiss feature for the Init Script Indicator, enhancing user experience by automatically hiding the indicator 5 seconds after the script completes. Key changes include:

1. **State Management**: Added `autoDismissInitScriptIndicatorByProject` to manage the auto-dismiss setting per project.
2. **UI Components**: Updated the WorktreesSection to include a toggle for enabling or disabling the auto-dismiss feature, allowing users to customize their experience.
3. **Indicator Logic**: Implemented logic in the SingleIndicator component to handle auto-dismiss based on the new setting.

These enhancements provide users with more control over the visibility of the Init Script Indicator, streamlining project management workflows.
This commit is contained in:
Kacper
2026-01-10 23:43:52 +01:00
parent d98ff16c8f
commit 09527b3b67
4 changed files with 83 additions and 1 deletions

View File

@@ -601,6 +601,8 @@ export interface ProjectSettings {
// Worktree Behavior
/** Default value for "delete branch" checkbox when deleting a worktree (default: false) */
defaultDeleteBranchWithWorktree?: boolean;
/** Auto-dismiss init script indicator after completion (default: true) */
autoDismissInitScriptIndicator?: boolean;
// Session Tracking
/** Last chat session selected in this project */