Add AI-generated worktree branch naming with safe Git branch rename flow - #129
Merged
Merged
MacroscopeApp / Macroscope - Correctness Check
succeeded
Mar 2, 2026 in 5m 28s
No issues identified (61 code objects reviewed).
• Merge Base:
206eb6a
• Head:150e171
Details
| ✅ | File Path | Comments Posted |
|---|---|---|
| ➖ | apps/web/src/store.ts |
|
| ➖ | apps/web/src/components/ChatView.tsx |
|
| ✅ | apps/server/src/attachmentPaths.ts |
0 |
| ✅ | apps/server/src/attachmentStore.ts |
0 |
| ✅ | apps/server/src/codexAppServerManager.ts |
0 |
| ✅ | apps/server/src/config.ts |
0 |
| ✅ | apps/server/src/git/Layers/CodexTextGeneration.ts |
0 |
| ✅ | apps/server/src/git/Layers/GitCore.ts |
0 |
| ✅ | apps/server/src/git/Services/GitCore.ts |
0 |
| ✅ | apps/server/src/git/Services/TextGeneration.ts |
0 |
| ✅ | apps/server/src/imageMime.ts |
0 |
| ✅ | apps/server/src/orchestration/Layers/ProjectionPipeline.ts |
0 |
| ✅ | apps/server/src/orchestration/Layers/ProviderCommandReactor.ts |
0 |
| ✅ | apps/server/src/provider/Layers/CodexAdapter.ts |
0 |
| ✅ | apps/server/src/serverLayers.ts |
0 |
| ✅ | apps/server/src/wsServer.ts |
0 |
| ✅ | packages/contracts/src/orchestration.ts |
0 |
| ➖ | apps/server/src/imageMime.test.ts |
|
| ➖ | apps/server/src/attachmentStore.test.ts |
|
| ➖ | apps/server/src/projectFaviconRoute.ts |
|
| ➖ | apps/server/src/main.test.ts |
|
| ➖ | apps/server/src/wsServer.test.ts |
|
| ➖ | apps/server/src/git/Layers/GitCore.test.ts |
|
| ➖ | apps/server/src/git/Layers/GitManager.test.ts |
|
| ➖ | apps/server/src/codexAppServerManager.test.ts |
|
| ➖ | apps/server/src/orchestration/Layers/CheckpointReactor.test.ts |
|
| ➖ | apps/web/src/worktreeCleanup.test.ts |
|
| ➖ | apps/server/src/orchestration/Layers/OrchestrationEngine.test.ts |
|
| ➖ | apps/server/src/persistence/Layers/ProjectionThreadMessages.test.ts |
|
| ➖ | apps/server/integration/OrchestrationEngineHarness.integration.ts |
|
| ➖ | apps/server/src/git/Layers/CodexTextGeneration.test.ts |
|
| ➖ | apps/server/src/provider/Layers/CodexAdapter.test.ts |
|
| ➖ | apps/server/src/orchestration/Layers/ProviderCommandReactor.test.ts |
|
| ➖ | apps/server/src/orchestration/Layers/ProviderRuntimeIngestion.test.ts |
|
| ➖ | apps/server/src/orchestration/Layers/ProjectionPipeline.test.ts |
Filtered Issues Details
apps/server/src/git/Layers/CodexTextGeneration.ts
- line 209: The
runCodexJsonfunction creates temporary files sequentially (schemaPaththenoutputPath) before establishing the cleanup logic. If the secondwriteTempFileoperation (foroutputPath) fails—for example, due to a disk full error or permission issue—the generator terminates immediately. Since thecleanupeffect (which deletes the files) is only attached viaEffect.ensuringto the subsequent inner effect block, the already-createdschemaPathfile is never deleted, leading to a resource leak on the filesystem. [ Out of scope ]
apps/server/src/wsServer.ts
- line 251: The
normalizeDispatchCommandfunction introduces a resource leak when processing multiple attachments. The function iterates over theattachmentsarray usingEffect.forEachwithconcurrency: 1, writing each attachment to disk immediately. If a subsequent attachment in the list fails validation (e.g. invalid mime type, empty body, or too large), the loop terminates with an error. However, the files successfully written for previous attachments in the same command are not deleted. Since the command is rejected and never dispatched to the orchestration engine, these files become permanently orphaned in theattachmentsdirectory, leading to unbounded disk usage if a client repeatedly sends commands with mixed valid/invalid attachments. [ Already posted ]
Loading