Skip to content

Keep partial Slack preambles out of new notifications - #150671

Merged
pash-openai merged 1 commit into
mainfrom
pash/slack-preview-first-fragment
Sep 17, 2026
Merged

pash-openai merged 1 commit into
mainfrom
pash/slack-preview-first-fragment

Conversation

@pash-openai

Copy link
Copy Markdown
Contributor

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.

@clawsweeper

clawsweeper Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added channel: slack Channel integration: slack size: S maintainer Maintainer-authored PR labels Sep 17, 2026
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 17, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-17T06:16:53.309115Z 3653632 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@pash-openai
pash-openai merged commit c498796 into main Sep 17, 2026
207 of 208 checks passed
@pash-openai
pash-openai deleted the pash/slack-preview-first-fragment branch September 17, 2026 06:14

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge 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 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack maintainer Maintainer-authored PR size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant