Skip to content

fix: Surface a real error when persistence artifact export silently fails on Windows#486

Open
mvanhorn wants to merge 1 commit into
DeusData:mainfrom
mvanhorn:fix/400-windows-persistence-artifact-silent-failure
Open

fix: Surface a real error when persistence artifact export silently fails on Windows#486
mvanhorn wants to merge 1 commit into
DeusData:mainfrom
mvanhorn:fix/400-windows-persistence-artifact-silent-failure

Conversation

@mvanhorn

Copy link
Copy Markdown

Summary

On Windows, index_repository with persistence:true reports status:indexed but artifact_present:false, and the /.codebase-memory directory is created with only ADR.md and no graph.db.zst, with no error surfaced. A second user (armandn) reproduced this on 2026-06-17 with a concrete index_repository response (nodes:1866, edges:5340, adr_present:true, artifact_present:false).

Changes

The artifact export lives in src/pipeline/artifact.c (referenced by pipeline.c, which sets artifact_present in the index_repository response). Audit the Windows code path for the zstd-compressed graph.db.zst write: a failed temp-file create/rename or path-separator/long-path handling likely returns early without propagating an error, leaving artifact_present:false and no log line.

Fixes #400

…ails on Windows

Signed-off-by: mvanhorn <mvanhorn@gmail.com>
@mvanhorn mvanhorn force-pushed the fix/400-windows-persistence-artifact-silent-failure branch from fabaa32 to d4aae7e Compare June 17, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Persistence feature (persistence: true) not working on Windows

1 participant