Skip to content

fix: show actual parse error in queue validation failure message#285

Open
airouboss wants to merge 1 commit intoKeygraphHQ:mainfrom
airouboss:skip-packaging-option
Open

fix: show actual parse error in queue validation failure message#285
airouboss wants to merge 1 commit intoKeygraphHQ:mainfrom
airouboss:skip-packaging-option

Conversation

@airouboss
Copy link
Copy Markdown

When a queue file contains invalid JSON, the error logged was always the
same generic message with no detail about what was actually wrong. The real
parse error was being captured but silently dropped, so you'd have to dig
into error context objects to figure out what the agent produced.

This change includes the actual parse error in the message so it shows up
directly in logs.

Since the project didn't have a test setup yet, I added vitest and wrote
13 tests covering the full validation pipeline, missing files, malformed
JSON, wrong structure, empty queues, and populated queues.

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.

2 participants