fix(queue): System user queue items show blank instead of <hidden> for non-admin users#63
Merged
lstein merged 4 commits intofeature/multiuserfrom Feb 20, 2026
Merged
Conversation
…for non-admin users Co-authored-by: lstein <111189+lstein@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix visibility of queue items for non-admin users
fix(queue): System user queue items show blank instead of Feb 20, 2026
<hidden> for non-admin users
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.
Summary
Non-admin users viewing queue items owned by the legacy "System" user (single-user mode history) saw blank parameter fields instead of
<hidden>, unlike items from other users which correctly displayed the hidden indicator.The backend was already sanitizing System items correctly (clearing
field_values,session.graph,workflow). The bug was purely in the frontend:QueueItemComponent.tsxhad an explicititem.user_id !== SYSTEM_USER_IDcarve-out that suppressed the<hidden>label for System-owned items.Fix:
QueueItemComponent.tsx: Replace theitem.user_id !== SYSTEM_USER_IDcheck with the correct ownership/admin check — show<hidden>wheneverfield_valuesis null, the viewer is not an admin, and the item doesn't belong to the current user. This uniformly covers System items and any other user's items.test_session_queue_sanitization.py: Added two tests covering the System-user case — non-admin gets sanitized data, admin gets full data.Also noted (not fixed here): a stale comment in
migration_27.pyreferences "migration 25" for System user creation, which no longer corresponds to the correct migration number.Related Issues / Discussions
QA Instructions
In multiuser mode with an existing single-user database (queue items with
user_id = 'system'):<hidden>text, not blank.Merge Plan
Checklist
What's Newcopy (if doing a release after this PR)Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.