Repository navigation
Keep partial Slack preambles out of new notifications - #150671
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 36536328fe
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| ? { | ||
| text: previewText, | ||
| blocks: progressCard.resolvePresentation(snapshot, "working"), | ||
| allowNewMessage: typeof latestLine !== "object" || latestLine.complete !== false, |
There was a problem hiding this comment.
Track completion when commentary is disabled
When compact progress is used with progress.commentary unset or false, preambles are stored in snapshot.statusHeadline rather than snapshot.lines, so latestLine is undefined and this expression always sets allowNewMessage: true. In the human-reply/throttled-write race this commit targets, the queued partial can therefore still create a replacement Slack notification; carry preamble completion independently of commentary lines and cover the non-commentary configuration.
Useful? React with 👍 / 👎.
Slack freezes a notification’s text when the message is first posted. We already wait for a complete first preamble, but a human reply can rotate the preview after a partial update passes that check and before its throttled write. That lets a fragment such as “the” become a new notification.
Carry preamble completion through the compositor and check it again when the transport is about to create a message. Partial text can still edit an existing preview; a replacement preview waits for complete text. Completion with unchanged text still reaches the transport, and the separate final reply and preview cleanup remain intact. Nearby comments and regression cases preserve this behavior without changing dependencies or channel settings.