Repository navigation
fix: hide subagent sessions from Activity - #147253
Conversation
Filter subagent sessions before search, facets, counts, and pagination so Activity stays focused on conversations. Preserve normal nested sessions and existing diagnostic listings.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 2:38 PM ET / 18:38 UTC (Revision 2). ClawSweeper reviewWhat this changesAdds an optional Gateway filter that keeps subagent sessions out of Activity’s conversation feed, search results, and people counts, with matching Swift support, documentation, and regression tests. Merge readiness✅ Ready for maintainer review Keep open: this focused fix remains useful on current main, and no actionable correctness or security findings were identified. The related Session Share fix does not supersede it. Priority: P3 Review scores
Verification
How this fits togetherActivity requests session lists from the Gateway to display recent conversations and people counts. The Gateway filters stored sessions before calculating facets and pagination; Live activity uses a separate request mode. flowchart TD
A[Activity Sessions filters] --> B[Session list request]
C[Stored sessions] --> D[Gateway visibility and subagent filtering]
B --> D
D --> E[Search and people counts]
E --> F[Pagination]
F --> G[Conversation feed]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +4, Tests +138, Docs 0, Other +4. Total +146 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep session classification and pre-pagination filtering in the Gateway, with Activity opting in and diagnostic listings retaining their existing behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main includes recent subagent entries in Activity’s unfiltered session list, allowing them to consume page slots and contribute to people counts. Execution was not repeated in this read-only review. Is this the best way to solve the issue? Yes. Filtering at the existing Gateway owner keeps rows, counts, search, and pagination consistent; client-side filtering would leave counts and page membership incorrect. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 69213b315cb3. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
* commit 'cf45ff4d6a9c13164463db860285a02c1c4f2e8c': test(macos): observe readiness cancellation and deadline ownership (#145056) fix(ci): route QA Profile Evidence to its run-status owner test (#147293) fix(install): preserve runtime links when Node validation fails (#147221) test(auto-reply): reuse memory session fixtures (#147262) fix: hide subagent sessions from Activity (#147253) ci: record resources for slow runtime test commands (#147254) fix(update): recognize FreeBSD boot identities in triage leases (#147243) refactor(active-memory): share closing tag line scan (#147031) fix: resume Settings autosave after Reload Config (#147136) fix(cli): keep conversation context after cancellation (#147139) fix(channels): make system-agent approval cards actionable (#147152) refactor: retain shared database handles until their last worker closes (#147246) refactor(slack): share workspace-qualified target resolution (#147024) refactor(msteams): remove duplicate quoted-table test (#147270)
* commit 'ac59d5e09eb468dc23cf95e447608b57e71b52af': (176 commits) improve(gateway): avoid redundant startup preflight work (#147285) test(macos): observe readiness cancellation and deadline ownership (#145056) fix(ci): route QA Profile Evidence to its run-status owner test (#147293) fix(install): preserve runtime links when Node validation fails (#147221) test(auto-reply): reuse memory session fixtures (#147262) fix: hide subagent sessions from Activity (#147253) ci: record resources for slow runtime test commands (#147254) fix(update): recognize FreeBSD boot identities in triage leases (#147243) refactor(active-memory): share closing tag line scan (#147031) fix: resume Settings autosave after Reload Config (#147136) fix(cli): keep conversation context after cancellation (#147139) fix(channels): make system-agent approval cards actionable (#147152) refactor: retain shared database handles until their last worker closes (#147246) refactor(slack): share workspace-qualified target resolution (#147024) refactor(msteams): remove duplicate quoted-table test (#147270) fix(qa): bind coverage IDs to producer assertions (#144000) fix(linux): explain FreeBSD desktop setup prerequisites (#147211) fix(memory): split embedding batches rejected for an input array item cap (#139541) test: isolate timing metadata persistence from inherited settings (#147112) refactor(status): retire test-only helper publication (#147071) ...
* fix: hide subagent sessions from Activity Filter subagent sessions before search, facets, counts, and pagination so Activity stays focused on conversations. Preserve normal nested sessions and existing diagnostic listings. * test: use the stored session label in Activity regression * style: group session key predicates by their owning module
What Problem This Solves
Fixes an issue where users opening Activity → Sessions would see subagent work mixed into the recent conversation feed. A busy parent session could fill the feed with its children and inflate the people counts.
Why This Change Was Made
Activity requests the Gateway's new optional
excludeSubagentssession-list filter. The Gateway applies its canonical subagent-key classification before search, people/owner facets, counts, and pagination. This keeps ordinary nested conversations and conversations whose titles mention subagents visible. Existing session-list callers and Live activity diagnostics keep their behavior. The Swift request model is regenerated and the Activity guide describes the exclusion.User Impact
The Activity Sessions feed stays focused on conversations, including when searching or filtering by people and time. Subagent sessions remain accessible through their parent conversations.
Evidence