Repository navigation
fix(steer): fallback to sibling direct/DM lanes when slash lane has no active run - #81613
freeter226 wants to merge 1 commit into
Conversation
…o active run When /steer targets a slash-command session lane but no active embedded run exists there, check sibling direct and DM lanes for the same peer before giving up. This fixes the false "no active run" result when the user has an active run on the direct lane but /steer resolves to the slash lane. Fixes openclaw#81594 [AI-assisted]
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. This PR is now superseded: the merged replacement at #98126 covers the same slash-lane Canonical path: Keep the merged replacement implementation as canonical, close this conflicting resolver-only PR, and track any remaining ordinary-message steer ingress work in the separate canonical follow-up. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Keep the merged replacement implementation as canonical, close this conflicting resolver-only PR, and track any remaining ordinary-message steer ingress work in the separate canonical follow-up. Do we have a high-confidence way to reproduce the issue? Yes, for the original bug at source level: Is this the best way to solve the issue? Yes, the merged replacement is the better solution because it covers this PR's sibling fallback plus the adjacent session-file, Telegram/Codex registration, and active-run admission paths. The one-file branch is now obsolete and conflicting. Security review: Security review cleared: The PR diff is limited to TypeScript steer session lookup and does not change dependencies, workflows, secrets, permissions, package resolution, or downloaded code. AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 9d68f877ac3e; fix evidence: commit 274b6287cfb3, main fix timestamp 2026-07-01T10:04:17-07:00. |
|
Thanks for the thorough review @clawsweeper. Regarding the real behavior proof: this PR fixes a However:
I'm happy to add a regression test covering the slash-to-direct fallback if that helps. Would a maintainer be able to verify this in a Discord test environment, or apply a @steipete @shakkernerd — any guidance would be appreciated. |
|
This pull request has been automatically marked as stale due to inactivity. |
|
Thanks for the focused fix. Closing as superseded by #98126, which landed the slash-lane direct and DM fallback on current main and also resolves active runs by session file and stored session ID, with focused steering coverage. The replacement shipped in v2026.7.1-beta.1, and #81594 is closed. If this still reproduces there, please open a fresh report with exact runtime and channel proof. |
Summary
Fixes #81594
When
/steertargets a slash-command session lane but no active embedded run exists there, the command reports "no active run" even though the user has an active run on the sibling direct/DM lane for the same peer.Root Cause
resolveSteerSessionId()insrc/auto-reply/reply/commands-steer.tsonly checks the resolved target session key. When the key resolves to a:slash:lane (because the/steertext command is dispatched through the slash lane), it finds no active run and gives up immediately, without checking sibling lanes.Fix
After the initial active-run lookup fails on the slash lane, check if the session key contains
:slash:and try the corresponding:direct:and:dm:sibling keys. Return the first sibling with an active embedded run.This matches the approach suggested in the issue and mirrors the pattern used by other channel dispatch paths (Telegram, Discord) where the active run lives on the direct/DM lane.
Testing
AI-assisted
This PR was written with AI assistance. I have reviewed and understand every line of the change.