gsxdsm
f7e678bc8d
FN-7894: fix conversation history rendering user's own-answer text as [object Object]
Resolves planning interview history showing raw stringified objects instead of the user's typed "Other" answer text.
- Add getResponseValue resolution that mirrors the server's `_other` reserved-key contract, extracting the free-text answer separately from `_comment` metadata.
- Add formatResponse support for an `other` override across single_select, multi_select, and confirm question types, appending "(user's own answer)" suffix.
- Add safeFormatScalar helper to safely stringify non-string scalar/object response values instead of relying on bare String()/JSON.stringify() branches.
- Add regression tests covering text/single_select/multi_select/confirm question types with `_other` responses, plus the existing `_comment` metadata path.
Files changed:
.../app/components/ConversationHistory.tsx | 96 +++++++++++++----
.../__tests__/ConversationHistory.test.tsx | 117 +++++++++++++++++++++
2 files changed, 191 insertions(+), 22 deletions(-)
Fusion-Task-Id: FN-7894
Fusion-Task-Lineage: 06444248-23cd-4fac-9afc-b2e2c7366cbe
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-12 18:47:08 -07:00
..
2026-07-12 17:02:33 -07:00
2026-07-11 23:50:00 -07:00
2026-07-12 14:42:09 -07:00
2026-07-12 18:47:08 -07:00
2026-07-12 14:42:09 -07:00
2026-07-11 23:50:00 -07:00
2026-07-12 17:39:29 -07:00
2026-07-12 16:48:04 -07:00
2026-07-11 23:50:00 -07:00
2026-07-11 23:50:00 -07:00
2026-07-11 23:50:00 -07:00