Skip to content

Bug: agents from an uploaded-but-never-installed app appear in task assignee and @-mention pickers #2564

Closed

Description

@larryro

What happened

After uploading a private app bundle (slug issue-desk-qa, a rescoped copy of the builtin issue-desk) WITHOUT installing it — the upload dialog states "Uploading does not install the app; you can install it afterwards" and the hub card stays Available — the app's agents are nonetheless live in people pickers org-wide:

  • The task Assignee picker lists "Desk Implementer" and "Desk Reviewer" under Agents.
  • The comment @-mention picker lists them as @issue-desk-qa/desk-implementer and @issue-desk-qa/desk-reviewer (the uploaded app's scoped slugs — confirming they come from the uploaded, uninstalled bundle).

At observation time the previously-installed builtin issue-desk had been fully uninstalled (its uninstall dialog states "Its agents, workflows, pages … are deleted"), so these entries cannot be leftovers of an installed app.

Steps to reproduce

  1. bun run docker:dev; sign in as [email protected].
  2. Apps → Add app → Upload app: upload a zip of builtin-configs/apps/issue-desk copied to issue-desk-qa/ (workflow ids/paths rescoped to the new slug). Do NOT install it — card shows Private + Available.
  3. Open any project → Tasks → Create task → Assignee picker: "Desk Implementer" / "Desk Reviewer" are listed under Agents.
  4. Open a task → comment composer → type @: the same agents appear as @issue-desk-qa/desk-implementer / @issue-desk-qa/desk-reviewer.

Expected behavior

An uploaded app that is not installed should not contribute agents to assignee/mention pickers (consistent with the upload dialog's "does not install" contract and the uninstall dialog's "agents are deleted" contract). Agents should become assignable/mentionable only while the app is installed.

Why it matters

Assigning a task or mentioning an agent that has no installed runtime can't produce a working automation; it also leaks upload-time internals into everyday people pickers and will confuse members who never saw the upload.

Version or commit

main @ 75d47b3 (docker:dev)

Acceptance criteria

  • Agents of uploaded-but-uninstalled apps do not appear in the task assignee picker or @-mention picker.
  • Agents of uninstalled (removed) apps disappear from both pickers.
  • Installing the app makes its agents appear; uninstalling removes them again.

Activity

  1. added
    priority: medium
    bug
    service: platform
    on Jul 7, 2026
  2. larryro commented on Jul 9, 2026

    @larryro
    ContributorAuthor

    Related broader tracking: epic #2602 / #2603 (tasks can be assigned to agents that are not installed — covers integration-bundled / disabled / never-installed, not only uploaded-but-uninstalled apps).

    #2564 remains the specific uploaded-app case; #2603 is the general assign-path live gate.

  3. yannickmonney commented on Jul 11, 2026

    @yannickmonney
    Contributor

    Deferred from the umbrella-epic sweep (PR #2674): in flight in PR #2578. Note #2674 adds the broader server-side liveness gate (assign/triage reject non-live agents), which covers this class defensively regardless of picker filtering.

  4. larryro commented on Jul 13, 2026

    @larryro
    ContributorAuthor

    Fixed via #2674 (merged), which absorbed the #2578 fix for listAgents (installed-only via listAppInstallationsInternal) and applied the same pattern on the workflows surface. Closing as completed.

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

    bugpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions