Repository navigation
fix: allow cross-browser steering of active sessions - #144694
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
Codex review: needs changes before merge. Reviewed September 11, 2026, 2:41 PM ET / 18:41 UTC (Revision 5). ClawSweeper reviewWhat this changesAllows equally authorized browsers to steer an active session, preserves its approval destination, and labels accepted but unconsumed messages as queued. Merge readiness⛔ Needs changes before merge - 2 items remain This remains a useful fix absent from current main. The implementation is sound, but the previously reported documentation contradiction remains unresolved. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway compares incoming messages with the active agent run’s tool permissions before admitting steering. The Control UI displays Gateway-owned pending input until the runtime consumes it. flowchart TD
A[Authorized browser message] --> B[Gateway admission]
B --> C{Matching tool permissions?}
C -->|Yes| D[Steer active run]
C -->|No| E[Queue followup turn]
D --> F[Original approval destination]
E --> G[Visible queued notice]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +2, Tests +247, Docs +9. Total +258 across 11 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the existing steering owner and approval routing, with consistent documentation explaining queued input and the more specific preparation notices. Do we have a high-confidence way to reproduce the issue? Yes, source establishes the trigger: otherwise matching messages from different reviewer devices produce different fingerprints on current main and are deferred. No runtime reproduction was executed during this read-only review. Is this the best way to solve the issue? Yes, removing approval destination from permission equivalence fixes the existing owner without transferring execution settings; the established UI guide needs the corresponding wording correction. Full review comments:
Overall correctness: patch is correct AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7adce1e1c245. LabelsLabel 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
HistoryReview history (4 earlier review cycles)
|
fd45dd2 to
f39dc61
Compare
Keep approval routing attached to the active run while comparing substantive tool permissions for incoming steering. Label unconsumed Gateway inputs as queued in the Control UI. Covers explicit and inherited steering with deterministic regressions and live OpenAI API-key proof.
Keep exact queued-notice, workspace-progress, attachment continuity, and single-submission assertions in the five browser E2E cases.
707c053 to
fdcef4b
Compare
|
Merged via squash.
|
* fix: allow cross-browser steering of active sessions Keep approval routing attached to the active run while comparing substantive tool permissions for incoming steering. Label unconsumed Gateway inputs as queued in the Control UI. Covers explicit and inherited steering with deterministic regressions and live OpenAI API-key proof. * test: expect queued input during new-session preparation Keep exact queued-notice, workspace-progress, attachment continuity, and single-submission assertions in the five browser E2E cases.
What Problem This Solves
Fixes an issue where users steering an active shared session from another browser would have their messages queued until the run ended, even when their tool permissions matched. The Control UI displayed those waiting messages as ordinary chat bubbles, making it appear that the agent had read and ignored them.
Why This Change Was Made
Compare tool permissions independently of the approval-reviewer device identity. The running turn retains its original approval destination; permission modes, execution policy, elevation, workspace, client capabilities, concrete tool bindings, and live-owner checks still apply. Both explicit and inherited steering use this owner. Separately executed collected turns retain their existing reviewer partitioning.
The Control UI now labels accepted but unconsumed input Queued · waiting for the agent, while preserving the more specific worker-setup and workspace-sync notices. This follows Codex's same-turn steering contract: input joins the active turn without replacing its execution settings.
User Impact
Authorized participants with matching permissions can redirect the running agent from another browser. Messages that must wait are visibly identified, and steering does not transfer approval ownership or grant additional tool access.
Evidence
openai/gpt-5.6-lunaand the real built Gateway plus the pinned Codex app-server. Two independently paired devices exercised explicit and inherited steering. Each case confirmed exactly one canonical user message with the original run's consumption marker, the exact requested final reply, and a single native turn.pnpm buildandnode scripts/check-changed.mjspassed; changed checks also passed after the conflict rebase. Independent review found no actionable P0/P1 findings.The before/after captures below use synthetic conversation data. No live user transcript or credentials are included.
Landing note: the maintainer explicitly waived the additional local ClawSweeper completion gate for this PR because the review queue was stalled. Normal GitHub checks remain required. The recovered ClawSweeper service subsequently completed this PR review with no actionable findings.