fix(7883): a lesson recorded for reply.report reaches the turn before the reply, and reply.ask is not offered to a lesson
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / integration (push) Successful in 2m0s
CI & Build / Python tests (push) Successful in 3m48s
CI & Build / Build & push image (push) Successful in 20s
CI & Build / Python lint (push) Successful in 2s
CI & Build / Plugin hooks (push) Successful in 13s
CI & Build / TypeScript typecheck (push) Successful in 32s
CI & Build / integration (push) Successful in 2m0s
CI & Build / Python tests (push) Successful in 3m48s
CI & Build / Build & push image (push) Successful in 20s
Situated lessons arrived only at tool acts and in MCP replies, so a lesson given a reply moment was accepted and never shown. The per-turn delivery now carries lessons confirmed on reply.report, once per session, between the turn's rules and its reply shape. reply.ask is known only after the reply is written, so lesson_situations refuses it and leaves it out of the catalog the pass and the lesson page offer. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -465,7 +465,10 @@ async def lessons_to_situate(limit: int = 25, offset: int = 0) -> dict:
|
||||
Each lesson carries its title, its stated `when_to_apply`, the `rules` it
|
||||
is a confirmed instance of with their own moments and triggers (the
|
||||
strongest hint at its situation), and values already `rejected` for it.
|
||||
The page carries the moment `catalog` and the `trigger_kinds`.
|
||||
The page carries the `catalog` of moments a lesson can arrive at and the
|
||||
`trigger_kinds`. A lesson about writing a reply (a report, a proposal, a
|
||||
question put to the operator) goes on `reply.report`, which arrives
|
||||
before every reply is written.
|
||||
"""
|
||||
return await lesson_situations_svc.to_situate(current_user_id(), limit=limit, offset=offset)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user