+ {/* Worktree */}
+
+
+ onWorktreeEnabledChange(value === true)}
+ />
+
+
+
+ {worktreeEnabled && (
+
0}>
+
+ onWorktreeNameChange(e.target.value)}
+ onFocus={() => setShowHistory(true)}
+ onBlur={() => {
+ // Delay to allow click on history items
+ setTimeout(() => {
+ setShowHistory(false);
+ commitWorktreeName();
+ }, 150);
+ }}
+ />
+
+ e.preventDefault()}
+ >
+
+
+ Recent
+
+ {filteredHistory.map((name) => (
+
+ ))}
+
+
+ )}
+
+
+ {/* Command preview */}
+
+
+ Command preview
+
+
+
+ {previewTokens.map((token, i) => (
+
+ {token.text}
+
+ ))}
+
+
+
+
+ {/* Custom arguments */}
+
+
+ Custom arguments
+
+
+ handleCustomArgsChange(e.target.value)}
+ />
+ {customArgs.trim() && (
+
+ )}
+
+
+ {/* Validation result */}
+ {validationState === 'success' && validationMessage && (
+
+
+ {validationMessage}
+
+ )}
+ {validationState === 'error' && validationMessage && (
+
+ {validationMessage.includes('Protected') ? (
+
+ ) : (
+
+ )}
+
{validationMessage}
+
+ )}
+
+