Skip to content

site(ChatMessageInput): triage the four Codex findings that arrived after #183 merged #217

Closed

Description

@ibetitsmike

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

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

  1. added
    pstack-parity
    followup
    on Nov 11, 2026
  2. ibetitsmike commented on Nov 11, 2026

    @ibetitsmike
    OwnerAuthor

    Xum triaged this on behalf of @ibetitsmike.

    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.

  3. added a commit that references this issue on Nov 11, 2026
    c02ab7a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    followuppstack-parity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions