fix(desktop): resolve mentions from channel members [issue:#3204] - #3906
Open
tcballard wants to merge 2 commits into
Open
fix(desktop): resolve mentions from channel members [issue:#3204]#3906tcballard wants to merge 2 commits into
tcballard wants to merge 2 commits into
Conversation
Signed-off-by: Tom Ballard <tom@armytage.co>
Contributor
|
nice narrow fix. worth a regression case where the channel member is respond_to:allowlist but the viewer is not on the list — autocomplete should still hide them. |
Verify channel-member agents stay hidden from autocomplete when the viewer is outside their respond_to allowlist. Signed-off-by: Tom Ballard <tom@armytage.co>
Author
|
@Chessing234 Added this in ba6650a. The regression seeds mira as a #general channel member with respond_to: allowlist, leaves the mock viewer off the allowlist, and asserts that @mi autocomplete stays hidden. The focused Playwright test passes (1 passed). |
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
Implements issue #3204 as the next separate contribution in the #3863 handoff workstream.
The mention picker was applying a local-managed-agent gate to every agent candidate, including agents already present in the current channel. That made a remote or otherwise non-local channel member impossible to mention, while unrelated local persona rows could appear instead.
Scope
Included
Excluded
Product / Architecture Decisions
User-Facing Contract
In a channel composer, @ now offers agent identities that are current members of that channel even when their runtime is hosted on another machine or is not represented in this Desktop’s local managed-agent list. Those rows are shown as channel members rather than “not in channel.” Non-member, non-invocable agent rows remain hidden.
Verification
Ran
Added
The full Playwright browser run and TypeScript build were attempted but could not complete in this environment because the temporary checkout’s Vite/Node dependency loader stalled while reading vite.config.ts; this is an environment/toolchain limitation, not a test assertion failure.
UI Evidence
This changes autocomplete behavior, not layout or styling. A screenshot/recording could not be captured because the local browser build was blocked by the dependency-loader issue described above; the regression is represented in the focused E2E spec for maintainers to run in CI.
Review Path
Notes For Reviewer
This is an independent branch and PR, not stacked on the workflow-history or Canvas-history contributions. It deliberately does not address the adjacent persona duplication, DM recipient, or command-palette workstreams.