Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/agent/src/handoff-checkpoint.ts
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export class HandoffCheckpointTracker {
!!capture.headPack && !uploads.pack?.storagePath;
const indexUploadMissing = !uploads.index?.storagePath;
if (packUploadMissing || indexUploadMissing) {
this.logger.warn(
this.logger.debug(
"Discarding handoff checkpoint: required artifact uploads did not complete",
Comment on lines +131 to 132

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Unexpected Discards Lose Warning Signal

This branch also runs when required uploads are missing because direct and inline upload attempts failed, not only when an artifact exceeded its expected size limit. Log collectors that exclude debug entries will lose the final checkpoint-discard event and its checkpoint ID, upload state, and artifact sizes, making unexpected checkpoint loss harder to diagnose.

Suggested change
this.logger.debug(
"Discarding handoff checkpoint: required artifact uploads did not complete",
this.logger.warn(
"Discarding handoff checkpoint: required artifact uploads did not complete",

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

{
checkpointId: capture.checkpoint.checkpointId,
Expand Down Expand Up @@ -245,7 +245,7 @@ export class HandoffCheckpointTracker {

const content = await readFile(filePath);
if (content.byteLength > MAX_ARTIFACT_UPLOAD_BYTES) {
this.logger.warn(
this.logger.debug(
"Skipping handoff artifact upload: file exceeds the artifact size limit",
{
name,
Expand Down
Loading