Skip to content

🔨 chore: resolve author info for task activity list#13732

Merged
arvinxx merged 2 commits into
canaryfrom
feat/activity-author-info
Apr 11, 2026
Merged

🔨 chore: resolve author info for task activity list#13732
arvinxx merged 2 commits into
canaryfrom
feat/activity-author-info

Conversation

@arvinxx

@arvinxx arvinxx commented Apr 11, 2026

Copy link
Copy Markdown
Member

Summary

  • Add author field ({id, type, name, avatar}) to TaskDetailActivity type
  • Backend batch-resolves agent/user info in getTaskDetail via resolveAuthors()
  • Topics get author from task's assigneeAgentId, briefs from agentId, comments from authorAgentId / authorUserId
  • Add TaskDetailActivityAuthor interface to @lobechat/types

Fixes LOBE-7013

Test plan

  • Existing unit tests pass (20/20)
  • New test: verifies author resolution for topic (agent) and comment (user) activities
  • Integration tests pass (16/16)

🤖 Generated with Claude Code

Add `author` field to `TaskDetailActivity` with `{id, type, name, avatar}`.
Backend resolves agent/user info via batch queries in `getTaskDetail`:
- Topics: author is the task's assignee agent
- Briefs: author is the brief's agentId
- Comments: author is authorAgentId or authorUserId

Fixes LOBE-7013

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercel Bot commented Apr 11, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
lobehub Ready Ready Preview, Comment Apr 11, 2026 0:30am

Request Review

@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

@codecov

codecov Bot commented Apr 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.57%. Comparing base (39bca4b) to head (1b3d693).
⚠️ Report is 3 commits behind head on canary.

Additional details and impacted files
@@           Coverage Diff           @@
##           canary   #13732   +/-   ##
=======================================
  Coverage   66.56%   66.57%           
=======================================
  Files        2024     2024           
  Lines      171319   171360   +41     
  Branches    16639    16652   +13     
=======================================
+ Hits       114042   114081   +39     
- Misses      57153    57155    +2     
  Partials      124      124           
Flag Coverage Δ
app 58.63% <100.00%> (+0.01%) ⬆️
database 92.56% <ø> (ø)
packages/agent-runtime 79.72% <ø> (ø)
packages/context-engine 83.33% <ø> (ø)
packages/conversation-flow 92.36% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 74.74% <ø> (ø)
packages/model-bank 99.86% <ø> (ø)
packages/model-runtime 84.30% <ø> (ø)
packages/prompts 69.24% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 90.14% <ø> (ø)
packages/web-crawler 88.66% <ø> (ø)

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

Components Coverage Δ
Store 65.76% <ø> (ø)
Services 52.19% <ø> (ø)
Server 66.30% <100.00%> (+0.02%) ⬆️
Libs 52.83% <ø> (ø)
Utils 91.01% <ø> (ø)
🚀 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.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ca96918abe

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/server/services/task/index.ts Outdated
Replace direct db.select() calls in TaskService with:
- AgentModel.getAgentAvatarsByIds() for agent info
- UserModel.findByIds() for user info

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@arvinxx arvinxx changed the title ✨ feat: resolve author info for task activity list 🔨 chore: resolve author info for task activity list Apr 11, 2026
@arvinxx arvinxx merged commit a8fee05 into canary Apr 11, 2026
34 checks passed
@arvinxx arvinxx deleted the feat/activity-author-info branch April 11, 2026 12:43
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