chore(integration): snapshot local main worktree
This commit is contained in:
@@ -62,12 +62,12 @@ function assertActivePressure(pressure) {
|
||||
const expected = {
|
||||
parentWorkers: 4,
|
||||
childWorkers: 4,
|
||||
parentProcesses: 4,
|
||||
parentProcesses: 1,
|
||||
childProcesses: 4,
|
||||
liveProcesses: 8,
|
||||
liveProcesses: 5,
|
||||
parentProviderRequests: 4,
|
||||
childProviderRequests: 4,
|
||||
processBudget: 8,
|
||||
processBudget: 4,
|
||||
childPermits: 4,
|
||||
dispatches: 4,
|
||||
writeLeases: 4,
|
||||
@@ -86,7 +86,7 @@ function assertActivePressure(pressure) {
|
||||
writeLeases: pressure?.writeLeases?.active,
|
||||
};
|
||||
if (JSON.stringify(actual) !== JSON.stringify(expected)) {
|
||||
throw new Error(`PI pressure did not reach 4 parent + 4 child state: ${JSON.stringify(actual)}`);
|
||||
throw new Error(`PI pressure did not reach 4 parent threads + 4 child process state: ${JSON.stringify(actual)}`);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -356,7 +356,7 @@ export async function runPackagedProductProof(options) {
|
||||
if (extension.extension?.subagentStatus !== 'complete'
|
||||
|| extension.extension?.childToolNames?.join(',') !== 'find,grep,ls,read'
|
||||
|| !extension.extension?.parentToolNames?.includes('subagent')
|
||||
|| extension.extension?.parentProcessIds?.length < 2
|
||||
|| extension.extension?.parentProcessIds?.length !== 1
|
||||
|| extension.extension?.childProcessIds?.length !== 1
|
||||
|| extension.extension?.providerRequests?.child !== 1
|
||||
|| extension.extension?.managedTurns?.length !== 2) {
|
||||
@@ -808,7 +808,7 @@ export async function runPackagedProductProof(options) {
|
||||
if (protocolFailure.resilience.terminalizationMs > 2_000) {
|
||||
throw new Error(`Packaged protocol convergence exceeded 2s: ${protocolFailure.resilience.terminalizationMs}`);
|
||||
}
|
||||
await page.getByText('The local Agent protocol failed').waitFor({ state: 'visible', timeout: 10_000 });
|
||||
await page.getByText('本地 Agent 通信异常,当前对话已停止。').waitFor({ state: 'visible', timeout: 10_000 });
|
||||
const recoveredAfterProtocol = await recoverSelectedConversation(page, electronApplication);
|
||||
if (JSON.stringify(recoveredAfterProtocol.resilience.providerRequests)
|
||||
!== JSON.stringify(protocolFailure.resilience.status.providerRequests)) {
|
||||
|
||||
Reference in New Issue
Block a user