fix: use cached snapshot for checkout_pr_status_request

The handler was calling refresh() before every getSnapshot(), forcing
a full git + gh subprocess reload (~1.2s). The filesystem watcher
already keeps the snapshot current, so just read the cache directly.
This commit is contained in:
Mohamed Boudra
2026-04-14 17:46:21 +07:00
parent df0ce60a35
commit 61c36b4e22
-1
View File
@@ -4718,7 +4718,6 @@ export class Session {
const { cwd, requestId } = msg;
try {
await this.workspaceGitService.refresh(cwd, { priority: "high" });
const snapshot = await this.workspaceGitService.getSnapshot(cwd);
this.emit({
type: "checkout_pr_status_response",