Repository navigation
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 6, 2026, 2:32 AM ET / 06:32 UTC. Summary PR surface: Source +5, Tests +44. Total +49 across 3 files. Reproducibility: yes. source inspection gives a high-confidence reproduction path: current main reads the session-memory hook config but never forwards Review metrics: 1 noteworthy metric.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review findings
Review detailsBest possible solution: Resolve the hook model through OpenClaw's config/alias-aware model-selection path, document the new session-memory Do we have a high-confidence way to reproduce the issue? Yes, source inspection gives a high-confidence reproduction path: current main reads the session-memory hook config but never forwards Is this the best way to solve the issue? No: forwarding the hook model is the right surface, but Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model gpt-5.5, reasoning high; reviewed against c72c82726f20. Label changesLabel justifications:
Evidence reviewedPR surface: Source +5, Tests +44. Total +49 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
4b22d15 to
f4dd678
Compare
f4dd678 to
b221de1
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
d36c0eb to
9ad1d94
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
88c63c2 to
c047d2a
Compare
…eneration The session-memory hook's llmSlug feature always used the agent's default model, ignoring the hook-level model config. Now the hook-level model is passed through to generateSlugViaLLM and used when provided. Fixes openclaw#89551 Co-Authored-By: Claude Opus 4.8 <[email protected]>
Use splitModelRef to properly parse provider-qualified model strings (e.g. 'anthropic/claude-sonnet-4-6') instead of treating the entire string as a model-only ref. This ensures the slug generator uses the correct provider/auth path for hook-level model overrides. Add regression tests for provider-qualified override, model-only ref, and default fallback behavior. Fixes openclaw#89551 Co-Authored-By: Claude Opus 4.8 <[email protected]>
c047d2a to
eed1d2a
Compare
Add typeof check for hookConfig.model to ensure it's a string before passing to generateSlugViaLLM. This fixes the TypeScript type error where unknown was not assignable to string | undefined. Co-Authored-By: Claude Opus 4.8 <[email protected]>
|
Closing: insufficient real behavior proof and high merge-risk (compatibility + auth-provider). The hook-level model override area requires deeper integration testing that this PR does not cover. |
fix(hooks): honor hook-level model override for session-memory slug generation
Summary
Problem: The session-memory hook's
llmSlugfeature always used the agent's default model (viaresolveDefaultModelForAgent), ignoring the hook-levelmodelconfig. Users who sethooks.internal.entries.session-memory.modelto a specific model found that the slug generator still used the default model.Fix: Add an optional
modelparameter togenerateSlugViaLLM. When provided, usesplitModelRefto properly parse provider-qualified model strings (e.g.anthropic/claude-sonnet-4-6) instead of treating the entire string as a model-only ref. PasshookConfig?.modelfrom the session-memory handler.Out of scope: No changes to model resolution logic, hook execution, or other hook types.
Linked context
Closes #89551
Real behavior proof
modelconfig is ignored for LLM slug generation, always using the agent's default modelsplitModelRefvianode --import tsxto verify provider-qualified model parsing, and ran regression tests via vitestTests and validation
src/hooks/llm-slug-generator.test.ts: 3 new regression tests for provider-qualified override, model-only ref, and default fallbackRisk checklist
Current review state