Let a hidden coworker be found again on the Agents screen - #647
Merged
davidmckayv merged 1 commit intoSep 27, 2026
Merged
Conversation
Hiding a coworker takes it off both lists on /agents, and Unhide is only in its dialog, which only its card opens. A hidden coworker had no way back short of typing its id into the address bar. The screen now ends with a collapsed Hidden section listing them, shown only when something is hidden. It reads the GET /api/agents?hidden=true list the server already serves, so nothing on the server changes. Refs CopilotKit#323
asasemahmed
requested review from
MikeRyanDev,
davidmckayv,
guidovizoso,
mxmzb and
tylerslaton
as code owners
September 27, 2026 01:01
davidmckayv
approved these changes
Sep 27, 2026
9 tasks
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.
What this changes
Part of #323. Hide and Duplicate already exist; what was missing is a way back from Hide.
Hiding a coworker takes it off both lists on
/agents, and Unhide is only in the coworker'sdialog, which only its card opens. Once hidden, a coworker could only be reached again by typing
/agents?agent=<id>by hand.The Agents screen now ends with a collapsed Hidden section listing hidden coworkers. Each card
opens the same dialog, where Unhide already is. The section renders nothing while loading, on a
failed request, or when nothing is hidden, so the screen is unchanged for anyone who has never
hidden anything and the existing loading and error states are untouched.
Pin, the other half of #323, is not in this PR. It needs a column beside
hidden_atand its ownaudited actions, so it belongs in a change of its own.
Where it runs
GET /api/agents?hidden=true,which the server already serves from
agent_preferences.hidden_at.by whichever replica answers.
agentKeys.all, which covers the hidden list, so Hide and Unhide move the card betweensections without a reload.
Boundary and audit
existing routes, still recorded as
bot.hidden/bot.unhidden.Changelog
CHANGELOG.mdunderUnreleased.Proof
bun test app/tests/agent-roster-error.test.tsx: 12 pass. Two new tests: a hidden coworkerappears under a collapsed Hidden section with a card linking to its dialog, and no section
renders when nothing is hidden. Both fail against
main.bun run --filter app typecheck,biome lint,biome format: clean.appear under Hidden, opened it from there, unhid it, and saw the section disappear.
@yash-santosh-dhumal offered to take #323 earlier. This covers only the Hidden-list gap, so Pin
is still open if you are working on it.