You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The "explicit" session type (used for portal/webchat and named session bindings) is silently dropped. Users who add "explicit" to allowedChatTypes in their config see no error, but active memory never runs in those sessions.
Expected
Either:
"explicit" is a supported value for allowedChatTypes and active memory fires in explicit sessions, OR
An error/warning is surfaced when an unrecognized chat type is configured
Suggestion
Extend the filter to include "explicit", or replace the whitelist with a more permissive validation that warns on unknown values rather than silently discarding them. Users with webchat/portal sessions need active memory too.
Additional note: the openclaw.plugin.json schema also enforces the same enum whitelist, so even after patching index.js the gateway throws a config validation error:
ERROR active-memory: invalid config: allowedChatTypes.3: must be equal to one of the allowed values (allowed: "direct", "group", "channel")
Both index.js (runtime filter) and openclaw.plugin.json (schema validation) need to be updated together.
Found another layer to this bug. resolveChatType() in index.js only pattern-matches known session key segments (:group:, :channel:, :direct:, :dm:) but has no case for :explicit:. Portal sessions (agent:main:explicit:portal-...) fall through and return undefined, so isAllowedChatType always returns false regardless of what's in allowedChatTypes.
Three places need updating together:
normalizePluginConfig filter — add "explicit" to allowed values
openclaw.plugin.json schema enum — add "explicit"
resolveChatType() — add if (sessionKey.includes(':explicit:')) return 'explicit'
Closing this as duplicate or superseded after Codex automated review.
#65775 is still reproducible in current main, but the remaining work is already tracked by the dedicated open PR #66285. Current active-memory code still excludes explicit from the config type/normalizer, manifest enum, and resolveChatType() classifier; PR #66285 directly targets those same three gaps and says it closes this issue with schema/runtime/test coverage.
Best possible solution:
Close #65775 as superseded by the dedicated fix PR #66285, and use that PR as the canonical place to review and land the active-memory explicit chat type support. The best product/code outcome is to merge a focused fix that updates the plugin TypeScript types, config normalizer, manifest schema enum, resolveChatType() handling, and regression tests together.
What I checked:
Current runtime config still excludes explicit:ActiveRecallPluginConfig.allowedChatTypes and ResolvedActiveRecallPluginConfig.allowedChatTypes are typed only as direct | group | channel; normalizePluginConfig filters values to the same three strings, so explicit is still dropped on current main. (extensions/active-memory/index.ts:68, e23d17da79dc)
Current manifest schema still rejects explicit: The active-memory manifest schema enum for allowedChatTypes contains only direct, group, and channel, matching the issue's reported validation failure. (extensions/active-memory/openclaw.plugin.json:20, e23d17da79dc)
Current session classifier still has no explicit branch:resolveChatType() recognizes :group:, :channel:, :direct:, and :dm: session keys, plus webchat/direct fallbacks, but has no :explicit: case; isAllowedChatType() returns false when no chat type is resolved. (extensions/active-memory/index.ts:876, e23d17da79dc)
Docs still document only the existing three chat types: The Active Memory docs list allowedChatTypes examples for direct, group, and channel; there is no shipped docs evidence that explicit support has landed on main. Public docs: docs/concepts/active-memory.md. (docs/concepts/active-memory.md:231, e23d17da79dc)
So I’m closing this here and keeping the remaining discussion on the canonical linked item.
Codex Review notes: model gpt-5.5, reasoning high; reviewed against e23d17da79dc.
Activity
dclosefuturex commentedon Apr 13, 2026
Additional note: the
openclaw.plugin.jsonschema also enforces the same enum whitelist, so even after patchingindex.jsthe gateway throws a config validation error:Both
index.js(runtime filter) andopenclaw.plugin.json(schema validation) need to be updated together.dclosefuturex commentedon Apr 13, 2026
Found another layer to this bug.
resolveChatType()inindex.jsonly pattern-matches known session key segments (:group:,:channel:,:direct:,:dm:) but has no case for:explicit:. Portal sessions (agent:main:explicit:portal-...) fall through and returnundefined, soisAllowedChatTypealways returnsfalseregardless of what's inallowedChatTypes.Three places need updating together:
normalizePluginConfigfilter — add"explicit"to allowed valuesopenclaw.plugin.jsonschema enum — add"explicit"resolveChatType()— addif (sessionKey.includes(':explicit:')) return 'explicit'Without #3, #1 and #2 have no effect.
clawsweeper commentedon Apr 26, 2026
Closing this as duplicate or superseded after Codex automated review.
#65775 is still reproducible in current main, but the remaining work is already tracked by the dedicated open PR #66285. Current active-memory code still excludes
explicitfrom the config type/normalizer, manifest enum, andresolveChatType()classifier; PR #66285 directly targets those same three gaps and says it closes this issue with schema/runtime/test coverage.Best possible solution:
Close #65775 as superseded by the dedicated fix PR #66285, and use that PR as the canonical place to review and land the active-memory
explicitchat type support. The best product/code outcome is to merge a focused fix that updates the plugin TypeScript types, config normalizer, manifest schema enum,resolveChatType()handling, and regression tests together.What I checked:
ActiveRecallPluginConfig.allowedChatTypesandResolvedActiveRecallPluginConfig.allowedChatTypesare typed only asdirect | group | channel;normalizePluginConfigfilters values to the same three strings, soexplicitis still dropped on current main. (extensions/active-memory/index.ts:68, e23d17da79dc)allowedChatTypescontains onlydirect,group, andchannel, matching the issue's reported validation failure. (extensions/active-memory/openclaw.plugin.json:20, e23d17da79dc)resolveChatType()recognizes:group:,:channel:,:direct:, and:dm:session keys, plus webchat/direct fallbacks, but has no:explicit:case;isAllowedChatType()returns false when no chat type is resolved. (extensions/active-memory/index.ts:876, e23d17da79dc)fix: support explicit active-memory chat types, whose body says it closes active-memory: allowedChatTypes silently strips "explicit" sessions #65775 and covers the schema enum, runtime normalization,agent:...:explicit:...gating, and regression tests. (88aff48335d6)allowedChatTypesexamples fordirect,group, andchannel; there is no shipped docs evidence thatexplicitsupport has landed on main. Public docs:docs/concepts/active-memory.md. (docs/concepts/active-memory.md:231, e23d17da79dc)So I’m closing this here and keeping the remaining discussion on the canonical linked item.
Codex Review notes: model gpt-5.5, reasoning high; reviewed against e23d17da79dc.