Skip to content

IRC: disable block streaming by default - #42824

Closed
yzxlr wants to merge 1 commit into
openclaw:mainfrom
yzxlr:codex/issue-42121-irc-block-streaming
Closed

yzxlr wants to merge 1 commit into
openclaw:mainfrom
yzxlr:codex/issue-42121-irc-block-streaming

Conversation

@yzxlr

@yzxlr yzxlr commented Mar 11, 2026

Copy link
Copy Markdown

Summary

  • disable IRC block streaming unless channels.irc.blockStreaming=true is explicitly set
  • keep existing per-account opt-in behavior for users who want streamed IRC replies
  • add regression coverage for the IRC block-streaming default

Root cause

IRC inherited the global block-streaming default when channels.irc.blockStreaming was unset. With some models, only the last streamed text block was emitted before the full final reply was suppressed by the block-streaming path, which matches #42121.

Testing

  • pnpm test extensions/irc/src/inbound.policy.test.ts
  • pnpm test extensions/irc/src/monitor.test.ts
  • pnpm test extensions/irc/src/send.test.ts

Closes #42121

@greptile-apps

greptile-apps Bot commented Mar 11, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a bug where IRC channels were inheriting the global block-streaming default when channels.irc.blockStreaming was unset, causing some models to suppress the full final reply (tracking issue #42121). The fix extracts the decision into a dedicated resolveIrcDisableBlockStreaming helper and changes the unset-config case from returning undefined (falling through to the global default) to returning true (always disable block streaming for IRC unless explicitly opted in).

Key changes:

  • inbound.ts: Replaces the inline typeof account.config.blockStreaming === "boolean" ? !account.config.blockStreaming : undefined ternary with resolveIrcDisableBlockStreaming(account), which returns account.config.blockStreaming !== true. This makes disableBlockStreaming always a concrete boolean rather than potentially undefined, eliminating the global-default inheritance path.
  • inbound.policy.test.ts: Adds regression tests for all three config states — unset, false, and true — confirming the expected disableBlockStreaming boolean in each case.

The change is minimal, well-scoped, and the new helper is exported through __testing so it is directly unit-tested without needing an integration harness.

Confidence Score: 5/5

  • Safe to merge — minimal, well-targeted change with full regression test coverage and no side-effects on other channels.
  • The PR is a straightforward fix with zero issues. The diff is tiny (one new 4-line helper + one call-site change), the helper logic is trivially correct (!== true), and all three distinct config states are covered by new unit tests. No shared code paths were touched; the change is IRC-scoped and cannot regress other channels.
  • No files require special attention.

Last reviewed commit: 2ea8518

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Apr 27, 2026
@clawsweeper

clawsweeper Bot commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

Thanks for the context here. I swept through the related work, and this is now duplicate or superseded.

Keep open: current main and the latest release still inherit the global block-streaming default for unset IRC config, so the useful fix is not implemented, but this external PR needs current-main rebase work, upgrade-safety proof, and real IRC or terminal behavior proof before merge.

Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

So I’m closing this here because the remaining work is already tracked in the canonical issue.

Review details

Best possible solution:

Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review.

Do we have a high-confidence way to reproduce the issue?

Yes, at source level. Current main passes disableBlockStreaming: undefined for unset IRC config, and the shared resolver then inherits agents.defaults.blockStreamingDefault.

Is this the best way to solve the issue?

Not yet. The production direction matches the documented non-Telegram opt-in rule, but the PR needs current-main test placement, upgrade-safety coverage, and real behavior proof before it is the best mergeable solution.

Security review:

Security review cleared: The diff only changes IRC reply option resolution and focused tests, with no dependency, CI, secrets, install, package, or supply-chain surface changes.

What I checked:

  • stale F-rated PR: PR was opened 2026-03-11T05:12:57Z, is older than 60 days, and the latest review rated it F.
  • proof blocker: real behavior proof is missing and proof tier is F, so this branch is not merge-ready without contributor follow-up.
  • no human follow-up: live comments and timeline hydrated by apply contain no non-automation activity after the ClawSweeper review.

Likely related people:

  • vignesh07: The first-class IRC channel support commit added the central inbound/config/type files where this reply option path lives. (role: introduced IRC channel behavior; confidence: high; commits: fa906b26add7; files: extensions/irc/src/inbound.ts, extensions/irc/src/types.ts, extensions/irc/src/config-schema.ts)
  • steipete: Recent history shows repeated maintenance and refactors touching IRC inbound and the shared reply directive path involved in block-streaming resolution. (role: recent IRC and reply-area contributor; confidence: high; commits: 030b7bb4b75f, 8d73bc77fa5d, 496a1a35bd7a; files: extensions/irc/src/inbound.ts, extensions/irc/src/inbound.behavior.test.ts, src/auto-reply/reply/get-reply-directives.ts)
  • vincentkoc: Current IRC inbound behavior coverage was added and formatted in commits tied to this handle, making them a useful routing candidate for moving the stale regression cases. (role: IRC inbound test contributor; confidence: medium; commits: 7a0781a3676c, 9a07187339ff; files: extensions/irc/src/inbound.behavior.test.ts)

Codex review notes: model gpt-5.5, reasoning high; reviewed against a705a9c911bc.

@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Apr 28, 2026
@clawsweeper clawsweeper Bot added the P2 Normal backlog priority with limited blast radius. label May 16, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label May 16, 2026
@clawsweeper clawsweeper Bot added impact:message-loss Channel message delivery can be lost, duplicated, or misrouted. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed impact:message-loss Channel message delivery can be lost, duplicated, or misrouted. labels May 17, 2026
@clawsweeper

clawsweeper Bot commented May 20, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat.

Where did the egg go?
  • The egg game starts only after the PR passes the real-behavior proof check.
  • Before that, no creature or rarity is rolled. The treat waits for real proof.
  • This is still just collectible flavor: proof affects review readiness, not creature quality.

@clawsweeper

clawsweeper Bot commented May 23, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper applied the proposed close for this PR.

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

Labels

channel: irc merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Openclaw IRC message cut off

1 participant