Preserve session context and durable Telegram progress#84828
Conversation
|
Codex review: found issues before merge. Workflow note: Future ClawSweeper reviews update this same comment in place. How this review workflow works
Summary Reproducibility: yes. by source inspection: the PR path spreads deliveryBaseOptions into standalone progress delivery, current deliverReplies mirrors when transcriptMirror is present, and the new context helper takes the max of runtime and fallback context tokens. I did not run tests or live Telegram because this review is read-only. PR rating Rank-up moves:
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. Real behavior proof Mantis proof suggestion Risk before merge
Maintainer options:
Next step before merge Security Review findings
Review detailsBest possible solution: Keep the session-context fix narrow, make durable Telegram progress an explicit documented policy or opt-in mode, and preserve transcript hygiene plus existing progress configuration semantics before merge. Do we have a high-confidence way to reproduce the issue? Yes, by source inspection: the PR path spreads deliveryBaseOptions into standalone progress delivery, current deliverReplies mirrors when transcriptMirror is present, and the new context helper takes the max of runtime and fallback context tokens. I did not run tests or live Telegram because this review is read-only. Is this the best way to solve the issue? No. The session-context goal is valid, but the current patch is not the safest solution because it changes Telegram progress policy, transcript behavior, and context-window preservation too broadly. Label changes:
Label justifications:
Full review comments:
Overall correctness: patch is incorrect Acceptance criteria:
What I checked:
Likely related people:
Codex review notes: model gpt-5.5, reasoning high; reviewed against 8284c035a096. |
|
ClawSweeper PR egg 🔥 Warming up: real-behavior proof passed; findings, security review, or rank-up moves are still in progress. Hatch commandComment Hatchability rules:
What is this egg doing here?
|
d4b2793 to
dd6b47b
Compare
|
Closing this for now: this branch is intended as a personal fork customization for durable Telegram progress behavior rather than a proposed upstream default. Thanks. |
Summary
Test
Real behavior proof
Behavior or issue addressed: Windows/Telegram OpenClaw 2026.5.19 was shrinking an explicitly configured 1050k session back to runtime-reported 272k after a successful agent run, and Telegram progress mode hid tool/progress updates in a repeatedly edited draft message instead of leaving durable 5.3-style progress messages.
Real environment tested: Real Windows/ROG OpenClaw gateway running
OpenClaw 2026.5.19 (a185ca2)on port18889, with the real Telegram channel enabled and reportingON/OK. The Mac controller verified Windows gateway/control surfaces over the LAN/Tailscale dashboard path.Exact steps or command run after this patch: Applied the equivalent Windows dist hotfix, restarted the Windows OpenClaw Gateway, checked
/health, ran a realopenclaw agent --agent main ...command against the Windows runtime, inspectedC:\Users\Administrator\.openclaw\agents\main\sessions\sessions.json, checked recent runtime logs for schema/API errors, and exercised the real Windows Telegram bot path with a tool-progress turn.Evidence after fix: Copied live output / redacted runtime evidence from the real setup:
Observed result after fix: After the agent run, both main and Telegram direct sessions stayed aligned on the same session id with
contextTokens=1050000,verbose=full, andtoolProgressDetail=raw; the UI/status context no longer reflected the runtime-reported 272k value; Telegram progress/tool output remained durable and visible.What was not tested: Full upstream CI on every package was not run locally; the PR relies on GitHub CI for full-matrix coverage. Production deployment was not tested.