Repository navigation
fix(tasks): Frame automated agent input plainly - #1653
Merged
Merged
Conversation
Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
Co-Authored-By: David Cramer <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
dcramer
approved these changes
Aug 22, 2026
dcramer
marked this pull request as ready for review
August 22, 2026 03:51
dcramer
added a commit
that referenced
this pull request
Oct 2, 2026
…#2009) Automations now record and receive the exact person a task is for. Before this change, a stored instruction such as "Remind me to do healthchecks" reached the agent with no way to know who "me" was. Since #1653 removed the creator from scheduled task input, the reminder tagged nobody or, as in #1394, the wrong person. The fix has two parts: - **At creation:** the scheduled and event automation create and update tools share one instruction description. It tells the agent that the task runs later without this conversation, so it must name each person with their Slack mention instead of "me", "my", or "you". "Remind me in this channel to submit my timesheet" is now stored as an instruction for `<@U…>`. - **At dispatch:** task input adds a `Created by: <@U…>` line for scheduled and event automations. This covers instructions that people write in the dashboard editor, and tasks stored since #1653 that still say "me". `chat/README.md` lists the new section. `slackMention()` moves from a private helper in `user-lookup.ts` to `slack/mrkdwn.ts`, so the three callers share it. The deterministic guard is in `heartbeat.test.ts`: the dispatch input must name the creator. The agent-level checks are exact integration evals in the stacked fixture PR, which needs this change to pass. Without this change, both evals fail with the reported bug. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
dcramer
added a commit
that referenced
this pull request
Oct 2, 2026
…#2009) Automations now record and receive the exact person a task is for. Before this change, a stored instruction such as "Remind me to do healthchecks" reached the agent with no way to know who "me" was. Since #1653 removed the creator from scheduled task input, the reminder tagged nobody or, as in #1394, the wrong person. The fix has two parts: - **At creation:** the scheduled and event automation create and update tools share one instruction description. It tells the agent that the task runs later without this conversation, so it must name each person with their Slack mention instead of "me", "my", or "you". "Remind me in this channel to submit my timesheet" is now stored as an instruction for `<@U…>`. - **At dispatch:** task input adds a `Created by: <@U…>` line for scheduled and event automations. This covers instructions that people write in the dashboard editor, and tasks stored since #1653 that still say "me". `chat/README.md` lists the new section. `slackMention()` moves from a private helper in `user-lookup.ts` to `slack/mrkdwn.ts`, so the three callers share it. The deterministic guard is in `heartbeat.test.ts`: the dispatch input must name the creator. The agent-level checks are exact integration evals in the stacked fixture PR, which needs this change to pass. Without this change, both evals fail with the reported bug. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Event tasks still used internal runtime vocabulary in agent input, and scheduled tasks had the same problem. Temporary resource watches already used plain framing.
This change makes the three automated wrappers consistent:
Primary coverage is full inline snapshots for the rendered agent input on event tasks, resource watches, and scheduled tasks.
Checks:
@sentry/juniortypecheck@sentry/juniorlintRequested by David Cramer.
--
View Junior Session [Sentry]