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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user