Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(plugins): tolerate rollback guard nesting indentation
zqchrisc5806627245f
diff --git a/apps/desktop/src/main/cindy-brain/__tests__/marketGhostSessionBoundary.test.ts b/apps/desktop/src/main/cindy-brain/__tests__/marketGhostSessionBoundary.test.tsindex b7813b92ff..0966b5910f 100644--- a/apps/desktop/src/main/cindy-brain/__tests__/marketGhostSessionBoundary.test.ts+++ b/apps/desktop/src/main/cindy-brain/__tests__/marketGhostSessionBoundary.test.ts@@ -270,7 +270,8 @@ describe('market Ghost session boundary', () => {expect(helperBody).toContain('用户显式卸载,不得产生 default-install opt-out');expect(helperBody).toContain('onPackagePlaced: () => {');expect(helperBody).toContain('packagePlaced = true;');- expect(helperBody).toContain('if (!packagePlaced) {\n restoreMarketRecord();');+ // The rollback condition and first action are the contract, not nesting indentation.+ expect(helperBody).toMatch(/if \(!packagePlaced\) \{\n[ \t]+restoreMarketRecord\(\);/);expect(updateBody).toContain('releaseMutation();');expect(helperBody).not.toContain('GHOST_SOURCE_CONFLICT');});