fixing some bugs

This commit is contained in:
Cody Seibert
2025-12-16 12:54:53 -05:00
parent d103d0aa45
commit 064a395c4c
6 changed files with 79 additions and 33 deletions

View File

@@ -69,6 +69,7 @@ interface AddFeatureDialogProps {
categorySuggestions: string[];
branchSuggestions: string[];
defaultSkipTests: boolean;
defaultBranch?: string;
isMaximized: boolean;
showProfilesOnly: boolean;
aiProfiles: AIProfile[];
@@ -81,6 +82,7 @@ export function AddFeatureDialog({
categorySuggestions,
branchSuggestions,
defaultSkipTests,
defaultBranch = "main",
isMaximized,
showProfilesOnly,
aiProfiles,
@@ -109,15 +111,16 @@ export function AddFeatureDialog({
// Get enhancement model from store
const { enhancementModel } = useAppStore();
// Sync skipTests default when dialog opens
// Sync defaults when dialog opens
useEffect(() => {
if (open) {
setNewFeature((prev) => ({
...prev,
skipTests: defaultSkipTests,
branchName: defaultBranch,
}));
}
}, [open, defaultSkipTests]);
}, [open, defaultSkipTests, defaultBranch]);
const handleAdd = () => {
if (!newFeature.description.trim()) {
@@ -155,7 +158,7 @@ export function AddFeatureDialog({
model: "opus",
priority: 2,
thinkingLevel: "none",
branchName: "main",
branchName: defaultBranch,
});
setNewFeaturePreviewMap(new Map());
setShowAdvancedOptions(false);