SudeepMalipeddi
d32298cbd8
fix: slug-generator uses effective model instead of agent-primary
...
resolveAgentModelPrimary() only checks the agent-level model config and
does not fall back to the system-wide default. When users configure a
non-Anthropic provider (e.g. Gemini, Minimax) as their global default
without setting it at the agent level, the slug-generator falls through
to DEFAULT_PROVIDER (anthropic) and fails with a missing API key error.
Switch to resolveAgentEffectiveModelPrimary() which correctly respects
the full model resolution chain including global defaults.
Fixes #25365
2026-02-24 14:27:01 +00:00
root
8d2035633b
fix(agents): include SOUL.md, IDENTITY.md, USER.md in subagent/cron bootstrap allowlist
...
Subagent and isolated cron sessions only loaded AGENTS.md and TOOLS.md,
causing subagents to lose their role personality, identity, and user
preferences. Expand MINIMAL_BOOTSTRAP_ALLOWLIST to include the three
missing identity files.
Closes #24852
(cherry picked from commit c33377150eeddb42c2a24f4a48c2d01b5cdf8d3e)
2026-02-24 04:04:35 +00:00
Bill Cropper
588ad7fb38
fix: respect agent model config in slug generator ( #24776 )
...
The slug generator was using hardcoded DEFAULT_PROVIDER and DEFAULT_MODEL
instead of resolving from agent config. This caused it to fall back to
anthropic/claude-opus-4-6 even when a cloud model was configured.
Now uses resolveAgentModelPrimary() to get the configured model, with
fallback to defaults if not configured.
Fixes issue where session memory filenames would fail to generate
when using cloud models that require special backends.
2026-02-24 03:22:48 +00:00
Peter Steinberger
8af19ddc5b
refactor: extract shared dedupe helpers for runtime paths
2026-02-23 05:43:43 +00:00
mudrii
3645420a33
perf: skip cache-busting for bundled hooks, use mtime for workspace hooks (openclaw#16960) thanks @mudrii
...
Verified:
- pnpm build
- pnpm check
- pnpm test:macmini
Co-authored-by: mudrii <220262+mudrii@users.noreply.github.com >
Co-authored-by: Tak Hoffman <781889+Takhoffman@users.noreply.github.com >
2026-02-22 16:14:51 -06:00
Peter Steinberger
12635de1c7
test: cover shared installer flow helpers
2026-02-22 18:37:25 +00:00
Peter Steinberger
07888bee34
refactor: share install flows across hooks and plugins
2026-02-22 18:37:25 +00:00
Peter Steinberger
3286791316
refactor(agents): dedupe config and truncation guards
2026-02-22 17:54:51 +00:00
Peter Steinberger
d116bcfb14
refactor(runtime): consolidate followup, gateway, and provider dedupe paths
2026-02-22 14:08:51 +00:00
Peter Steinberger
ec0081ce9a
test: move hooks and plugin local suites out of e2e
2026-02-22 11:05:53 +00:00
Peter Steinberger
ccc00d874c
test(core): reduce mock reset overhead in targeted suites
2026-02-22 08:40:29 +00:00
Peter Steinberger
8a0a28763e
test(core): reduce mock reset overhead across unit and e2e specs
2026-02-22 08:22:58 +00:00
Peter Steinberger
e16e7be85b
test(core): trim redundant mock resets in heartbeat suites
2026-02-22 08:01:16 +00:00
Peter Steinberger
9f97555b5e
refactor(security): unify hook rate-limit and hook module loading
2026-02-22 08:57:01 +01:00
Peter Steinberger
121d027229
chore: remove dead plugin hook loader
2026-02-22 08:45:24 +01:00
Peter Steinberger
185fba1d22
refactor(agents): dedupe plugin hooks and test helpers
2026-02-22 07:44:57 +00:00
Peter Steinberger
b109fa53ea
refactor(core): dedupe gateway runtime and config tests
2026-02-22 07:44:57 +00:00
Peter Steinberger
9ec440d1f4
test(hooks): dedupe unsupported npm spec assertion
2026-02-22 07:44:57 +00:00
Peter Steinberger
076c5ebaef
test(hooks): use lightweight clears for gmail watcher log spies
2026-02-22 07:35:55 +00:00
Peter Steinberger
389630fc64
test: table-drive internal hook type-guard cases
2026-02-21 23:02:44 +00:00
Brian Mendonca
1357e02cff
test: stabilize internal hook error assertions
2026-02-21 23:57:34 +01:00
Gustavo Madeira Santana
2f46308d5a
refactor(logging): migrate non-agent internal console calls to subsystem logger ( #22964 )
...
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: b4a5b12422c7a90054dbb7473dd6c4b3e9ca8df5
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com >
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com >
Reviewed-by: @gumadeiras
2026-02-21 17:44:00 -05:00
Peter Steinberger
cc2ff68947
test: optimize gateway infra memory and security coverage
2026-02-21 21:44:50 +00:00
Peter Steinberger
c3e1c82871
refactor(test): snapshot bundled hooks env in loader tests
2026-02-21 19:13:47 +00:00
Peter Steinberger
807968e4df
refactor(test): replace manual PATH restore with env helpers
2026-02-21 19:13:47 +00:00
Vignesh Natarajan
d583399c92
Hooks: persist session memory on /reset
2026-02-20 20:19:29 -08:00
Peter Steinberger
dcd592a601
refactor: eliminate jscpd clones and boost tests
2026-02-19 15:08:54 +00:00
Peter Steinberger
edf92f1cb0
refactor: share npm integrity drift handling
2026-02-19 15:08:14 +00:00
Peter Steinberger
81b19aaa1a
fix(security): enforce plugin and hook path containment
2026-02-19 15:37:29 +01:00
Peter Steinberger
5dc50b8a3f
fix(security): harden npm plugin and hook install integrity flow
2026-02-19 15:11:25 +01:00
Peter Steinberger
733e385843
test(hooks): dedupe gmail runtime path assertions
2026-02-19 08:25:12 +00:00
Peter Steinberger
d5c58ce8d9
test: normalize boot-md mock workspace paths for cross-platform
2026-02-19 06:43:45 +00:00
Gustavo Madeira Santana
6355bae1f9
test: make boot-md startup integration workspace assertion cross-platform
2026-02-19 01:14:06 -05:00
Marcus Castro
48e6b4fca3
fix: run BOOT.md for each configured agent at startup ( #20569 )
...
Merged via /review-pr -> /prepare-pr -> /merge-pr.
Prepared head SHA: 9098a4cc64487070464371022181f64633f142c2
Co-authored-by: mcaxtr <7562095+mcaxtr@users.noreply.github.com >
Co-authored-by: gumadeiras <5599352+gumadeiras@users.noreply.github.com >
Reviewed-by: @gumadeiras
2026-02-19 00:58:56 -05:00
Peter Steinberger
ae2e6896da
refactor(hooks): dedupe command result formatting
2026-02-19 00:20:10 +00:00
Peter Steinberger
b2c2737452
refactor(shared): reuse runtime entry requirement evaluator
2026-02-19 00:17:24 +00:00
Peter Steinberger
6187e2afbd
refactor(gateway): share gmail watcher startup flow
2026-02-18 17:48:02 +00:00
Peter Steinberger
f05395ae00
refactor(test): share internal hook and npm pack assertions
2026-02-18 17:01:22 +00:00
Peter Steinberger
36996194cd
perf(test): remove timer waits in hooks and discord monitor tests
2026-02-18 16:45:48 +00:00
Peter Steinberger
1e2b367e1e
test(hooks): dedupe session-memory handler test setup
2026-02-18 12:28:30 +00:00
Peter Steinberger
8a9fddedc9
refactor: extract shared install and embedding utilities
2026-02-18 04:49:22 +00:00
Peter Steinberger
262472ba20
test: remove duplicated scenario scaffolding across runtime tests
2026-02-18 04:04:14 +00:00
Peter Steinberger
b8b43175c5
style: align formatting with oxfmt 0.33
2026-02-18 01:34:35 +00:00
Peter Steinberger
31f9be126c
style: run oxfmt and fix gate failures
2026-02-18 01:29:02 +00:00
Peter Steinberger
f07bb8e8fc
fix(hooks): backport internal message hook bridge with safe delivery semantics
2026-02-18 00:35:41 +01:00
cpojer
238718c1d8
chore: Fix types in tests 37/N.
2026-02-17 15:50:07 +09:00
cpojer
d0cb8c19b2
chore: wtf.
2026-02-17 13:36:48 +09:00
Sebastian
ed11e93cf2
chore(format)
2026-02-16 23:20:16 -05:00
cpojer
01ea808876
chore: Format files.
2026-02-17 10:57:31 +09:00
Sebastian
3fff266d52
fix(session-memory): harden reset transcript recovery
2026-02-16 20:39:06 -05:00