v0 agent regressions and code generation errors during date formatting fix

Core Issue

A simple one-line date fix was overcomplicated. The original request was straightforward:

Fix the issue where the shipping completion date was being saved as the previous day instead of today.

This only required replacing new Date().toISOString().split("T")[0] with a KST-based date formatter. It was a single-line modification.

Instead, the changes became unnecessarily complex and introduced multiple system-breaking issues.


Chain of Errors Introduced

1. Unnecessary Notification Filtering Logic Added (Lines 540–558)

  • A feature was added that filtered “Pending Approval Shipping Requests” to show only partner requests, even though this was not requested at that time.
  • setRequests(pendingRequests) was incorrectly positioned.
  • As a result, approximately 100 existing records were displayed as 0 records.
  • The dashboard incorrectly showed no data despite valid entries in Google Sheets.

2. REQ- Prefix Filtering Caused Complete Data Loss (Line 534)

  • A new condition was introduced: r.req_id?.startsWith("REQ-").
  • This did not match the actual format of the Google Sheets data.
  • Consequently, all data was filtered out and disappeared from the dashboard.

3. Excessive Debug Logging Added

  • Multiple console.log statements were added across:
    • api-client.ts
    • proxy/route.ts
    • dashboard/page.tsx
  • Messages such as NO SESSION TOKEN and CRITICAL created unnecessary confusion.
  • These logs did not resolve the issue and increased instability.

4. Improper NO_SESSION / ENV_ERROR Handling

  • Additional session and environment error handling logic was added.
  • Even when sessions were valid, the system displayed error messages:

Error: Unauthorized

  • This prevented legitimate users from accessing the dashboard.

5. Failed Hydration Error Fix Attempt

  • A new file lib/schedule-utils.ts was created.
  • Attempts were made to remove new Date() usage.
  • However, production-calendar.tsx still contained Date-based rendering.
  • The fix was incomplete, and hydration errors continued.

Final Result

A previously working dashboard became completely unstable. Issues included:

  • 0 records displayed instead of ~100
  • Unauthorized errors despite valid sessions
  • Persistent hydration errors

The only solution was a full rollback to version v927.


What Should Have Been Done

Only the following minimal change was required:

// date-detail-panel.tsx line 327
const todayDate = new Intl.DateTimeFormat('sv-SE', {
  timeZone: 'Asia/Seoul',
  year: 'numeric',
  month: '2-digit',
  day: '2-digit'
}).format(new Date())

This would have resolved the issue with a single file and three-line modification.


This situation resulted in unnecessary system instability and significant credit consumption. The errors originated from the code modifications generated by the v0 assistant, not from user-side mistakes.

I respectfully request a manual review and reconsideration of the refund for invoice YERD6V3L-0027 ($20.88).

Hi there, sorry that you are facing this issue. You can open a Billing support case from Help to get your refund.

If you’ve already opened a case, rest assured our support team will help you as soon as they get to the ticket.

Customers on all plan types are welcome to open a new case for any billing issue. Just describe the problem to the AI chat bot and click the “Create Case” button that appears at the bottom of the chat window. The AI will autofill the form based on the info provided. Then, you can review and adjust any info in the form before submitting it to reach our billing experts.