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
-1
View File
@@ -39,7 +39,6 @@
"dev:web": "bun run --cwd packages/web build:watch",
"dev:web:server": "bun run --cwd packages/web dev:server:watch",
"dev:web:full": "concurrently -n \"api,build\" -c \"cyan,magenta\" \"bun run --cwd packages/web dev:server:watch\" \"bun run --cwd packages/web build:watch\"",
"dev": "concurrently -n \"server,web,ui\" -c \"cyan,magenta,yellow\" \"bun run --cwd packages/web dev:server:watch\" \"bun run --cwd packages/web build:watch\" \"bun run --cwd packages/ui dev\"",
"start:web": "bun run --cwd packages/web start",
"pack:web": "bun pm pack --cwd packages/web",
"desktop:start-cli": "node ./packages/desktop/scripts/opencode-cli.mjs start",
@@ -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;
}
}