You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(groups): keep a silent member turn out of the group room - #48523
A bot that wakes up because an item changed and answers only "NO_REPLY" is saying nothing to the
room. The group chat showed that nothing anyway: a "read an update to its items" line, a
"Worked for 0s" header, and the literal NO_REPLY. In a busy room this buried the real
conversation.
What Changed
Newsrc/shared/bots/bot-group-member-turn.ts: a member turn's rows (the frozen ones a
retired member left, or the live session's) and whether that turn said anything. It uses the
rule the room history already uses (botGroupTurnReplyText): a reply that is only the quiet
marker is silence, any other words are a reply.
src/renderer/src/components/bots/BotGroupTurn.tsx: a turn that said nothing draws nothing — no
turn header, no rows, no reply button.
src/renderer/src/components/bots/BotGroupChat.tsx: a post whose every turn said nothing keeps
no line either, so the room does not show "read an update to its items" on its own.
mobile/src/bots/MobileBotGroupTurns.tsx and mobile/src/bots/MobileBotGroupPost.tsx: the same
two rules on the phone, where the marker itself was drawn.
Before: "Triage read an update to its items" / "Triage Worked for 0s" / "NO_REPLY".
After: nothing.
Why
The room already had the rule — the history it shows other members, and the reply it settles,
both drop a quiet marker. Only the drawing of the room did not use it, so the same turn was silent
in the history and loud on screen. Reading the turn's own words with the same rule keeps one
meaning of "silent" across the room, and hides the whole turn rather than only the marker text,
so the chrome around it cannot outlive the words it was about.
N/A — the change only removes chrome that was already there; there is no new state to draw. I
verified the rendered result in a renderer harness instead: a group turn whose only words are NO_REPLY renders an empty container, while a turn with words renders exactly as before.
Testing
I manually tested these changes locally — with a renderer harness (vitest + happy-dom) that
drives the real BotGroupTurn and the shared rule: a turn whose only words are NO_REPLY
renders nothing; a turn with words still renders; "words + NO_REPLY", a turn that answered
another member, and a turn whose member was removed all still render. I did not drive the
packaged app: reproducing the report needs a group chat with a bot that answers NO_REPLY,
which the harness reproduces deterministically.
Automated tests added/updated, or explained why not below — none committed. This is presentational
behaviour with no parser, persistence or state-machine invariant behind it, the repo's golden
E2E journeys have no group-chat flow, and the repo's policy is to prove such a change by
running it rather than by committing a UI test.
Every added test fails without this change and avoids the test anti-patterns
— no test was added (see above).
Performance
The room reads the rows of the posts it shows when the room re-reads or a member's journal
changes: one pass over the page's turns, over rows the room already has in memory. No extra
files, network or IPC.
Risk
Level: Low
The riskiest part is a member turn that says only NO_REPLY and now leaves no trace in the room.
If such a turn also changed an item, the change still shows in the Items panel — only the room's
line about it goes. A turn that answered another member still shows, because an answer is words.
A turn whose member was removed still shows ("Member removed"). Nothing is deleted from any store:
the room's history keeps the turn, and the room still draws it as soon as it has words. A plain
revert restores the old behaviour.
AI Disclosure
Used Claude Code (the claude CLI) with the group/dynamic model group.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer
source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Cross-platform: no platform-specific code is touched; the rule is shared code both surfaces read.
Remote hosts / SSH: a room on a paired host reads the same shared rule.
Mobile: covered — the phone's group room had the marker itself on screen.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
No actionable comments were generated in the recent review.
Walkthrough
Mobile and desktop group chats now use shared helpers to obtain member-turn transcript items and detect silent turns. Silent member turns are not rendered. When a post has at least one turn and every turn is silent, the peer request line is also omitted. Other owner messages and remote asks remain unchanged.
Severity of issue fixed: Medium
Merge Risk: Low · up to 7b34f
Group chats now hide turns whose only reply is NO_REPLY, along with their wake-up line, while turns with words, replies to another member, and removed-member turns still render. One cosmetic issue remains open: posts that are entirely silent still leave a blank gap between visible posts. The PR is also waiting on a maintainer decision about hiding wake-ups.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title "fix(groups): keep a silent member turn out of the group room" names the main change: a member turn whose only reply is NO_REPLY is hidden from the group room in both desktop and mobile. The…
Description check
The description follows the repository template. It includes ELI5, What Changed, Why, Linked Issue (Fixes #48444), Visual Proof (N/A with a reason), Testing, Performance, Risk with level Low and a rev…
Linked Issues check
Issue #48444 asks that a silent member turn (final reply exactly NO_REPLY) draw no literal NO_REPLY message, no "read an update to its items" line, and no "Worked 0s" turn header on desktop and mobile…
Out of Scope Changes check
All changed files connect to issue #48444. bot-group-member-turn.ts supplies the shared silence rule and row lookup. BotGroupTurn.tsx, BotGroupChat.tsx, MobileBotGroupTurns.tsx, and MobileBotGroupPost…
Full details: Title check
Explanation
The title "fix(groups): keep a silent member turn out of the group room" names the main change: a member turn whose only reply is NO_REPLY is hidden from the group room in both desktop and mobile. The summary and objectives confirm the changes to BotGroupTurn, BotGroupChat, and the mobile group components, plus the shared turn-silence helper. The title is specific and concise, and it follows a conventional commit style.
Full details: Description check
Explanation
The description follows the repository template. It includes ELI5, What Changed, Why, Linked Issue (Fixes #48444), Visual Proof (N/A with a reason), Testing, Performance, Risk with level Low and a revert note, AI Disclosure, the upstream boundary checkbox, Notes, and Checklist. It explains the before and after behavior and the mechanism, and it describes the manual harness testing. Two items remain open: no automated test was committed, and the test-anti-pattern checkbox is unchecked with an explanation. The Performance section gives a reasoned answer. The description is complete enough to pass.
Full details: Linked Issues check
Explanation
Issue #48444 asks that a silent member turn (final reply exactly NO_REPLY) draw no literal NO_REPLY message, no "read an update to its items" line, and no "Worked 0s" turn header on desktop and mobile. Source at the reviewed head supports this. (1) src/shared/bots/bot-group-member-turn.ts defines botGroupTurnSilent. It returns false for revoked turns. Otherwise it returns true only when botGroupCompletedText(items) is non-null and botGroupTurnReplyText(text, turn.answer) returns null. This keeps turns that answered another member and turns whose member was removed visible. (2) src/renderer/src/components/bots/BotGroupTurn.tsx returns null for silent turns, which removes the header, rows, and reply button. (3) BotGroupChat.tsx omits the peer request line when every turn of a post is silent, which covers the "read an update to its items" line. (4) mobile/src/bots/MobileBotGroupTurns.tsx and MobileBotGroupPost.tsx apply the same two rules. The mobile and renderer component changes were assessed from the whole-PR summary, not from full source. The change since the previous review centralizes row lookup in botGroupTurnRows (frozen items first, then the reader). This does not alter the silence rule. No automated tests were added. The issue does not require tests. The packaged app was not run. The reviewer's UX trade-offs in the PR comments are product decisions, not coding requirements of #48444, so they do not affect this result.
Full details: Out of Scope Changes check
Explanation
All changed files connect to issue #48444. bot-group-member-turn.ts supplies the shared silence rule and row lookup. BotGroupTurn.tsx, BotGroupChat.tsx, MobileBotGroupTurns.tsx, and MobileBotGroupPost.tsx apply that rule on desktop and mobile. The botGroupTurnRows helper replaces the earlier per-component row lookup. This is a refactor needed to share one rule across surfaces, and the summary reports no other changes to exported declarations beyond the new helpers and the BotGroupTurn return type (now nullable). No unrelated functional changes were identified. Mobile and renderer component files were assessed from the summary only.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 3bbe9cca-a114-4065-8a1b-5db4649eda2d
Commits
Reviewing files that changed from the base of the PR and between ddc681c and 7b34f8a.
Files selected for processing: 4
mobile/src/bots/MobileBotGroupPost.tsx
mobile/src/bots/MobileBotGroupTurns.tsx
src/renderer/src/components/bots/BotGroupChat.tsx
src/renderer/src/components/bots/BotGroupTurn.tsx
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
Review info
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: fa33e6dd-9f56-4478-a1f4-6fedd9fc0294
Commits
Reviewing files that changed from the base of the PR and between 1f4588e and ddc681c.
Files selected for processing: 5
mobile/src/bots/MobileBotGroupPost.tsx
mobile/src/bots/MobileBotGroupTurns.tsx
src/renderer/src/components/bots/BotGroupChat.tsx
src/renderer/src/components/bots/BotGroupTurn.tsx
src/shared/bots/bot-group-member-turn.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
The reason will be displayed to describe this comment to others. Learn more.
Minor · Functional Correctness · Quick win
Remove the layout slot that silent posts still occupy.
All-silent posts keep their message wrapper in the flex column. The gap-5 spacing and the space-y-6 margins apply to that wrapper even though it has no visible content, so each silent post adds a blank gap between the visible posts around it. Keep the wrapper mounted so that BotGroupTurn hooks, such as useBotGroupTranscriptRows at BotGroupTurn.tsx:126, still run. Remove only the box from layout for quiet posts. Remote asks in those posts remain visible.
The reason will be displayed to describe this comment to others. Learn more.
Correct on this head: a quiet post's empty wrapper still takes the column's gap, so silent posts leave blank space between the visible ones.
This PR is parked on the UX call above and I'm pushing no head meanwhile. If wakeups do get hidden, the rework will take that box out of layout for quiet posts while keeping BotGroupTurn mounted so its hooks still run.
Thanks @joei4cm! The literal NO_REPLY text in group turns was fixed on main by #48496. That PR deliberately kept quiet wakeups visible, because hiding them whole has trade-offs we want a maintainer to weigh: a busy room can open looking blank (only "Load earlier messages"), wakeups flash as "Starting…" then collapse once journals load, and they vanish with no fade. So I'm leaving this open for that UX decision rather than merging it now.
Thanks — agreed the marker itself is covered by #48496 on both surfaces, so nothing here is needed for that.
What this PR still changes is only the second half of #48444: for a turn whose only words are the marker, the "read an update to its items" line and the turn itself (header, rows, reply button) draw nothing. A turn that answered a member, or whose member was removed, still draws.
Your three trade-offs apply to this implementation as it stands: a room whose newest posts are all quiet wakeups opens blank; a wakeup still draws until the member's journal rows are read, then collapses; and there is no exit transition. So it's your call, and I won't push it. Feel free to close it if you keep wakeups visible — and if you do decide to hide them, I'm happy to rework this against whatever you settle on for those cases.
A member that woke on an item update and answered only NO_REPLY told the
room nothing, yet the room drew its wake-up line, its turn header and the
marker itself. The room now reads a member turn's own words with the same
rule the room history uses, and draws nothing of a turn that said only the
quiet marker: no line, no header, no rows. A turn that answered a member, or
whose member left, still shows.
Co-Authored-By: Claude Code <[email protected]>
…reads "Nothing to report"
A settled bot turn that drew an image and also emitted the NO_REPLY marker
showed "Nothing to report" beside the image. rowSays in
native-chat-acting-turns.ts only counted words, so the turn was not acting.
It now also counts an assistant image-ref block, so the marker stays undrawn
whether it comes before, after, or in the same row as the image. Desktop and
mobile share this rule.
Scene 1 of the issue (a group peer answer that is only NO_REPLY) is not
covered here; it overlaps stablyai#48523.
Refs stablyai#52493
Co-authored-by: mark-l-rise <[email protected]>
…reads "Nothing to report" (#52792)
A settled bot turn that drew an image and also emitted the NO_REPLY marker
showed "Nothing to report" beside the image. rowSays in
native-chat-acting-turns.ts only counted words, so the turn was not acting.
It now also counts an assistant image-ref block, so the marker stays undrawn
whether it comes before, after, or in the same row as the image. Desktop and
mobile share this rule.
Scene 1 of the issue (a group peer answer that is only NO_REPLY) is not
covered here; it overlaps #48523.
Refs #52493
Co-authored-by: Neil <[email protected]>
Co-authored-by: mark-l-rise <[email protected]>
This branch has not been deployed
No deployments
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
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.
ELI5
A bot that wakes up because an item changed and answers only "NO_REPLY" is saying nothing to the
room. The group chat showed that nothing anyway: a "read an update to its items" line, a
"Worked for 0s" header, and the literal NO_REPLY. In a busy room this buried the real
conversation.
What Changed
src/shared/bots/bot-group-member-turn.ts: a member turn's rows (the frozen ones aretired member left, or the live session's) and whether that turn said anything. It uses the
rule the room history already uses (
botGroupTurnReplyText): a reply that is only the quietmarker is silence, any other words are a reply.
src/renderer/src/components/bots/BotGroupTurn.tsx: a turn that said nothing draws nothing — noturn header, no rows, no reply button.
src/renderer/src/components/bots/BotGroupChat.tsx: a post whose every turn said nothing keepsno line either, so the room does not show "read an update to its items" on its own.
mobile/src/bots/MobileBotGroupTurns.tsxandmobile/src/bots/MobileBotGroupPost.tsx: the sametwo rules on the phone, where the marker itself was drawn.
Before: "Triage read an update to its items" / "Triage Worked for 0s" / "NO_REPLY".
After: nothing.
Why
The room already had the rule — the history it shows other members, and the reply it settles,
both drop a quiet marker. Only the drawing of the room did not use it, so the same turn was silent
in the history and loud on screen. Reading the turn's own words with the same rule keeps one
meaning of "silent" across the room, and hides the whole turn rather than only the marker text,
so the chrome around it cannot outlive the words it was about.
Linked Issue
Fixes #48444
Visual Proof
N/A — the change only removes chrome that was already there; there is no new state to draw. I
verified the rendered result in a renderer harness instead: a group turn whose only words are
NO_REPLYrenders an empty container, while a turn with words renders exactly as before.Testing
drives the real
BotGroupTurnand the shared rule: a turn whose only words areNO_REPLYrenders nothing; a turn with words still renders; "words + NO_REPLY", a turn that answered
another member, and a turn whose member was removed all still render. I did not drive the
packaged app: reproducing the report needs a group chat with a bot that answers NO_REPLY,
which the harness reproduces deterministically.
behaviour with no parser, persistence or state-machine invariant behind it, the repo's golden
E2E journeys have no group-chat flow, and the repo's policy is to prove such a change by
running it rather than by committing a UI test.
test anti-patterns
— no test was added (see above).
Performance
The room reads the rows of the posts it shows when the room re-reads or a member's journal
changes: one pass over the page's turns, over rows the room already has in memory. No extra
files, network or IPC.
Risk
Level: Low
The riskiest part is a member turn that says only
NO_REPLYand now leaves no trace in the room.If such a turn also changed an item, the change still shows in the Items panel — only the room's
line about it goes. A turn that answered another member still shows, because an answer is words.
A turn whose member was removed still shows ("Member removed"). Nothing is deleted from any store:
the room's history keeps the turn, and the room still draws it as soon as it has words. A plain
revert restores the old behaviour.
AI Disclosure
Used Claude Code (the
claudeCLI) with thegroup/dynamicmodel group.Agent skill upstream boundary
source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)🤖 Generated with Claude Code