fix(chat,shell): resolve stop mismatch and enforce workspace venv#4028
Open
argueddd wants to merge 1 commit intoagentscope-ai:mainfrom
Open
fix(chat,shell): resolve stop mismatch and enforce workspace venv#4028argueddd wants to merge 1 commit intoagentscope-ai:mainfrom
argueddd wants to merge 1 commit intoagentscope-ai:mainfrom
Conversation
|
Hi @argueddd, thank you for your first Pull Request! 🎉 🙌 Join Developer CommunityThanks so much for your contribution! We'd love to invite you to join the official QwenPaw developer group! You can find the Discord and DingTalk group links under the "Developer Community" section on our docs page: We truly appreciate your enthusiasm—and look forward to your future contributions! 😊 We'll review your PR soon. |
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.


Description
修复两个稳定性 bug:
4027会话中断命中不稳定
增强
/console/chat/stop的停止匹配逻辑,支持chat_id + session_id + session->chat_id多键兜底,降低“中断无效/会话卡住后无法继续”的概率。skills Python 解释器选择不稳定
在
execute_shell_command中优先探测并注入工作区.venv/venv,设置PATH与VIRTUAL_ENV,确保脚本执行优先命中项目虚拟环境。Related Issue: Fixes #<issue_number>
Security Considerations: 未引入新的高危权限;仅增强 stop 命中与本地 Python 环境选择逻辑。
Type of Change
Component(s) Affected
Checklist
pre-commit run --all-fileslocally and it passespytestor as relevant) and they passFor Channel Changes (DingTalk, Feishu, QQ, Console, etc.)
./scripts/check-channels.sh(or./scripts/check-channels.sh --changed) and it passestests/contract/channels/test_<channel>_contract.py(REQUIRED)create_instance()with proper channel initializationtests/contract/channels/__init__.py)tests/unit/channels/test_<channel>.pyfor complex internal logicTesting
stopped,并可继续发送新消息。python,打印sys.executable,确认落在工作区.venv。session_id,后端可输出tried_keys/active_tasks便于排查。Local Verification Evidence
Additional Notes
本 PR 仅聚焦上述两个 bug 修复,不包含其他业务功能变更。