fix(confidence-engine): distinguish completed focused result
This commit is contained in:
@@ -1971,3 +1971,27 @@ Target node: `n58lwnx`
|
||||
- `Done for now` remains a separate semantic action
|
||||
|
||||
**Next boundary:** FOCUSED WORKSPACE COMPLETED-TURN / ACTIVE-TURN LIFECYCLE
|
||||
|
||||
## v0.49.7 — NARROW COMPLETED-RESULT REPAIR (answer-affordance contradiction)
|
||||
|
||||
- **Status:** CLOSED / CHECKPOINTED
|
||||
- Previous broader completed-turn lifecycle repair was discarded (restored to checkpoint dac19a3)
|
||||
- Narrow repair: a reopened completed turn preserves existing current-result presentation but NO longer exposes a response textarea for the already-answered question
|
||||
- Repair mechanism: added `!hasAnswer` (`Boolean(focused?.answer)`) to the textarea render condition in `FocusedQuestionBody` — line 186 of `reasoning-workspace.jsx`
|
||||
- Explicit follow-up selection resets `answer` to null via `setFollowUpQuestion()`, creating unanswered state and exposing textarea
|
||||
- Fresh investigation behaviour preserved (first-turn textarea still appears)
|
||||
- Latest completed turn intentionally remains as current result (not moved into Previous Learning) — deferred to a later presentation/lifecycle decision
|
||||
- No persistence changes, no new lifecycle enums, no new state fields added
|
||||
- No LLM calls during verification or tests
|
||||
- Pre-fix regression: OLD condition (`shouldShowResponseTextarea_OLD`) incorrectly returned `true` for completed turns (defect proved)
|
||||
- Post-fix: 97/97 targeted tests PASS
|
||||
- Build: PASS
|
||||
- Playwright live reopen: no "Formulating your question…" regression; completed current result shows NO textarea
|
||||
- Playwright explicit follow-up: selected follow-up becomes current QUESTION, fresh textarea with `What do you know about this?` placeholder appears
|
||||
- Return to overview: UNCLEAR + INVESTIGATING · 3 learned contributions preserved
|
||||
- Live fixture: reused existing 3-contribution onboarding investigation (no cold reload)
|
||||
|
||||
### Unresolved boundaries (deferred)
|
||||
|
||||
- latest-completed-turn → Previous Learning repartition (intentional defer — separate presentation/lifecycle decision)
|
||||
- workspace control UX wording ("Back to open questions" / "Done for now" / "Close investigation")
|
||||
|
||||
Reference in New Issue
Block a user