mirror of
https://github.com/lobehub/lobehub
synced 2026-04-21 09:37:28 +00:00
* ♻️ refactor(web-onboarding): rename doc tools and drive incremental persona writes - Rename writeDocument (full rewrite) and updateDocument (SEARCH/REPLACE patch) so tool names match model intuition; the old updateDocument (full) is now writeDocument and the old patchDocument (patch) is now updateDocument. - Rework systemRole, toolSystemRole, and OnboardingActionHintInjector to require per-turn persistence: seed persona on user_identity, patch on every discovery turn where a new fact is learned, and stop the one-shot full-write pattern. - Add a Pre-Finish Checklist so agents verify soul/persona reflect the session before calling finishOnboarding. Eval (deepseek-chat, web-onboarding-v3): - fe-intj-crud-v1: write=2, updateDocument=6/6 success - extreme-minimal-response-v1: write=2, updateDocument=4/4 success - Previously 0 patch usage; now patch dominates incremental edits. * 🐛 fix(web-onboarding): decouple fullName persistence from role discovery Persona seeding and saveUserQuestion(fullName) were gated on learning both name AND role in the same turn, which regressed the prior behavior of saving the name the moment it was provided. If the user shared only a name (or left early before role was clarified), the agent could skip the save and end onboarding with missing identity data. Split the hint: 1. saveUserQuestion(fullName) fires as soon as the name is known, regardless of role. 2. Persona seeding fires on ANY useful fact (name alone, role alone, or both). Thanks to codex review for catching this. |
||
|---|---|---|
| .. | ||
| src | ||
| package.json | ||