Repository navigation
修复课程助手聊天、提醒与多轮状态 - #31
Merged
Merged
Conversation
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.
改动说明
普通聊天的自然语言回复曾被课程操作 JSON 解析器误判为“操作格式不完整、课程不存在或超出范围”。
14.05提醒、多轮时间补充和失败重试还存在上下文丢失或绑错课程的问题。这次分离系统上下文、函数工具、回复解码、领域校验和网络传输。聊天直接显示自然文字;安排通过明确工具提出,并经过本地预览与确认。格式或参数问题最多自动整理一次,服务明确拒绝工具参数时才走兼容通道。
每次请求独立保存实际课程绑定和原日期;同名候选在聊天、失败与重启后保留。待确认期间可以只读查询,原方案继续保留。本地单次提醒支持点号时间、中文时间及连续补充,查询、回复失败和操作未执行分别显示。
版本更新为 1.0.42 / 43;保留主分支已合并的测试依赖,没有新增依赖。详细说明见
docs/course-assistant-reliability/README.md。行为影响
旧版本失败请求无法还原绑定信息时,恢复原文并要求重新明确目标。生活提醒仍只支持单次。
验证
在最新主分支的独立工作区执行:
lintDebug:0 错误,234 项现有警告。testDebugUnitTest:254 项通过,1 项可选在线视觉评测跳过。assembleDebug/assembleDebugAndroidTest。开发阶段另完成 57 个真实 DeepSeek 回合或场景,使用虚构数据,不写数据库。同步工作区保持主分支的 AndroidX test ext JUnit 1.3.0。
截图
截图采用合成测试数据。角色聊天采用固定服务测试回复,验证消息显示与恢复;真实模型对话另外完成了上述 57 个回合或场景。