Skip to content

fix(slack): Serve Automation Work Object details - #1898

Merged
dcramer merged 2 commits into
mainfrom
fix/slack-work-object-details
Sep 23, 2026
Merged

dcramer merged 2 commits into
mainfrom
fix/slack-work-object-details

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Handle entity_details_requested on the existing Slack webhook and answer with entity.presentDetails. Load current scheduled or event Automation facts through the same access rules as the Automations view. Missing, deleted, and inaccessible objects return not_found without exposing their facts.

Keep native Work Objects for saved Automations. Delete tools return ordinary results without cards. Pending-card loading suppresses earlier cards for the same Automation after a delete. Remove operation labels, deletion render branches, and the deleted-card fixture. Normalize old receipt cards only when reading stored history so existing transcripts still work. Restore the linked diagnostic ID in the Slack footer.

Existing Slack apps must subscribe to entity_details_requested at /api/webhooks/slack and enable Work Object Previews → Item. The manifest and setup docs include these requirements; deploying code alone does not update Slack app settings. Native Slack appearance still needs a staging check.

via David Cramer.

--

View Junior Session [Sentry]

@vercel

vercel Bot commented Sep 23, 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 23, 2026 2:53am UTC

Request Review

@github-actions

github-actions Bot commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

1 screenshot change — 1 changed · 0 added · 0 removed

Review screenshots in Frameshift

Gallery Transcripts · Desktop
Gallery Transcripts · Desktop
Changed

@dcramer
dcramer marked this pull request as ready for review September 23, 2026 02:45
@github-actions github-actions Bot added the risk: high PR risk score: high label Sep 23, 2026
@dcramer
dcramer merged commit 25c57a4 into main Sep 23, 2026
42 checks passed
@dcramer
dcramer deleted the fix/slack-work-object-details branch September 23, 2026 03:15
BYK added a commit that referenced this pull request Nov 7, 2026
)

Junior didn't connect a request to an issue that it had filed in another
Conversation. The user was asking about isolating SDK module state, and
the issue was getsentry/toolkit#1898, which Junior filed for exactly
that. `searchConversationBriefs` found the filing Conversation with
`annotation: "getsentry/toolkit#1898"`, but the topic query "isolate
module-level state SDK" returned nothing.

Two gaps caused it:

- **Titles dropped.** GitHub object annotations keep the id in `label`
(`getsentry/toolkit#1898`) and the topic in `title`. Brief input copied
only `label`, and Brief search text is built from link labels. So an
issue was findable by number, never by what it tracks. Object resources
now use `label · title`, the same format as code-change links. Both the
SQL input path and snapshot replay use it.
- **Link cap.** Stored links stop at 40, with code changes first. The
Conversation that filed #1898 opened many PRs, so its issue links didn't
fit. The search text now indexes every linked object, and the stored
list keeps its cap. Raising the cap instead would make every stored
Brief and every MCP `get_conversation` response bigger, only to make
links searchable.

Existing Briefs pick this up when they are next generated.

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:local%3Aweb%3A87622ce3671938950bc6e630 -->

--

[View Session in
Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A87622ce3671938950bc6e630/?project=4510944073809921)

<!-- junior-session-footer:end -->

---------

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <[email protected]>

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 10f0958f Deployed Sep 23, 2026 by vercel[bot]
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