mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-08 07:17:39 +00:00
fix: handle option highlighting in request_user_input component
- Trim selected value to match option labels during comparison - Parse tool.result as JSON when loaded from history, as it's stored as string
This commit is contained in:
@@ -134,7 +134,8 @@ export function parseRequestUserInputAnswers(
|
||||
if (item.startsWith('user_note: ')) {
|
||||
userNote = item.slice('user_note: '.length).trim()
|
||||
} else if (!selected) {
|
||||
selected = item
|
||||
// Trim to match option labels which are also trimmed
|
||||
selected = item.trim()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user