Skip to content

feat(cli/deploy): persistent JSONL trace and structured client logging - #189

Merged
Brooooooklyn merged 1 commit into
mainfrom
feat/cli-deploy-logging
May 7, 2026
Merged

Brooooooklyn merged 1 commit into
mainfrom
feat/cli-deploy-logging

Conversation

@Brooooooklyn

@Brooooooklyn Brooooooklyn commented May 7, 2026 •

Copy link
Copy Markdown
Member

Adds ~/.void/logs/deploy-.jsonl forensic trace for every deploy so
failures (e.g. Connection lost during deploy: terminated) can be
diagnosed from the trace alone. Records: phase boundaries, network calls
with cf-ray correlation, every NDJSON event with raw slice and elapsed
ms, full error.cause chain.

New --debug flag (alongside back-compat VOID_DEPLOY_DEBUG=1) mirrors the
JSONL stream to stderr inline. Failed deploys append the log path to
the user-visible error so it can be attached to bug reports.

Replaces the env-gated [void-deploy-debug] stderr writes from the prior
diagnostic session.

Co-Authored-By: Claude Opus 4.7 noreply@anthropic.com


Note

Medium Risk
Touches the deploy pipeline and platform streaming client to add always-on file logging and new error formatting; while mostly additive, it changes deploy error paths and adds filesystem I/O during deploys.

Overview
Adds a persistent, structured deploy trace: every void deploy now writes JSONL logs to ~/.void/logs/deploy-<timestamp>.jsonl, with a new --debug flag (or VOID_DEPLOY_DEBUG=1) to mirror the same structured events to stderr.

Threads a new CliLogger through the deploy flow and PlatformClient.deploy() to record phase boundaries, request/response metadata (including Cloudflare correlation headers), stream parsing metrics, and each NDJSON deploy event; deploy failures now append the log file path to user-facing error messages for easier issue reporting.

Reviewed by Cursor Bugbot for commit 81634fe. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Comment thread packages/void/src/cli/log-file.ts Resolved
Comment thread packages/void/src/cli/client.ts Resolved
@Brooooooklyn
Brooooooklyn force-pushed the feat/cli-deploy-logging branch from 29c3703 to 2946a31 Compare May 7, 2026 04:44

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 3 total unresolved issues (including 2 from previous reviews).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2946a31. Configure here.

Comment thread packages/void/src/cli/log-file.ts Resolved
@Brooooooklyn
Brooooooklyn force-pushed the feat/cli-deploy-logging branch from 2946a31 to c24b7c6 Compare May 7, 2026 04:51
Adds ~/.void/logs/deploy-<ts>.jsonl forensic trace for every deploy so
failures (e.g. Connection lost during deploy: terminated) can be
diagnosed from the trace alone. Records: phase boundaries, network calls
with cf-ray correlation, every NDJSON event with raw slice and elapsed
ms, full error.cause chain.

New --debug flag (alongside back-compat VOID_DEPLOY_DEBUG=1) mirrors the
JSONL stream to stderr inline. Failed deploys append the log path to
the user-visible error so it can be attached to bug reports.

Replaces the env-gated [void-deploy-debug] stderr writes from the prior
diagnostic session.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@Brooooooklyn
Brooooooklyn force-pushed the feat/cli-deploy-logging branch from c24b7c6 to 81634fe Compare May 7, 2026 04:54
@Brooooooklyn
Brooooooklyn merged commit 1781e79 into main May 7, 2026
11 checks passed
@Brooooooklyn
Brooooooklyn deleted the feat/cli-deploy-logging branch May 7, 2026 06:02
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.

1 participant