Repository navigation
feat(dashboard): Show an automation card at the top of automation runs - #2170
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
135 screenshot changes — 0 changed · 135 added · 0 removed |
Show an "Automation: <name>" link in the conversation header and details drawer for automation runs. Render the run's dispatch input as an automation trigger row instead of a user message from "junior". The conversation report now names that input in sourceTask.triggerMessageId so the dashboard does not infer it from ids. Co-Authored-By: David Cramer <[email protected]>
Replace the header link and trigger row with one card at the top of the transcript. It names the Automation, links to it, and shows the trigger, run time, and whose credentials the run used. Credentials come from the run's dispatch record. The run input stays behind Show prompt. Co-Authored-By: David Cramer <[email protected]>
sentry-junior
Bot
force-pushed
the
feat/dashboard-automation-run-trigger
branch
from
October 16, 2026 22:32
f1719e5 to
f307f9d
Compare
dcramer
marked this pull request as ready for review
October 16, 2026 22:38
dcramer
reviewed
Oct 16, 2026
Hidden Automations show as Automation, not Scheduled or Event automation.
dcramer
approved these changes
Oct 16, 2026
6 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Automation run conversations now show one card at the top of the transcript. It says which Automation ran, what triggered it, how to open it, and whose credentials it used. Before, the only link was "Triggered by …" in the details drawer, and the run input showed as a user message from a confusing "junior" author.
Changes
TranscriptAutomationTriggerView). It replaces the run input message. It is one bordered card:main. The details drawer keeps one "Automation: " row that links to the Automation.sourceTask(readConversationSourceTask,chat/automations/read.ts):triggerMessageId: the run input message, so the dashboard does not infer it.triggerLabel: the schedule description, or the trigger resource label plus the event action when the trigger has one event.credentialModeandcredentialUser: read from the run'sDispatchRecord.credentialSubject, not from the Automation's current setting. They are omitted when the dispatch record is gone (it has a TTL) and for viewers who cannot see the Automation.agent-dispatch:event-1covers an event automation run.Why "junior" showed as the author
createOrGetDispatchsetsactor: { platform: "system", name: plugin }(chat/agent-dispatch/store.ts). For Event automations the plugin is"junior". For Scheduled automations it is"scheduler".slack/dispatch-turn.tsbuilds a synthetic Slack message with that name as the author (isBot: true). The report then shows it as the user message author.Before / after (mock data)
Before: the run input shows as a user message from "junior". The link is only in the drawer.
After: one trigger card at the top of the transcript, collapsed and with the prompt expanded.
Follow-ups
slack/dispatch-turn.ts.Validation
pnpm typechecktests/integration/api/conversations/detail.test.ts(3/3)dashboard-style:check,file-length:checkJUNIOR_DASHBOARD_MOCK_CONVERSATIONS=true pnpm dev,/conversations/agent-dispatch%3Aevent-1via David Cramer.
--
View Junior Session [Sentry]