Skip to content

feat: expand /api/tasks/runs with metadata and timestamps#223

Merged
sweetmantech merged 1 commit intotestfrom
sweetmantech/myc-4261-api-apitasksruns-expanded-response
Feb 16, 2026
Merged

feat: expand /api/tasks/runs with metadata and timestamps#223
sweetmantech merged 1 commit intotestfrom
sweetmantech/myc-4261-api-apitasksruns-expanded-response

Conversation

@sweetmantech
Copy link
Contributor

Summary

  • Expand TaskRunResult type with metadata, taskIdentifier, createdAt, startedAt, finishedAt, durationMs
  • Passes through structured metadata emitted by Trigger.dev tasks for real-time observability
  • Updated all 12 existing tests + added 1 new test for null metadata

Test plan

  • All 12 existing tests updated and passing
  • New test for null metadata case passing
  • Manual test: trigger sandbox setup, verify expanded response from /api/tasks/runs

🤖 Generated with Claude Code

…ifier

Add metadata, taskIdentifier, createdAt, startedAt, finishedAt, and
durationMs to the TaskRunResult type so the /api/tasks/runs endpoint
returns real-time progress data for the task observability UI.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@vercel
Copy link
Contributor

vercel bot commented Feb 16, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
recoup-api Ready Ready Preview Feb 16, 2026 2:07pm

Request Review

@coderabbitai
Copy link

coderabbitai bot commented Feb 16, 2026

Warning

Rate limit exceeded

@sweetmantech has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 26 minutes and 7 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch sweetmantech/myc-4261-api-apitasksruns-expanded-response

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@sweetmantech sweetmantech merged commit ef06a73 into test Feb 16, 2026
3 checks passed
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

Comments