openclaw/docs
sxxtony b2dab308ae
fix(slack): include bot root message in new thread sessions (#79338) (#80409)
* fix(slack): include bot root message in new thread sessions (#79338)

When a user replies in-thread to a bot's own message in a Slack DM,
the new thread session was constructed without the parent/root message
content. The agent only saw `reply_to_id` metadata and could not
resolve what was being replied to, leading to confident-but-wrong
actions on follow-up corrections.

The thread-context resolver was filtering out every message authored
by the current bot before formatting thread history, including the
bot's own root message. For thread-replies starting a fresh session,
that left the agent without the parent context it needed.

This change retains current-bot messages in the thread history when
starting a new thread session, formats them with role=assistant under
a "Bot (this assistant)" sender label, and adds
`channels.slack.thread.includeRootMessage` (default `true`) to opt out.
Bot messages still bypass allowlist visibility filtering since the
bot's own output is not third-party content.

Fixes #79338.

* fix(slack): wire includeRootMessage into runtime config schema (#79338)

The first commit added `channels.slack.thread.includeRootMessage` to
the TypeScript type and zod schema, but the runtime AJV-style schema
generated from `extensions/slack/src/config-ui-hints.ts` rejected the
new field with `must NOT have additional properties` at gateway boot.

Adds the matching UI hint entry for `thread.includeRootMessage` and
regenerates the bundled channel config metadata so the live gateway
accepts the new field.

* Narrow Slack thread root context handling

Remove the public includeRootMessage config and keep the Slack thread fix focused on including only the current bot's root message on the first turn of a new thread session.

Preserve filtering of arbitrary current-bot Slack history while ensuring #79338 has parent/root context.

* Fix Slack thread root CI checks

---------

Co-authored-by: Bek <bek.akhmedov@gmail.com>
2026-05-11 01:09:03 -04:00
..
.generated fix(slack): include bot root message in new thread sessions (#79338) (#80409) 2026-05-11 01:09:03 -04:00
.i18n docs: document tool search 2026-05-10 03:21:50 -04:00
assets
automation fix(tasks): unify completion delivery routing 2026-05-10 17:32:55 +01:00
channels fix(telegram): unify stale reply context 2026-05-10 21:38:18 +05:30
clawhub docs: add ClawHub publishing page 2026-05-07 19:43:06 -07:00
cli fix(doctor): tolerate stale plugin deny refs 2026-05-11 05:05:30 +01:00
concepts feat(session): raise ping-pong turn ceiling 2026-05-11 04:24:19 +01:00
debug docs: typography hygiene across 6 pages (gateway/cli/debug) 2026-05-06 08:49:27 -07:00
diagnostics feat(brave): add http diagnostics flag 2026-05-02 07:49:12 +01:00
gateway feat(session): raise ping-pong turn ceiling 2026-05-11 04:24:19 +01:00
help docs(mantis): describe telegram desktop proof 2026-05-11 08:15:34 +05:30
images
install build(deps): refresh workspace dependencies 2026-05-10 14:00:08 +01:00
nodes docs(nodes): collapse duplicate Related sections in troubleshooting 2026-05-10 23:16:48 +08:00
plan Stop heartbeat tool turns from asking for HEARTBEAT_OK (#76338) 2026-05-03 13:46:26 +09:00
platforms feat: add native sqlite Kysely dialect 2026-05-07 13:07:03 +01:00
plugins fix(codex): auto-approve plugin read tools (#80513) 2026-05-10 21:13:40 -07:00
providers docs(providers/google): correct video duration set and audio support 2026-05-11 10:18:35 +08:00
refactor refactor: centralize channel ingress access 2026-05-10 00:18:36 -04:00
reference build: refresh deps and route testbox through crabbox 2026-05-11 03:41:00 +01:00
security lint: classify raw socket callsites 2026-05-08 01:18:04 +10:00
snippets/plugin-publish docs: show explicit startup activation in plugin examples 2026-04-28 03:13:20 +01:00
start docs: fix legacy agent: shape in three more pages 2026-05-11 08:26:22 +08:00
superpowers/specs docs: complete source-backed docs sweep 2026-05-02 22:37:01 +01:00
tools feat: add per-agent message cross-context policy 2026-05-11 05:00:36 +01:00
web docs: mention provider wildcard model allowlists 2026-05-10 00:50:10 -04:00
AGENTS.md docs: keep qa broker notes internal 2026-05-08 06:01:23 +01:00
auth-credential-semantics.md fix: treat aws sdk auth profiles as config metadata 2026-05-07 10:24:19 +01:00
brave-search.md docs(brave): redirect legacy search page 2026-05-02 04:42:55 +01:00
ci.md build: refresh deps and route testbox through crabbox 2026-05-11 03:41:00 +01:00
CLAUDE.md
date-time.md docs: audit and fix 4 pages (pi version bump + 3 typography/H1) 2026-05-05 21:14:55 -07:00
docs.json feat(models): start local services on demand 2026-05-10 18:21:27 +01:00
index.md feat: add native sqlite Kysely dialect 2026-05-07 13:07:03 +01:00
logging.md docs(logging): document bounded Talk log records 2026-05-06 03:02:02 -07:00
nav-tabs-underline.js
network.md docs: audit and fix 4 pages (pi version bump + 3 typography/H1) 2026-05-05 21:14:55 -07:00
perplexity.md docs: consolidate moved docs pages 2026-05-05 17:38:21 +01:00
pi-dev.md docs: full-page readability pass on 5 worst-offender pages 2026-04-26 23:57:10 -07:00
pi.md build: refresh deps and route testbox through crabbox 2026-05-11 03:41:00 +01:00
prose.md
style.css
tts.md
vps.md Docs: add VPS admin hardening note (#54685) 2026-04-29 14:36:33 -07:00
whatsapp-openclaw-ai-zh.jpg
whatsapp-openclaw.jpg