Skip to content

fix(websocket,files,ui): fix ws tenant scope, missing skills path 404, and empty chat bubbles - #815

Merged
yaojin3616 merged 9 commits into
mainfrom
codex/archive-dao-refactor-20260728
Aug 5, 2026
Merged

fix(websocket,files,ui): fix ws tenant scope, missing skills path 404, and empty chat bubbles#815
yaojin3616 merged 9 commits into
mainfrom
codex/archive-dao-refactor-20260728

Conversation

@yaojin3616

Copy link
Copy Markdown
Collaborator

Summary of Changes

  • WebSocket Authentication & Tenant Context: Injected tenant_context into WebSocket connection setup and message loop to prevent 404 Agent Not Found errors caused by uninitialized ContextVar tenant scope.
  • Files API Missing Skills Path: Extended top-level fallback allowed directory paths in files.py to include skills, allowing empty skills directories to return [] (200 OK) instead of 404 Path not found.
  • Frontend Empty Message Bubbles Filtering: Added empty message filtering in AgentDetailPage.tsx to prevent empty assistant response bubbles without text/thinking/attachments/errors from rendering in the chat UI.
  • Unit Testing: Added tests/test_agent_files_api.py to cover files API boundary cases, and fixed test mocks in test_unified_runtime_group_migration.py and test_agent_runtime_checkpointer.py. All 2135 unit tests pass (100%).

# Conflicts:
#	.env.example
#	backend/app/api/agents.py
#	backend/app/api/chat_sessions.py
#	backend/app/api/dingtalk.py
#	backend/app/api/discord_bot.py
#	backend/app/api/enterprise.py
#	backend/app/api/feishu.py
#	backend/app/api/gateway.py
#	backend/app/api/okr.py
#	backend/app/api/relationships.py
#	backend/app/api/slack.py
#	backend/app/api/teams.py
#	backend/app/api/tools.py
#	backend/app/api/websocket.py
#	backend/app/api/wecom.py
#	backend/app/api/whatsapp.py
#	backend/app/config.py
#	backend/app/core/permissions.py
#	backend/app/models/audit.py
#	backend/app/services/agent_context.py
#	backend/app/services/agent_seeder.py
#	backend/app/services/agent_tools.py
#	backend/app/services/channel_session.py
#	backend/app/services/chat_session_service.py
#	backend/app/services/discord_gateway.py
#	backend/app/services/heartbeat.py
#	backend/app/services/llm/caller.py
#	backend/app/services/okr_daily_collection.py
#	backend/app/services/okr_scheduler.py
#	backend/app/services/onboarding.py
#	backend/app/services/resource_discovery.py
#	backend/app/services/scheduler.py
#	backend/app/services/storage_runtime/s3.py
#	backend/app/services/supervision_reminder.py
#	backend/app/services/task_executor.py
#	backend/app/services/template_seeder.py
#	backend/app/services/trigger_daemon.py
#	backend/app/services/trigger_runtime/executions.py
#	backend/app/services/trigger_runtime/invoker.py
#	backend/app/services/trigger_runtime/queue.py
#	backend/app/services/wechat_channel.py
#	backend/app/services/wecom_stream.py
#	backend/app/services/workspace_collaboration.py
#	deploy/docker-compose-multi.yml
@yaojin3616
yaojin3616 merged commit 4d2fe17 into main Aug 5, 2026
1 check was pending
@yaojin3616
yaojin3616 deleted the codex/archive-dao-refactor-20260728 branch August 5, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant