Skip to content

fix(desktop): show remote agent activity in DMs - #6453

Open
ScaleLeanChris wants to merge 1 commit into
block:mainfrom
ScaleLeanChris:fix/6439-dm-agent-activity
Open

fix(desktop): show remote agent activity in DMs#6453
ScaleLeanChris wants to merge 1 commit into
block:mainfrom
ScaleLeanChris:fix/6439-dm-agent-activity

Conversation

@ScaleLeanChris

Copy link
Copy Markdown

Summary

  • Keep a directory-known remote agent in the DM agent-session set when the agent is an actual DM member.
  • Preserve the existing declared-channel scope rules for streams and forums.
  • Add one production-path regression covering a remote Hermes agent whose ordinary-channel scopes do not match the DM.

The agent was alive and kicking, but Desktop classified its DM typing as human activity because its declared ordinary-channel scopes did not match the DM identifier. The separate typing path still rendered Hermes is typing..., while the detailed agent activity surface had no matching agent session.

DM membership is already the authoritative relationship for that conversation. This change uses it only after the identity has entered the managed, relay-directory, or member-bot candidate set. It does not turn arbitrary DM participants into agents and does not change relay authorization.

Related issue

Fixes #6439

Controlling work order: BAC-118

Testing

  • node --import ./test-loader.mjs --experimental-strip-types --test src/features/channels/ui/useChannelActivityTyping.test.mjs: 11 passed, 0 failed.
  • pnpm -C desktop typecheck: passed.
  • pnpm exec biome check src/features/channels/ui/useChannelAgentSessions.ts src/features/channels/ui/useChannelActivityTyping.test.mjs: passed.
  • just ci: passed on macOS with Flutter 3.41.7. This includes 5,250 Desktop tests, 2,701 Desktop Rust tests with 18 ignored, and 1,552 mobile tests.

Screenshots are not included because this changes no layout or copy. It restores the existing detailed activity surface for the affected DM classification path. The focused regression exercises the production candidate builder and session filter together.

Signed-off-by: ScaleLeanChris <chris@scalelean.com>
@ScaleLeanChris
ScaleLeanChris requested a review from a team as a code owner August 21, 2026 04:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DMs no longer show the agent tool calls at the bottom (just "<agent> is typing...)

1 participant