fix(websocket,files,ui): fix ws tenant scope, missing skills path 404, and empty chat bubbles - #815
Merged
Merged
Conversation
# 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
…, empty chat bubbles, and update unit tests
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 of Changes
tenant_contextinto WebSocket connection setup and message loop to prevent 404 Agent Not Found errors caused by uninitialized ContextVar tenant scope.files.pyto includeskills, allowing emptyskillsdirectories to return[](200 OK) instead of404 Path not found.AgentDetailPage.tsxto prevent empty assistant response bubbles without text/thinking/attachments/errors from rendering in the chat UI.tests/test_agent_files_api.pyto cover files API boundary cases, and fixed test mocks intest_unified_runtime_group_migration.pyandtest_agent_runtime_checkpointer.py. All 2135 unit tests pass (100%).