Task mode learning review refused with "unknown learning review field" on every repair attempt

未关闭
#744 3 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@quill0224 已经在做这个了。

开始于 2026年11月24日。

  • #836 来自 @quill0224 —— 未关闭

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust
领域
ai, backend

调研方向

Start by reading docs/task-mode.md under “Capture and Learning review,” then trace the task review parsing and repair attempts from the server log messages. Reproduce with cargo run -- web --task-mode and inspect how an unknown field is reported and how the repair prompt is built. Done when a review with an extra field can be repaired and accepted, with tests covering the rejected field and retry behavior.

由索引模型根据 Issue 内容生成。

描述

Observed behavior

After a completed attempt at the default task rubik in task mode, the result page showed "Feedback unavailable" instead of a learning review. The server log shows the review model's answer refused three times (attempts 0, 1 and 2) with "unknown learning review field". The live interview itself ran normally to the end (outcome=ok), so the attempt completed but the learner got no review.

Expected behavior

A learning review with dimensions, gaps and nextActions, as docs/task-mode.md describes under "Capture and Learning review". If the model's answer has an extra field, the repair attempt should lead it to drop that field, so that one of the attempts is accepted.

Reproduction
  1. Start the server with cargo run -- web --task-mode.
  2. Open http://localhost:3000; the default task rubik opens as a guest.
  3. Choose C, accept the rules, allow the microphone and camera, calibrate, and press Start.
  4. Work through the task with Jim, then press Finish (after about 43 minutes).
  5. The result page shows "Feedback unavailable".

Observed once so far.

CodeTrial version

codetrial 0.1.0 (2e5b81b)

Environment

OS: Ubuntu 26.04 on WSL2, Windows 11
Browser: Chrome 157.0.8103.40 on Windows
Language: C
Interview loop: task mode (--task-mode), default task, guest
Problem: rubik
REACTO or STAR step: after Finish, while the learning review was generated
Reconnect: none seen on the page
Live model: gemini-3.1-flash-live-preview
Report model: gemini-3.1-flash-lite (default)

Sanitized evidence

Server log, in order; the room and session identifiers are replaced, and the token-count fields of each line are cut after the first few:

task review room=<room> attempt 0 refused: the answer was refused: unknown learning review field
gemini report room=<room> call=2 retry=0 usage prompt_tokens=18704 response_tokens=321 cached_tokens=16295 thought_tokens=0 ...
task review room=<room> attempt 1 refused: the answer was refused: unknown learning review field
gemini report room=<room> call=3 retry=0 usage prompt_tokens=18704 response_tokens=321 cached_tokens=16295 thought_tokens=0 ...
task review room=<room> attempt 2 refused: the answer was refused: unknown learning review field
codetrial live_usage room=<room> session=<session> model=gemini-3.1-flash-live-preview elapsed_s=2582 outcome=ok sockets=5 prompt_tokens=929420 response_tokens=15879 ...
  • The two report calls between the refusals have the same prompt size (18704 tokens) and the same answer size (321 tokens), so the repair attempts may be getting back the same answer each time.
  • The refusal does not name the unknown field. Naming it in the message, or logging the rejected keys, would make this easier to diagnose.
Public data confirmation
  • I removed credentials, session tokens, candidate recordings, and personal interview content from this public report.
主要语言
Rust
星标
236
派生
153
平均合并
1 天 9 小时
30 天内合并 PR
187

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

sysprog21/codetrial 的其他 Issue

查看 sysprog21/codetrial 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。