Release AdClaw v1.0.27#86
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4003225866
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| for message in copy.deepcopy(list(messages or [])): | ||
| add_result = add(message) | ||
| if inspect.isawaitable(add_result): |
There was a problem hiding this comment.
Clear target memory before append-copying fallback state
In the get_memory/add fallback path, this helper appends every source message into the target without clearing existing entries first. During fallback success we call _copy_agent_memory(agent, fb_agent) and then _copy_agent_memory(fb_agent, agent), so any memory backend that lacks state_dict/load_state_dict will duplicate the whole conversation in agent on each fallback turn, inflating persisted session history and replaying stale messages in later prompts.
Useful? React with 👍 / 👎.
Summary
Validation
env PYTHONPATH=src python - <<'PY' ...printed1.0.27git diff --checkRelease note
After merge, create GitHub Release
v1.0.27to trigger PyPI/Docker publishing.