fix(cockpit): hide System-agent runs from the Chat + Sessions lists (v0.283.2) - #507
Merged
Merged
Conversation
…Chat + Sessions lists (v0.283.2) The Cockpit concierge/operator runs are spawned run-as the member (provenance chat:<member>), so these category:'System' machinery runs cluttered the member's Chat list and the Sessions list as if they were conversations they started. listSessions now derives a `system` flag from the agent's category; the console filters it out of the Chat list, the Sessions list, and the running-count badge. The rows still exist — openable by id (Cockpit's "Open full session") and in Audit — just out of the everyday lists. Verified: typecheck + web build clean; test:governance 137/137 + tier-A 18/18. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
The follow-up cleanup from Phase 3. The Cockpit concierge (
ask) and operator (action) runs are spawned run-as the member (provenancechat:<member>), so thesecategory:'System'machinery runs showed up in the member's Chat list and the Sessions list as if they were conversations the member started.Fix
listSessionsnow derives asystemflag from the agent's category (it already readsos.agents.get(r.agent)there). The console filters!s.systemout of:The rows are untouched — still openable by id (Cockpit's "Open full session" link works) and present in the Audit log. They're just out of the everyday lists. Additive flag → no server behavior change, nothing else affected.
Verification
typecheck+web buildcleantest:governance→ 137/137 + tier-A 18/18 ✓🤖 Generated with Claude Code