Repository navigation
Fix dashboard history projection and approval followups - #92312
Hidetsugu55 wants to merge 10 commits into
Conversation
The sandbox default allowlist omitted "message", which prevented agents in workspace-write mode from sending visible replies without an explicit alsoAllow override in openclaw.json. This was the root cause of the Discord channel message tool injection failure (Cycle 2 diagnosis). With this change, the runtime openclaw.json workaround (tools.sandbox.tools.alsoAllow: ["message"]) can be safely withdrawn.
…resolve
Four independent bug classes fixed in one sweep:
A. History resolution: sessions_history(current) returned empty when
transcripts lived in *.jsonl.reset.* siblings. Added fallback through
reset/deleted files and usageFamilySessionIds backfill.
B. Discord visible reply: messageProvider/channel misalignment caused
message tool to drop from sandbox allowlist. Strengthened
shouldForceMessageTool() and prioritized delivery channel over
webchat/internal provider label.
C. Build/dist integrity: pre-build cleanup could delete hashed chunks
that stable aliases still referenced, causing ERR_MODULE_NOT_FOUND
at runtime. Stopped aggressive root chunk pruning.
D. Current session resolve: sessions.resolve("current") failed when
gateway had no connection-to-session reverse lookup. Added
subscription registry for connId -> subscribed session keys.
Implementation by OpenClaw self-check sweep; committed by Claude Code.
- Export isDirectSessionKey from session-delivery.ts (was private) - Update import path in tools-effective-inventory.ts - Add missing path import in session-utils.fs.ts - Add missing logger in task-registry.store.sqlite.ts
- Remove 120-minute activeMinutes filter from chat session dropdown so all sessions appear after gateway restart (CHAT_SESSIONS_ACTIVE_MINUTES → 0) - Skip numeric-only space IDs (Discord snowflakes) in buildGroupDisplayName so display names use channel names instead of raw IDs - Persist label from displayName in deriveGroupSessionPatch when the session entry has no label yet
…cks register The chat session picker search input auto-focuses when the popover opens. Clicking an option fires the search input's blur before the click event; applyChatSessionPickerSearch then cleared the picker result for empty queries, nullifying chatSessionPickerResult and triggering a Lit re-render mid-gesture. The option button shifted between pointerdown and pointerup, so the browser never emitted a click and the session never switched (sidebar recents were unaffected since they call switchChatSession directly). Skip clearChatSessionPickerSearch when there is no applied query to revert. Verified live: blur no longer nullifies the 23-session result, the click reaches the option button, and the session switches.
|
Codex review: needs real behavior proof before merge. Reviewed June 11, 2026, 10:32 PM ET / 02:32 UTC. Summary PR surface: Source +604, Tests -5294, Other -34. Total -4724 across 48 files. Reproducibility: unclear. The review failed before ClawSweeper could establish a reproduction path. Review metrics: none identified. Stored data model Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Review detailsBest possible solution: Retry the Codex review after fixing the execution failure. Do we have a high-confidence way to reproduce the issue? Unclear. The review failed before ClawSweeper could establish a reproduction path. Is this the best way to solve the issue? Unclear. Retry the review first so ClawSweeper can evaluate the actual issue and fix direction. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 301213a05f2f. Label changesLabel justifications:
Evidence reviewedPR surface: Source +604, Tests -5294, Other -34. Total -4724 across 48 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
|
|
Closing in favor of the clean minimal replacement PR: #92328. |
Fixes dashboard history projection so toolCall-only assistant messages do not hide recent user context, and suppresses prompt persistence for exec approval follow-up resumes.
Tests: