Skip to content

improvement(chat): show background task and scheduled job turns as messages - #10032

Merged
waleedlatif1 merged 3 commits into
stagingfrom
improvement/background-task-message
Nov 14, 2026
Merged

waleedlatif1 merged 3 commits into
stagingfrom
improvement/background-task-message

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Turns opened by a background task or scheduled job now render as a message in the user's lane instead of a centered system chip, with a small clock/calendar label above saying what sent it
  • Reuses the user row and bubble styles plus UserMessageContent, so the bubble matches a typed message exactly
  • A background task's bubble shows the same line as its watch row under the arming turn (e.g. "Timer finished · 02:12 PM", "Failed workflow run: ") instead of the raw notification with an ISO timestamp; the agent's note shows on hover
  • A scheduled job shows its title, with the run ("Run 3 of 10") in the label
  • Parsing lives in lib/mothership/chat/automated-turn.ts and falls back to a generic line for any message shape it doesn't know

Type of Change

  • Improvement

Testing

  • automated-turn.test.ts (timer, workflow run, workflow run without ids, unknown status/target, job, job title with parentheses, job without header), red before the parser existed
  • Existing mothership-chat tests, biome, check:comment-hygiene, check:file-names; type-check and full audits in CI

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing (new tests pass the test-audit authoring gate)
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Nov 14, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
docs Ready Ready Preview Nov 14, 2026 2:16am UTC

Request Review

@cubic-dev-ai cubic-dev-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.

No issues found across 4 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@greptile-apps

greptile-apps Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; no new actionable issue was found.

Summary

Automated turns now appear as labeled bubbles in the user's lane.

  • Automated turns appear as labeled messages in the chat.

Both earlier findings are fixed: names now refresh, and the label uses the required shared styles.

Reviews (3) · Last reviewed commit: "chore(chat): shrink the text-size-litera..." · Reviewed by Greptile

@waleedlatif1
waleedlatif1 force-pushed the improvement/background-task-message branch from 4b93584 to 35217a9 Compare November 14, 2026 02:00
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-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.

All reported issues were addressed across 5 files

Reply with feedback, questions, or to request a fix.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 force-pushed the improvement/background-task-message branch from 35217a9 to df14fdf Compare November 14, 2026 02:11
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-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.

No issues found across 6 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Turn on auto-fix | Re-trigger cubic

@waleedlatif1
waleedlatif1 merged commit 769e6cf into staging Nov 14, 2026
84 checks passed
@waleedlatif1
waleedlatif1 deleted the improvement/background-task-message branch November 14, 2026 02:47

This branch was successfully deployed

1 active deployment
Preview — df14fdf8 Deployed Nov 14, 2026 by vercel[bot]
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