feat(webui): add session collaboration via mentions - #5358
Draft
chengyongru wants to merge 12 commits into
Draft
Conversation
chengyongru
force-pushed
the
codex/session-mention-collaboration
branch
from
August 12, 2026 13:08
33d465c to
42555e6
Compare
This was referenced Aug 13, 2026
chengyongru
force-pushed
the
codex/session-mention-collaboration
branch
from
August 13, 2026 05:48
99e09f3 to
f5a22e6
Compare
chengyongru
force-pushed
the
codex/session-mention-collaboration
branch
from
August 13, 2026 17:00
c075f76 to
6bd8489
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
@namewithout exposing raw session keys to the agentselfand explicitly mentioned peers in runtime context, then let agents enqueue independent peer turns throughmessage(to="@name", content="...")Delivery and lifecycle
Peer delivery is asynchronous: tool success means the target turn was accepted into a bounded process-local queue, not that it completed. Busy targets process peer turns independently in FIFO order.
This change also binds peer, automation, background persistence, and WebUI outbound work to a SessionManager generation. Deleting and recreating a session cannot let stale work revive the deleted session or transcript.
UX details
@textremains ordinary text; only a structured picker selection creates a peer mentionValidation
ruff check nanobot tests: passedbasedpyright: 0 errors, 0 warningsManual browser verification covered a persisted
/modelturn, sidebar and thread hydration after refresh, a clean console, and runtime cleanup.Current limitation
Peer delivery is best-effort and process-local in this first version. Accepted peer turns are not durable across a gateway restart.
Related
This PR includes a generation-bound form of the session-deletion lifecycle handling explored in #5357. If this PR lands, that narrower PR is superseded.