feat: enhance worktree session creation with loading screen

This commit is contained in:
Bohdan Triapitsyn
2026-01-07 23:00:26 +02:00
parent d92a1ab297
commit b6646b6b3e
2 changed files with 3 additions and 1 deletions
@@ -18,6 +18,7 @@ import {
runWorktreeSetupCommands,
} from '@/lib/git/worktreeService';
import { getWorktreeSetupCommands } from '@/lib/openchamberConfig';
import { startConfigUpdate, finishConfigUpdate } from '@/lib/configUpdate';
const sanitizeWorktreeSlug = (value: string): string => {
return value
@@ -67,6 +68,7 @@ export async function createWorktreeSession(): Promise<{ id: string } | null> {
}
isCreatingWorktreeSession = true;
startConfigUpdate("Creating new worktree session...");
try {
// Get worktree defaults from project settings
@@ -171,6 +173,7 @@ export async function createWorktreeSession(): Promise<{ id: string } | null> {
});
return null;
} finally {
finishConfigUpdate();
isCreatingWorktreeSession = false;
}
}