Skip to content

Hide Huddles in mobile agent DMs - #6676

Open
klopez4212 wants to merge 3 commits into
mainfrom
kennylopez-hide-mobile-agent-huddle
Open

Hide Huddles in mobile agent DMs#6676
klopez4212 wants to merge 3 commits into
mainfrom
kennylopez-hide-mobile-agent-huddle

Conversation

@klopez4212

Copy link
Copy Markdown
Contributor

Summary

  • hide the mobile Huddle action in one-to-one agent DMs
  • preserve Huddles for human DMs and group DMs

Testing

  • just mobile-check
  • flutter test (1,662 tests)

Signed-off-by: kenny lopez <klopez4212@gmail.com>
@klopez4212
klopez4212 requested a review from a team as a code owner August 24, 2026 06:47

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6f729de6c0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mobile/lib/features/channels/channel_detail_page.dart Outdated
Comment thread mobile/lib/features/channels/channel_detail_page.dart Outdated
Signed-off-by: kenny lopez <klopez4212@gmail.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8dc06559a3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mobile/lib/features/channels/channel_detail_page.dart Outdated
Signed-off-by: kenny lopez <klopez4212@gmail.com>

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61918ccf78

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +269 to +272
final memberProfilesPreload = useMemoized(
() => _preloadMembers(ref, resolvedChannel.id),
[resolvedChannel.id],
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Rerun profile resolution after reconnect

When this page first resolves members while disconnected or after a failed member lookup, _preloadMembers completes without loading profiles; reconnecting later invalidates channelMembersProvider, but this memoized future is keyed only by the unchanged channel ID and never runs again. The DM header can start a separate profile preload after reconnect, yet memberProfilesPreloadState already reports done, so a verified-owner-only agent DM can briefly expose the Huddle action once the directory and bot queries settle but before that profile fetch finishes. Fresh evidence after the earlier fix is that the new awaitable preload is still memoized without any session/member-provider generation dependency.

Useful? React with 👍 / 👎.

Comment on lines +290 to +292
final channelBotPubkeysState = ref.watch(
channelBotPubkeysProvider(resolvedChannel.id),
);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Subscribe to bot-role updates with the d tag

When a participant gains the bot role while this DM page remains mounted, the new gate keeps using the initially fetched human classification: channelBotPubkeysProvider depends on _ChannelBotRoleSubscription, whose kind:39002 subscription filters on #h, while the relay's membership snapshots identify the channel with d and therefore never match it. As a result the Huddle action remains visible until navigation or reconnection forces a refetch; subscribe with #d (or otherwise invalidate from the actual membership event).

AGENTS.md reference: AGENTS.md:L180-L185

Useful? React with 👍 / 👎.

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.

1 participant