Repository navigation
fix(gateway): steering messages queue behind active turns - #119287
fuller-stack-dev merged 1 commit into
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 1:00 PM ET / 17:00 UTC. ClawSweeper reviewWhat this changesThe PR lets a visible Gateway turn reach queue-policy resolution when its matching embedded run remains active after the reply-operation registration has cleared. Merge readinessKeep this PR open for maintainer review. Its Priority: P2 Review scores
Verification
How this fits togetherGateway-visible messages enter the reply dispatcher, which either creates a reply operation or hands the message to the active agent turn’s queue policy. Embedded-run state supplies the active session identity so steering can join that turn without creating a competing reply. flowchart LR
A[Gateway-visible message] --> B[Reply dispatcher]
B --> C[Operation admission]
C --> D[Embedded run session check]
D --> E[Queue policy resolution]
E --> F[Active agent turn]
F --> G[Steering acknowledgement]
Decision needed
Why: The PR changes active-turn session admission and is marked for maintainer handling; required repository inspection was unavailable, so automated review cannot safely establish the lifecycle invariant. Before merge
Agent review detailsSecurityNone. PR surfaceSource +150. Total +150 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Complete an exact-head review of the dispatcher, embedded-run session resolver, queue-policy caller, and focused regression before a maintainer decides whether to merge the narrow admission exception. Do we have a high-confidence way to reproduce the issue? No independent high-confidence reproduction was established because read-only commands could not execute; the PR body reports a focused base-head failure and exact-head pass. Is this the best way to solve the issue? Unclear: the proposed matching-session guard is plausibly narrow, but the sandbox failure prevented comparison with the embedded-run resolver, queue-policy owner, and sibling callers. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against bfba83956f5d. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: fix(gateway): steering messages queue behind active turns This is item 3/3 in the current shard. Shard 21/38. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
…fecycle-20260804 * origin/main: fix(gateway): steer matching embedded turns (#119287)
Punchcard-Session: crisp-lantern-orchard-nv * origin/main: (46 commits) perf(agents): reuse provider policy manifest registry (#119305) fix(media): roll back partial generated batches (#119292) fix(gateway): steer matching embedded turns (#119287) fix(telegram): correlate deliveries to explicit topics fix(plugins): preserve install index state across failures (#119228) test: trim redundant control ui coverage (#119286) test: cover missing config method in memory settings fix: gate curated config controls by method test: cover read-only admin method gates fix: keep config drafts on their gateway fix: reset agent skill filters with config patch refactor: reuse chat error state helper test: avoid unbound identity request assertion refactor: isolate clawhub skill search fix: guard delayed config actions across reconnects fix: preserve workshop revisions across session navigation refactor: isolate workshop revision handoff test: advertise skill action methods in ui e2e fix: fail stale workshop revision sends fix: bind revision handoffs to gateway snapshots ...
…fecycle-20260804 * origin/main: fix(gateway): steer matching embedded turns (openclaw#119287)
What Problem This Solves
Fixes an issue where users steering an active Control UI agent turn would see the message remain queued until the current turn finished when the embedded run was still active but its reply-operation registration had already cleared.
Why This Change Was Made
Gateway-visible turns now reach queue-policy resolution when the active embedded run owns the same current session and no reply operation remains. Non-Gateway turns, stale embedded sessions, and turns with an active reply operation keep the existing admission behavior.
This PR intentionally contains no Control UI, composer, status-indicator, startup, model-catalog, or deployment changes.
User Impact
Steering messages can be injected into the active agent turn after the in-progress tool call completes instead of waiting for the turn to end. Idle messages still start a separate turn.
Evidence
mainred proof atbfba83956f5: 314 tests passed and the new matching-embedded-session regression failed because a competing reply operation was created before queue resolution.7711e555590: all 315 tests passed insrc/auto-reply/reply/dispatch-from-config.test.ts.oxfmt --check, focusedoxlint,git diff --check, and autoreview passed.