Skip to content

🐛 fix(task): include config in getTaskDetail response#13521

Merged
arvinxx merged 1 commit into
canaryfrom
fix/task-detail-return-config
Apr 3, 2026
Merged

🐛 fix(task): include config in getTaskDetail response#13521
arvinxx merged 1 commit into
canaryfrom
fix/task-detail-return-config

Conversation

@sudongyuer

Copy link
Copy Markdown
Collaborator

Summary

getTaskDetail was extracting checkpoint and review from the task's config JSONB column, but not returning the config object itself. This meant model/provider overrides written via task.updateConfig (#13502) could never be read back by the frontend.

Adds config to the detail response so TaskDetailData.config.model / TaskDetailData.config.provider selectors work end-to-end.

Changes

  • src/server/services/task/index.ts: Add config field to getTaskDetail return value

Test plan

  • Write model override via task.updateConfig → call task.detail → verify config.model and config.provider are present in response

cc @arvinxx

🤖 Generated with Claude Code

@vercel

vercel Bot commented Apr 2, 2026

Copy link
Copy Markdown

Deployment failed with the following error:

You don't have permission to create a Preview Deployment for this Vercel project: lobehub.

View Documentation: https://vercel.com/docs/accounts/team-members-and-roles

@sourcery-ai sourcery-ai Bot left a comment

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.

We've reviewed this pull request using the Sourcery rules engine

@sudongyuer sudongyuer requested a review from arvinxx April 2, 2026 19:12
@lobehubbot

Copy link
Copy Markdown
Member

@arvinxx Could you review this PR? It fixes an issue with getTaskDetail not returning the config field — a follow-up to your work in #13502.

@codecov

codecov Bot commented Apr 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.83%. Comparing base (251e12c) to head (0e2238f).

Additional details and impacted files
@@             Coverage Diff             @@
##           canary   #13521       +/-   ##
===========================================
+ Coverage   66.43%   83.83%   +17.39%     
===========================================
  Files        1977      549     -1428     
  Lines      163655    35896   -127759     
  Branches    18716     5894    -12822     
===========================================
- Hits       108724    30093    -78631     
+ Misses      54809     5681    -49128     
  Partials      122      122               
Flag Coverage Δ
app ?
database ?
packages/agent-runtime 88.98% <ø> (ø)
packages/context-engine 86.51% <ø> (ø)
packages/conversation-flow 92.36% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 66.68% <ø> (ø)
packages/model-bank 99.85% <ø> (ø)
packages/model-runtime 84.68% <ø> (ø)
packages/prompts 65.80% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 90.41% <ø> (ø)
packages/web-crawler 88.82% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
Store ∅ <ø> (∅)
Services ∅ <ø> (∅)
Server ∅ <ø> (∅)
Libs ∅ <ø> (∅)
Utils 93.47% <ø> (+2.45%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@sudongyuer sudongyuer force-pushed the fix/task-detail-return-config branch 2 times, most recently from 5d9b378 to f842444 Compare April 2, 2026 19:24
The task detail API was returning checkpoint and review extracted from
config, but not the config object itself. This meant frontend selectors
for model/provider (stored in config via task.updateConfig) could never
read the values back.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@sudongyuer sudongyuer force-pushed the fix/task-detail-return-config branch from f842444 to 7e36a81 Compare April 2, 2026 19:24
@arvinxx arvinxx merged commit 3b316e3 into canary Apr 3, 2026
29 of 30 checks passed
@arvinxx arvinxx deleted the fix/task-detail-return-config branch April 3, 2026 01:49
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.

3 participants