Files
Jyotisha/docs/testing/consult-followup-tool-contract-fix-20260917.md
T
jesse-ux 8b11ae7dab fix(consult): 第 0 步改回 auto,供应商 error 块不再被吞掉
BUG-937 撤回 thinking 模式下的 required toolChoice,只留 activeTools。BUG-938 让咨询流识别 Mastra error 块,公开码 calculation_failed,内部码进日志且不触发合同 retry。
2026-09-17 23:37:49 +08:00

53 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Staging 人肉复核 · 咨询不再整轮失败(2026-09-17)
给产品负责人。不要把真实出生资料、会话 ID 或对话正文写进任何记录。
对应 BUG-937 / BUG-938。测之前先做第 0 条。
## 0. 确认测的是新版本
浏览器打开 `https://staging.jyotisha.chat/api/health`,看 `deployment.gitCommit` 是否等于本单合入 staging 后的提交。不一致 = 先别测。
账号需要已填出生日期、时间和地址,且标准咨询计费已配置。
## 1. 本命会话正经问题(P0)
1. 登录后开一段本命咨询(有可用出生分钟)。
2. 问一句正经问题,等计算走完。
- ✅ 预期:助手写出回答,不是红字「Agent 未完成必要的方法与计算步骤,本次不会扣点。」回执 `steps` 含 `tool` 步骤。
- ❌ 失败:只有那句红字;或回执仍只有 skill + retry。
## 2. 本命会话短追问(P0)
同一段对话再发「?」。
- ✅ 预期:再算出一轮并回答,不是整轮失败。
- ❌ 失败:短追问又变成「未完成必要的方法与计算步骤」。
## 3. 申报时段会话正经问题(P0)
开一段申报时段咨询,问一句正经问题。
- ✅ 预期:同第 1 条。
- ❌ 失败:同第 1 条。
## 4. 申报时段会话短追问(P0)
同一段对话再发「?」。
- ✅ 预期:同第 2 条。
- ❌ 失败:同第 2 条。
## 5. 若仍失败:取日志(不要贴用户资料)
```bash
cd /opt/jyotisha-production
docker compose -f deploy/docker-compose.server.yml logs web --since 2026-09-17T00:00:00 \
| grep -E 'consult-provider-error|agent-observability' | tail -20
```
- `errorCode` 是 `thinking_tool_choice_unsupported`:T1 没生效,核对部署 SHA。
- `errorCode` 是 `provider_error`:把脱敏后的 `messageHead` 交给 Claude 另立单。
- 同日反证:`gpt-5.6-luna` 在本命路线接受过 `required`。若该模型仍失败,优先看本条日志,不要假定是 tool_choice 拒收。