Skip to content

💄 style(tasks): drop custom actions on result briefs & show trigger tag in subtasks#14226

Merged
arvinxx merged 1 commit into
canaryfrom
feat/task-brief-result-no-action
Apr 27, 2026
Merged

💄 style(tasks): drop custom actions on result briefs & show trigger tag in subtasks#14226
arvinxx merged 1 commit into
canaryfrom
feat/task-brief-result-no-action

Conversation

@arvinxx

@arvinxx arvinxx commented Apr 27, 2026

Copy link
Copy Markdown
Member

💻 Change Type

  • ✨ feat
  • 🐛 fix
  • ♻️ refactor
  • 💄 style
  • 👷 build
  • ⚡️ perf
  • ✅ test
  • 📝 docs
  • 🔨 chore

🔗 Related Issue

Follow-up to #14208.

🔀 Description of Change

  • Result briefs are terminal — no custom actions. The result brief UI hardcodes a single approve button that routes through BriefService.resolve to complete the task, so any actions array on a result brief was silently ignored. Reject them at the source: drop the result entry from DEFAULT_BRIEF_ACTIONS, force actions = null in the server runtime when type === 'result', and remove the now-dead custom action list from the lifecycle's max-iteration brief. The tool manifest description now calls out this constraint so the agent stops emitting actions it never gets credit for.
  • Surface automation trigger on subtask rows. Threaded automationMode / heartbeat.interval / schedule.{pattern,timezone} through TaskService → TaskDetailSubtask and rendered TaskTriggerTag next to the subtask name when the subtask runs in heartbeat / schedule mode. Tree title now flexes/overflows correctly so long names truncate without pushing the tag offscreen.
  • Polish. QueueTray send icon swapped to ArrowUp for consistency with the main composer.

🧪 How to Test

  • Tested locally

  • Added/updated tests

  • No tests needed

  • Trigger an auto-review with maxIterations reached → confirm the urgent result brief renders the fixed approve button only (no retry/feedback custom actions).

  • Have an agent emit a briefCreate with type: 'result' and a custom actions array → confirm the brief is created with actions = null in DB.

  • Open a task with subtasks running in heartbeat or schedule mode → confirm TaskTriggerTag shows next to each subtask name and long names truncate cleanly.

📸 Screenshots / Videos

Before After
... ...

📝 Additional Information

No DB migration. No breaking change for existing briefs (actions column already nullable).

…g in subtasks

- Result briefs render a fixed single-button UI, so reject custom actions at
  brief creation time and remove the unused defaults / lifecycle actions.
- Surface automation trigger (heartbeat / schedule) on subtask rows by
  threading the fields through TaskService → TaskDetailSubtask → tree.
- Polish: tree title flex/overflow fix, QueueTray send icon swapped to ArrowUp.

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

vercel Bot commented Apr 27, 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 27, 2026 9:33am

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.

Sorry @arvinxx, you have reached your weekly rate limit of 500000 diff characters.

Please try again later or upgrade to continue using Sourcery

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. feature:agent Assistant/Agent configuration and behavior feature:schedule-task Schedule task labels Apr 27, 2026
@arvinxx arvinxx changed the title ✨ feat(tasks): drop custom actions on result briefs & show trigger tag in subtasks 💄 style(tasks): drop custom actions on result briefs & show trigger tag in subtasks Apr 27, 2026
@codecov

codecov Bot commented Apr 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 71.42857% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 68.07%. Comparing base (f32fff1) to head (f361cb1).
⚠️ Report is 3 commits behind head on canary.

Additional details and impacted files
@@             Coverage Diff             @@
##           canary   #14226       +/-   ##
===========================================
- Coverage   86.03%   68.07%   -17.97%     
===========================================
  Files         620     2262     +1642     
  Lines       51652   194173   +142521     
  Branches     8719    24260    +15541     
===========================================
+ Hits        44440   132181    +87741     
- Misses       7083    61863    +54780     
  Partials      129      129               
Flag Coverage Δ
app 61.56% <71.42%> (?)
database 92.03% <ø> (-0.01%) ⬇️
packages/agent-runtime 79.93% <ø> (ø)
packages/context-engine 83.25% <ø> (ø)
packages/conversation-flow 92.40% <ø> (ø)
packages/file-loaders 87.02% <ø> (ø)
packages/memory-user-memory 74.74% <ø> (ø)
packages/model-bank 99.89% <ø> (ø)
packages/model-runtime 84.28% <ø> (ø)
packages/prompts 68.17% <ø> (ø)
packages/python-interpreter 92.90% <ø> (ø)
packages/ssrf-safe-fetch 0.00% <ø> (ø)
packages/utils 88.41% <ø> (ø)
packages/web-crawler 88.66% <ø> (ø)

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

Components Coverage Δ
Store 67.20% <ø> (∅)
Services 53.36% <ø> (∅)
Server 68.44% <80.00%> (∅)
Libs 53.30% <ø> (∅)
Utils 80.04% <ø> (-13.43%) ⬇️
🚀 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.

@arvinxx arvinxx merged commit ee55d74 into canary Apr 27, 2026
50 of 56 checks passed
@arvinxx arvinxx deleted the feat/task-brief-result-no-action branch April 27, 2026 09:44
sxueck pushed a commit to sxueck/lobehub that referenced this pull request Apr 28, 2026
…ag in subtasks (lobehub#14226)

✨ feat(tasks): drop custom actions on result briefs & show trigger tag in subtasks

- Result briefs render a fixed single-button UI, so reject custom actions at
  brief creation time and remove the unused defaults / lifecycle actions.
- Surface automation trigger (heartbeat / schedule) on subtask rows by
  threading the fields through TaskService → TaskDetailSubtask → tree.
- Polish: tree title flex/overflow fix, QueueTray send icon swapped to ArrowUp.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
mutoe pushed a commit to mutoe/lobehub that referenced this pull request May 1, 2026
…ag in subtasks (lobehub#14226)

✨ feat(tasks): drop custom actions on result briefs & show trigger tag in subtasks

- Result briefs render a fixed single-button UI, so reject custom actions at
  brief creation time and remove the unused defaults / lifecycle actions.
- Surface automation trigger (heartbeat / schedule) on subtask rows by
  threading the fields through TaskService → TaskDetailSubtask → tree.
- Polish: tree title flex/overflow fix, QueueTray send icon swapped to ArrowUp.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature:agent Assistant/Agent configuration and behavior feature:schedule-task Schedule task size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant