openclaw/docs
Tyler Yust 9ef24fd400
fix: flush block streaming on paragraph boundaries for chunkMode=newline (#7014)
* feat: Implement paragraph boundary flushing in block streaming

- Added `flushOnParagraph` option to `BlockReplyChunking` for immediate flushing on paragraph breaks.
- Updated `EmbeddedBlockChunker` to handle paragraph boundaries during chunking.
- Enhanced `createBlockReplyCoalescer` to support flushing on enqueue.
- Added tests to verify behavior of flushing with and without `flushOnEnqueue` set.
- Updated relevant types and interfaces to include `flushOnParagraph` and `flushOnEnqueue` options.

* fix: Improve streaming behavior and enhance block chunking logic

- Resolved issue with stuck typing indicator after streamed BlueBubbles replies.
- Refactored `EmbeddedBlockChunker` to streamline fence-split handling and ensure maxChars fallback for newline chunking.
- Added tests to validate new chunking behavior, including handling of paragraph breaks and fence scenarios.
- Updated changelog to reflect these changes.

* test: Add test for clamping long paragraphs in EmbeddedBlockChunker

- Introduced a new test case to verify that long paragraphs are correctly clamped to maxChars when flushOnParagraph is enabled.
- Updated logic in EmbeddedBlockChunker to handle cases where the next paragraph break exceeds maxChars, ensuring proper chunking behavior.

* refactor: streamline logging and improve error handling in message processing

- Removed verbose logging statements from the `processMessage` function to reduce clutter.
- Enhanced error handling by using `runtime.error` for typing restart failures.
- Updated the `applySystemPromptOverrideToSession` function to accept a string directly instead of a function, simplifying the prompt application process.
- Adjusted the `runEmbeddedAttempt` function to directly use the system prompt override without invoking it as a function.
2026-02-02 01:22:41 -08:00
..
.i18n fix: satisfy lint curly rule (#6310) 2026-02-01 20:04:53 +05:30
_layouts refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
assets Add files via upload 2026-01-29 23:37:32 -05:00
automation Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
channels fix: flush block streaming on paragraph boundaries for chunkMode=newline (#7014) 2026-02-02 01:22:41 -08:00
cli Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
concepts Docs: fix Moonshot sync markers (#6789) 2026-02-02 03:38:14 +01:00
debug Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
diagnostics Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
experiments Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
gateway fix: secure chrome extension relay cdp 2026-02-01 02:25:14 -08:00
help fix(docs): use canonical openclaw.ai domain instead of openclaw.bot 2026-01-31 20:34:51 -05:00
hooks Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
images docs: add group flow diagram 2026-01-10 20:05:22 +01:00
install docs(install): add pnpm approve-builds step for global installs (#5663) 2026-02-01 09:36:19 -05:00
nodes fix: format issues and lint error in oauth.ts 2026-02-02 01:59:42 +01:00
platforms chore: bump to 2026.2.1 2026-02-02 08:51:54 +00:00
plugins Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
providers Docs: fix Moonshot sync markers (#6789) 2026-02-02 03:38:14 +01:00
refactor Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
reference chore: Add `pnpm check` for fast repo checks. 2026-02-02 11:16:13 +09:00
security chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
start chore: oxfmt fixes 2026-02-01 20:34:42 +00:00
tools fix: harden host exec env validation (#4896) (thanks @HassanFleyah) 2026-02-01 15:37:19 -08:00
web chore: oxfmt fixes 2026-02-01 20:34:42 +00:00
zh-CN Docs: add zh-CN titles 2026-02-01 18:21:15 +00:00
CNAME refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
_config.yml refactor: rename to openclaw 2026-01-30 03:16:21 +01:00
bedrock.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
brave-search.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
broadcast-groups.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
date-time.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
debugging.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
docs.json chore: oxfmt fixes 2026-02-01 20:34:42 +00:00
environment.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
hooks.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
index.md fix(docs): update Twitter URLs to X for consistency 2026-01-31 20:33:19 -05:00
logging.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
multi-agent-sandbox-tools.md chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
network.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
northflank.mdx chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
perplexity.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
pi-dev.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
pi.md fix: align pi-coding-agent typings and docs 2026-02-01 16:08:01 -08:00
plugin.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
prose.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
railway.mdx chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
render.mdx chore: Run `pnpm format:fix`. 2026-01-31 21:13:13 +09:00
scripts.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
testing.md chore: Add `pnpm check` for fast repo checks. 2026-02-02 11:16:13 +09:00
token-use.md docs: document cacheRetention parameter (#6270) 2026-02-01 09:16:37 -05:00
tts.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
tui.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
vps.md Docs: add nav titles across docs (#5689) 2026-01-31 15:04:03 -06:00
whatsapp-openclaw.jpg refactor: rename to openclaw 2026-01-30 03:16:21 +01:00