perf: optimize app startup and background lifecycles

This commit is contained in:
inman
2026-08-19 00:56:15 +08:00
parent 31332f6d76
commit 927e13349b
121 changed files with 4359 additions and 1400 deletions

View File

@@ -122,6 +122,20 @@ export async function presentAgentBrowser(input: {
return requireSuccess(response).browser;
}
export async function setAgentBrowserDiagnostics(input: {
projectPath: string;
enabled: boolean;
}): Promise<AgentBrowserSnapshot> {
const response = await hostApiFetch<BrowserEnvelope>(
'/api/agent-browser/diagnostics',
jsonBody({
project_path: input.projectPath,
enabled: input.enabled,
}),
);
return requireSuccess(response).browser;
}
export async function navigateAgentBrowser(input: {
projectPath: string;
action: AgentBrowserNavigateAction;