feat: enhance worktree session creation with loading screen
This commit is contained in:
@@ -39,7 +39,6 @@
|
|||||||
"dev:web": "bun run --cwd packages/web build:watch",
|
"dev:web": "bun run --cwd packages/web build:watch",
|
||||||
"dev:web:server": "bun run --cwd packages/web dev:server: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: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",
|
"start:web": "bun run --cwd packages/web start",
|
||||||
"pack:web": "bun pm pack --cwd packages/web",
|
"pack:web": "bun pm pack --cwd packages/web",
|
||||||
"desktop:start-cli": "node ./packages/desktop/scripts/opencode-cli.mjs start",
|
"desktop:start-cli": "node ./packages/desktop/scripts/opencode-cli.mjs start",
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ import {
|
|||||||
runWorktreeSetupCommands,
|
runWorktreeSetupCommands,
|
||||||
} from '@/lib/git/worktreeService';
|
} from '@/lib/git/worktreeService';
|
||||||
import { getWorktreeSetupCommands } from '@/lib/openchamberConfig';
|
import { getWorktreeSetupCommands } from '@/lib/openchamberConfig';
|
||||||
|
import { startConfigUpdate, finishConfigUpdate } from '@/lib/configUpdate';
|
||||||
|
|
||||||
const sanitizeWorktreeSlug = (value: string): string => {
|
const sanitizeWorktreeSlug = (value: string): string => {
|
||||||
return value
|
return value
|
||||||
@@ -67,6 +68,7 @@ export async function createWorktreeSession(): Promise<{ id: string } | null> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
isCreatingWorktreeSession = true;
|
isCreatingWorktreeSession = true;
|
||||||
|
startConfigUpdate("Creating new worktree session...");
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Get worktree defaults from project settings
|
// Get worktree defaults from project settings
|
||||||
@@ -171,6 +173,7 @@ export async function createWorktreeSession(): Promise<{ id: string } | null> {
|
|||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
} finally {
|
} finally {
|
||||||
|
finishConfigUpdate();
|
||||||
isCreatingWorktreeSession = false;
|
isCreatingWorktreeSession = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user