Skip to content

fix(slack): Ignore message edits - #1872

Merged
dcramer merged 11 commits into
mainfrom
fix/history-branch-failure
Sep 17, 2026
Merged

dcramer merged 11 commits into
mainfrom
fix/history-branch-failure

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Ignore Slack message_changed events.
  • Keep accepted Conversation Messages immutable.
  • Remove the edited-message ingress path and dashboard workaround.
  • Narrow an overfit event-automation eval rubric so ordinary English such as “watches” is valid.

Why

A Slack edit could synthesize a second Conversation Message and start another Turn for the same Slack Message. That can duplicate input and show a false “Context from” row.

Edits now do nothing. They cannot rewrite transcript history, append a replacement Message, or start or repeat a Turn. A user must send a new Message or reply with @junior instead.

The prior checkpoint policy was removed. Slack input uses the same agent checkpoint behavior as other sources; this PR fixes the producer at Slack ingress instead of adding recovery logic to the shared runtime.

Evidence

Verification

  • Slack edit behavior and Conversation work tests: 27 passed
  • Dashboard transcript tests: 2 passed
  • Junior, dashboard, and eval typechecks passed
  • Formatting and diff checks passed

via David Cramer.

--

View Junior Session [Sentry]

Co-Authored-By: David Cramer <david@sentry.io>
@vercel

vercel Bot commented Sep 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated
junior-docs Ready Ready Preview Sep 17, 2026 3:53pm UTC

Request Review

sentry-junior Bot and others added 2 commits September 17, 2026 00:30
…ilure

Co-Authored-By: David Cramer <david@sentry.io>
Co-Authored-By: David Cramer <david@sentry.io>
…ilure

Co-Authored-By: David Cramer <david@sentry.io>
@dcramer
dcramer marked this pull request as ready for review September 17, 2026 02:21
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Sep 17, 2026

@cursor cursor 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit af4814f. Configure here.

Comment thread packages/junior/src/chat/agent/resume.ts Outdated
Co-Authored-By: David Cramer <david@sentry.io>
Comment thread packages/junior-dashboard/src/client/conversations/eventTranscript.ts Outdated
Keep accepted Conversation Messages immutable. Slack message_changed events no longer create replacement Messages or start Turns, and the dashboard no longer needs an edited-message projection workaround.

Co-Authored-By: David Cramer <david@sentry.io>
@sentry-junior sentry-junior Bot changed the title fix(chat): Surface deterministic history branches fix(chat): Surface history branches and ignore Slack edits Sep 17, 2026
Allow ordinary English that says an event automation watches a resource. Keep rejecting claims that the temporary watchEvents tool or a polling schedule was created.

Co-Authored-By: David Cramer <david@sentry.io>
Name the two facts directly: whether input still needs a durable copy, and whether a history branch must fail the progress write. Document why only direct Slack input needs this before acknowledgement.

Co-Authored-By: David Cramer <david@sentry.io>
Keep the fix at Slack ingress by ignoring edits. Remove the special agent checkpoint behavior and its history-branch test changes because Slack input now follows the same durable mailbox contract as other work.

Co-Authored-By: David Cramer <david@sentry.io>
@sentry-junior sentry-junior Bot changed the title fix(chat): Surface history branches and ignore Slack edits fix(slack): Ignore message edits Sep 17, 2026
@dcramer
dcramer merged commit 0b0899a into main Sep 17, 2026
78 of 85 checks passed
@dcramer
dcramer deleted the fix/history-branch-failure branch September 17, 2026 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: high PR risk score: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant