Skip to content

fix: keep task logger messages static#236

Open
EfeDurmaz16 wants to merge 2 commits into
vercel-labs:mainfrom
EfeDurmaz16:codex/static-task-logger-messages
Open

fix: keep task logger messages static#236
EfeDurmaz16 wants to merge 2 commits into
vercel-labs:mainfrom
EfeDurmaz16:codex/static-task-logger-messages

Conversation

@EfeDurmaz16
Copy link
Copy Markdown

Summary

  • replace user-facing TaskLogger command/output/error messages with fixed phrases across sandbox setup and agent execution paths
  • keep detailed command/output data out of task logs while preserving return values and server-side console diagnostics
  • add pnpm check:task-logs to catch future non-literal TaskLogger messages

Closes #58.

Verification

  • pnpm check:task-logs
  • pnpm type-check

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented May 15, 2026

@EfeDurmaz16 is attempting to deploy a commit to the Vercel Labs Team on Vercel.

A member of the Team first needs to authorize it.

.filter((line) => line.trim())
for (const line of lines) {
logger.info(`[SERVER] ${line}`).catch(() => {})
logger.info('Development server produced output').catch(() => {})
Copy link
Copy Markdown
Contributor

@vercel vercel Bot May 15, 2026

Choose a reason for hiding this comment

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

Identical static log message 'Development server produced output' is emitted once per line of server output instead of once per chunk in start-sandbox/route.ts and lib/sandbox/creation.ts, causing log spam with no useful information.

Fix on Vercel

@EfeDurmaz16
Copy link
Copy Markdown
Author

Updated this branch with a focused follow-up for the restart-dev log spam review.

Change:

  • app/api/tasks/[taskId]/restart-dev/route.ts now emits the static dev-server-output log at most once per non-empty stdout/stderr chunk, instead of once per output line.

Verification:

  • pnpm check:task-logs
  • pnpm type-check
  • git diff --check before commit

Commit: 853866b

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.

Replace dynamic agent log entries with fixed phrases to prevent data leakage Description

1 participant