Repository navigation
refactor(control-ui): simplify mention Inbox request ownership - #137375
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 3, 2026, 11:38 AM ET / 15:38 UTC. ClawSweeper reviewWhat this changesThe PR consolidates Control UI mention Inbox list and dismissal requests into one connection-owned snapshot path while retaining revision and ownership fencing. Merge readiness✅ Ready for maintainer review Patch is correct: the shared snapshot path preserves the existing ownership, revision, and access-revocation checks. Current main still contains the duplicated paths, so this maintainer-owned cleanup remains useful. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI’s mention Inbox requests a profile’s pending mentions from the Gateway, reacts to targeted invalidation events, and publishes state for the sidebar. Dismissals use the same connection and must not allow stale responses to restore removed or revoked items. flowchart LR
A[Gateway connection] --> B[Mention Inbox capability]
C[Inbox invalidation event] --> B
B --> D[Owned snapshot request]
D --> E[Profile and revision checks]
E --> F[Sidebar Inbox state]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource -11. Total -11 across 1 file. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep one request owner for both Gateway methods and land the net-negative refactor once the normal exact-head merge gates complete. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR is a behavior-preserving refactor, and direct source plus existing lifecycle coverage establish the relevant paths. Is this the best way to solve the issue? Yes. The Gateway exposes one common result shape for listing and dismissal, and the shared helper preserves the previous lifecycle fences without creating another abstraction layer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d2a616bdf373. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
* refs/remotes/origin/main: fix(plugins): reject unverifiable pinned npm installs (#136725) improve(ui): lift sidebar section headers on hover and mark online owners (#136985) test(cron): reuse isolated run suite hooks (#137341) test(channels): reuse shared indexed call guards (#137350) fix(ui): sidebar header controls read misaligned after the + button lost its border (#137317) fix(qa-channel): preserve conversation kind for implicit actions (#137343) fix: target the source checkout in Control UI repair commands (#137354) chore: reduce CI job count and database test overhead (#137352) fix(ios): preserve chat live edge across keyboard transitions (#136660) refactor(control-ui): consolidate mention inbox requests (#137375) fix(openai): preserve ChatGPT HTTP status for retry pacing (#137146) fix(mcp): hide policy-denied plugin tools from ACP sessions [AI] (#136546) test(queue): reuse shared deferred fixtures (#137338) fix(gateway): repair the Gateway E2E shard (browser suite project, skill resource argv, Codex diagnostic) (#137358)
Related: #135853
What Problem This Solves
Maintainer-requested, behavior-preserving cleanup of the Control UI mention Inbox. Refresh and dismissal duplicated request/error handling, and each connection retained a full response solely to read its revision.
Why This Change Was Made
Both operations now use one connection-owned request path with the same pre-dispatch and post-response ownership checks, revision fences, and access-revocation handling. Store only the accepted revision and simplify refresh cleanup without changing invalidation coalescing or dismissal semantics.
Production: +46/-57 (net -11). Tests: unchanged. No database/schema, migration, configuration, dependency, public RPC, visual, or lazy-loading changes.
User Impact
No intended user-visible change. Stale reads still cannot restore dismissed or revoked Inbox items; profile changes and disposal still retire in-flight work.
Evidence
git diff --checkpassed on the final source.