Repository navigation
Description
Xum (AI agent) opened this on behalf of @ibetitsmike.
Problem
#183 (ForkAgentMentionPlugin, composer @ agent delegation menu) received a clean Codex comment on its final head 012aee744d at 2026-11-11T10:01:48Z and merged at 10:11:12Z, then received a second Codex review on that same commit at 10:14:48Z (3 minutes 36 seconds after merge) with four P2 review threads. None of the four threads has a reply or is resolved.
A paginated GraphQL scan of every merged and open PR on ibetitsmike/coder shows #183 is currently the only PR in the repository with unresolved review threads (the same post-merge pattern that #172 resolved for #2).
Evidence
On main at 7b56ab6239, site/src/pages/AgentsPage/components/ChatMessageInput/ForkAgentMentionPlugin.tsx is unchanged since #183 merged (cc347a2ee7). Reading each thread against ForkAgentMentionPlugin.tsx and the plan's scope rule (#172 precedent):
| # | Thread | Line | Summary & scope reading |
|---|---|---|---|
| 1 | r4536609226 | :150 |
Retry failed agent queries when the menu reopens. Escape calls onClose (setIsMenuShown(false)) without clearing query, so isMenuOpen (query !== null) and query enabled never flip to false. Editing the still-matching @mention reopens the menu without refetching failed queries (app defaults disable automatic retry and window-focus refetch in site/src/App.tsx:19-20), contradicting the status text "Close and type @ again to retry." Real state bug on normal transient error recovery (compare #172 thread 7, accepted in #199). |
| 2 | r4536609236 | :175 |
Gate project agents on chat-project usability. When an existing chat's project share was revoked while the user still has RBAC project read via an org/site role, chatProjectId still fetches project definitions even though chatd's resolveUsableChatProjectID ignores role grants. Server still enforces usability, so there is no security bypass; candidate drop under the scope rule unless UX parity on revoked shares is wanted. |
| 3 | r4536609251 | :203 |
Keep qualified agent aliases searchable after lists resolve. Once all lists finish loading without a cross-tier collision, resolveAgentMentions (:89-93) sets name to bare reviewer, and the filter (:199-204) checks only name. Typing @personal/rev (either from the start or while lists finish loading) matches nothing even though chatd permanently accepts personal/reviewer (coderd/x/skills/skills.go:193-205). Real search/alias bug. |
| 4 | r4536609262 | :190 |
Preserve the highlighted agent as sources finish loading. Stored tiers sit ahead of workspace in resolveAgentMentions, while Lexical 0.44 keeps a numeric selectedIndex across option-array updates with an unchanged query. Async selection-timing race; candidate drop under #172's scope precedent. |
Acceptance
- Each of the four unresolved threads on feat(site/src/pages/AgentsPage/components/ChatMessageInput): insert agent delegations with @ in the composer #183 has a reply and is resolved: a link to the fix PR for accepted items (at minimum threads 1 and 3 unless triaged otherwise), or a one-line drop reason under the scope rule.
- Accepted fixes have Vitest coverage in
ForkAgentMentionPlugin.test.tsx.
Related to #187 (W10 agent definition usage UI) and #183.
Found by a read-only review of every PR's review threads on ibetitsmike/coder.
Activity
ibetitsmike commentedon Nov 11, 2026
Triage (lead): accept threads 1 (retry after reopen, which follows the #172 thread 7 precedent) and 3 (qualified
personal/aliases stay searchable). Drop thread 2: the server still enforces project usability, so this is UX on revoked shares only. Drop thread 4: it is an async selection-timing race. Routed to W10.fix(site/src/pages/AgentsPage/components/ChatMessageInput): retry age…