Skip to content

fix(slack): map legacy streaming=false to off#26020

Merged
Takhoffman merged 3 commits intoopenclaw:mainfrom
chilu18:fix/slack-streaming-false-off-25990
Mar 1, 2026
Merged

fix(slack): map legacy streaming=false to off#26020
Takhoffman merged 3 commits intoopenclaw:mainfrom
chilu18:fix/slack-streaming-false-off-25990

Conversation

@chilu18
Copy link
Contributor

@chilu18 chilu18 commented Feb 25, 2026

Summary

  • map legacy channels.slack.streaming booleans to unified streaming mode (false -> off, true -> partial)
  • keep nativeStreaming migration behavior unchanged
  • add regression coverage for Slack streaming normalization and config validation

Testing

  • corepack pnpm vitest --run src/slack/stream-mode.test.ts src/config/config.legacy-config-detection.rejects-routing-allowfrom.test.ts src/commands/doctor-legacy-config.test.ts
  • corepack pnpm vitest --run src/commands/doctor-legacy-config.migrations.test.ts

Closes #25990

Greptile Summary

Fixed legacy Slack streaming boolean mapping to properly convert false"off" instead of always defaulting to "partial", bringing it in line with Discord and Telegram channel behavior.

  • Updated resolveSlackStreamingMode in src/config/discord-preview-streaming.ts:125-126 to map boolean values correctly
  • Added regression test coverage in src/slack/stream-mode.test.ts for both true and false cases
  • Added migration test in src/commands/doctor-legacy-config.test.ts to verify streaming: false maps to both streaming: "off" and nativeStreaming: false
  • Updated existing test expectation in src/config/config.legacy-config-detection.rejects-routing-allowfrom.test.ts:600

Confidence Score: 5/5

  • This PR is safe to merge with no risk
  • The changes are minimal, well-tested, and fix a clear logical bug. The fix brings Slack boolean mapping in line with Discord and Telegram. All affected code paths have corresponding test coverage, and the migration logic properly handles backward compatibility.
  • No files require special attention

Last reviewed commit: 475962e

@aisle-research-bot
Copy link

aisle-research-bot bot commented Mar 1, 2026

🔒 Aisle Security Analysis

✅ We scanned this PR and did not find any security vulnerabilities.

Aisle supplements but does not replace security review.


Analyzed PR: #26020 at commit 8b1532e

@Takhoffman Takhoffman force-pushed the fix/slack-streaming-false-off-25990 branch from 8b1532e to f8b1e2f Compare March 1, 2026 16:21
@Takhoffman Takhoffman merged commit dfbdab5 into openclaw:main Mar 1, 2026
@Takhoffman
Copy link
Contributor

PR #26020 - fix(slack): map legacy streaming=false to off (#26020)

Merged via squash.

  • Merge commit: dfbdab5
  • Verified: pnpm build, pnpm check, pnpm test:macmini
  • Changes made:
    M\tCHANGELOG.md
    M\tsrc/commands/doctor-legacy-config.test.ts
  • Why these changes were made:
    Added the required changelog entry and fixed a blocking test helper reference () so the canonical streaming=false behavior fix passes strict gates on latest main.
  • Changelog: CHANGELOG.md updated=true required=true opt_out=false

Thanks @chilu18!

@Takhoffman
Copy link
Contributor

Correction on merge summary details:

  • Changes made: CHANGELOG.md, src/commands/doctor-legacy-config.test.ts
  • Why: add required changelog entry and fix the blocking test helper reference (normalizeCompatibilityConfigValues) so this canonical streaming=false fix passes strict gates on latest main.

@aisle-research-bot
Copy link

aisle-research-bot bot commented Mar 1, 2026

🔒 Aisle Security Analysis

✅ We scanned this PR and did not find any security vulnerabilities.

Aisle supplements but does not replace security review.


Analyzed PR: #26020 at commit f8b1e2f

zooqueen added a commit to hanzoai/bot that referenced this pull request Mar 1, 2026
ansh pushed a commit to vibecode/openclaw that referenced this pull request Mar 2, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
steipete pushed a commit to Sid-Qin/openclaw that referenced this pull request Mar 2, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
safzanpirani pushed a commit to safzanpirani/clawdbot that referenced this pull request Mar 2, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
steipete pushed a commit to Sid-Qin/openclaw that referenced this pull request Mar 2, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
amitmiran137 pushed a commit to amitmiran137/openclaw that referenced this pull request Mar 2, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
robertchang-ga pushed a commit to robertchang-ga/openclaw that referenced this pull request Mar 2, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
hanqizheng pushed a commit to hanqizheng/openclaw that referenced this pull request Mar 2, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
execute008 pushed a commit to execute008/openclaw that referenced this pull request Mar 2, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
dorgonman pushed a commit to kanohorizonia/openclaw that referenced this pull request Mar 3, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
sachinkundu pushed a commit to sachinkundu/openclaw that referenced this pull request Mar 6, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
zooqueen pushed a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
…chilu18

Verified:
- pnpm build
- pnpm check
- pnpm test:macmini

Co-authored-by: chilu18 <7957943+chilu18@users.noreply.github.com>
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com>
zooqueen added a commit to hanzoai/bot that referenced this pull request Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: slack Channel integration: slack commands Command implementations size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Slack streaming: false (boolean) resolves to "partial" instead of "off"

2 participants