mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 17:05:56 +03:00
[PR #370] [MERGED] Add tiered/redacted agent activity responses and gated Detailed approvals UI #675
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#675
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/AJaySi/ALwrity/pull/370
Author: @AJaySi
Created: 3/2/2026
Status: ✅ Merged
Merged: 3/3/2026
Merged by: @AJaySi
Base:
main← Head:codex/implement-response-tiers-for-activity-details📝 Commits (1)
4f19b99Add tiered agent activity responses with redaction and UI toggle📊 Changes
3 files changed (+243 additions, -64 deletions)
View changed files
📝
backend/api/agents_api.py(+55 -59)➕
backend/services/agent_activity_serializers.py(+146 -0)📝
frontend/src/pages/ApprovalsPage.tsx(+42 -5)📄 Description
Motivation
summary,detailed,debug) so the frontend can request different levels of detail for agent activity.Description
backend/services/agent_activity_serializers.pyimplementingsummary,detailed, anddebugtiers, recursive redaction (redact_sensitive_data), URL query sanitization, andserialize_{alert,run,event,approval}helpers.backend/api/agents_api.pyto accept adetail_tierquery param on activity endpoints and to use the new serializers instead of returning raw fields; implemented_can_access_advanced_activityand_resolve_detail_tierto restrictdebugaccess to admin/internal or flagged users (and to allow auth-disabled dev mode).frontend/src/pages/ApprovalsPage.tsxto add a Basic/DetailedToggleButtonGroup, useuseUser()metadata to gate the Detailed option, passdetail_tierto the backend request, and render an expanded payload block only when Detailed is active.debugserializations redact sensitive values for prompts, tokens, secret query params and common PII keys;debugremains backend-protected and will fall back tosummaryfor unauthorized users.Testing
python -m py_compile backend/api/agents_api.py backend/services/agent_activity_serializers.py, which succeeded.cd frontend && npx tsc --noEmit --pretty false, which reported missing type definitions (@types/jestand@types/node) in this environment and therefore failed to fully validate the TypeScript build (environment issue, not code logic in this PR).http://localhost:3000/approvalsto validate UI changes, but the frontend server was not running in the environment (ERR_EMPTY_RESPONSE).Codex Task
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.