openclaw/src/plugins
Marc Gratch 75969ed5c4 fix(plugins): pass session context to before_compaction hook in subscribe handler
The handleAutoCompactionStart handler was calling runBeforeCompaction with
only messageCount and an empty hook context. Plugins receiving this hook
could not identify the session or snapshot the transcript during
auto-compaction.

The other call site in compact.ts already passes the full payload
(messages, sessionFile, sessionKey). This aligns the subscribe handler
to do the same using ctx.params.session and ctx.params.sessionKey.

(cherry picked from commit 318a19d1a1)
2026-02-24 04:33:50 +00:00
..
runtime test(core): use lightweight clears in runtime and telegram setup 2026-02-22 08:09:14 +00:00
bundled-dir.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
cli.test.ts chore: Enable `typescript/no-explicit-any` rule. 2026-02-02 16:18:09 +09:00
cli.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
commands.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
config-schema.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
config-state.test.ts fix: sync built-in channel enablement across config paths 2026-02-23 19:40:42 +00:00
config-state.ts fix: sync built-in channel enablement across config paths 2026-02-23 19:40:42 +00:00
discovery.test.ts fix(plugins): ignore archived extension dirs during discovery 2026-02-22 19:23:34 +01:00
discovery.ts fix(plugins): ignore archived extension dirs during discovery 2026-02-22 19:23:34 +01:00
enable.test.ts fix: sync built-in channel enablement across config paths 2026-02-23 19:40:42 +00:00
enable.ts fix: sync built-in channel enablement across config paths 2026-02-23 19:40:42 +00:00
hook-runner-global.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
hooks.before-agent-start.test.ts refactor(agents): dedupe plugin hooks and test helpers 2026-02-22 07:44:57 +00:00
hooks.model-override-wiring.test.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
hooks.phase-hooks.test.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
hooks.test-helpers.ts refactor(test): share plugin hook registry helper 2026-02-15 14:44:15 +00:00
hooks.ts refactor(channels): dedupe hook and monitor execution paths 2026-02-22 21:19:09 +00:00
http-path.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
http-registry.test.ts fix: replace stale plugin webhook routes on re-registration 2026-02-24 04:01:41 +00:00
http-registry.ts fix: replace stale plugin webhook routes on re-registration 2026-02-24 04:01:41 +00:00
install.test.ts fix: normalize manifest plugin ids during install 2026-02-24 03:56:34 +00:00
install.ts fix: normalize manifest plugin ids during install 2026-02-24 03:56:34 +00:00
installs.test.ts refactor(channels): dedupe hook and monitor execution paths 2026-02-22 21:19:09 +00:00
installs.ts refactor(channels): dedupe hook and monitor execution paths 2026-02-22 21:19:09 +00:00
loader.test.ts refactor: deduplicate shared helpers and test setup 2026-02-23 20:40:44 +00:00
loader.ts fix: sync built-in channel enablement across config paths 2026-02-23 19:40:42 +00:00
logger.test.ts refactor(plugins): reuse plugin loader logger adapter 2026-02-18 23:48:32 +00:00
logger.ts refactor(plugins): reuse plugin loader logger adapter 2026-02-18 23:48:32 +00:00
manifest-registry.test.ts test: dedupe registry/session tests and add install source coverage 2026-02-18 05:05:04 +00:00
manifest-registry.ts refactor(plugins): extract safety and provenance helpers 2026-02-19 15:24:14 +01:00
manifest.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
path-safety.ts refactor(plugins): extract safety and provenance helpers 2026-02-19 15:24:14 +01:00
providers.ts refactor(plugins): reuse plugin loader logger adapter 2026-02-18 23:48:32 +00:00
registry.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
runtime.ts refactor(plugins): reuse createEmptyPluginRegistry 2026-02-15 19:05:00 +00:00
schema-validator.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
services.test.ts refactor(plugins): reuse plugin service runtime context 2026-02-18 17:23:44 +00:00
services.ts refactor(plugins): reuse plugin service runtime context 2026-02-18 17:23:44 +00:00
slots.test.ts refactor(agents): dedupe plugin hooks and test helpers 2026-02-22 07:44:57 +00:00
slots.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
source-display.test.ts fix(cli): improve plugins list source display 2026-02-09 13:05:48 -06:00
source-display.ts style: align formatting with oxfmt 0.33 2026-02-18 01:34:35 +00:00
status.ts refactor(plugins): reuse plugin loader logger adapter 2026-02-18 23:48:32 +00:00
toggle-config.ts fix: sync built-in channel enablement across config paths 2026-02-23 19:40:42 +00:00
tools.optional.test.ts refactor: deduplicate shared helpers and test setup 2026-02-23 20:40:44 +00:00
tools.ts Gateway: suppress tools.catalog plugin conflict diagnostics 2026-02-23 00:05:57 -06:00
types.ts Config UI: tag filters and complete schema help/labels coverage (#23796) 2026-02-22 15:17:07 -06:00
uninstall.test.ts refactor(test): dedupe repeated fixture setup helpers 2026-02-22 20:04:51 +00:00
uninstall.ts CLI: add plugins uninstall command (#5985) (openclaw#6141) thanks @JustasMonkev 2026-02-12 20:11:26 -06:00
update.ts refactor(channels): dedupe hook and monitor execution paths 2026-02-22 21:19:09 +00:00
voice-call.plugin.test.ts test: remove duplicated scenario scaffolding across runtime tests 2026-02-18 04:04:14 +00:00
wired-hooks-after-tool-call.test.ts test: move hooks and plugin local suites out of e2e 2026-02-22 11:05:53 +00:00
wired-hooks-compaction.test.ts fix(plugins): pass session context to before_compaction hook in subscribe handler 2026-02-24 04:33:50 +00:00
wired-hooks-gateway.test.ts refactor(test): share plugin hook registry helper 2026-02-15 14:44:15 +00:00
wired-hooks-llm.test.ts refactor(agent): dedupe harness and command workflows 2026-02-16 14:59:30 +00:00
wired-hooks-message.test.ts refactor(test): share plugin hook registry helper 2026-02-15 14:44:15 +00:00
wired-hooks-session.test.ts refactor(test): share plugin hook registry helper 2026-02-15 14:44:15 +00:00
wired-hooks-subagent.test.ts refactor(agents): dedupe plugin hooks and test helpers 2026-02-22 07:44:57 +00:00