[Bug]: Testing agent turns any non-"true" string into false for scalar boolean parameters
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
Research direction
Start in ConvertInputToAppFunctionDataUseCase.kt, where setParameterValue handles AppFunctionBooleanTypeMetadata with the lenient String.toBoolean(). Compare it with the array branch, which already uses strict parsing and reports an error naming the parameter. Done means scalar Boolean parameters reject unknown strings like "yes" with a clear error, while "true" and "false" in any case still work.
Written by the indexing model from the issue text.
Description
Steps to Reproduce
- Call a function with a
Booleanparameter from the Debug screen or LLM with the value"yes"or"maybe".
Expected
Either true/false (case-insensitive) is accepted, or conversion fails with a clear error.
Observed
The value is silently converted to false. String elements in boolean arrays are now strict and an
unknown value fails, so scalars and arrays behave differently.
Root cause
setParameterValue uses the lenient String.toBoolean() for AppFunctionBooleanTypeMetadata
(ConvertInputToAppFunctionDataUseCase.kt).
Suggested fix
Use lowercase().toBooleanStrictOrNull() and fail with a message naming the parameter, matching
the array branch.
Found during review of the #62 fix.
- Dominant language
- Kotlin
- Stars
- 222
- Forks
- 54
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 26
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from android/appfunctions
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
android/appfunctions#84 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
android/appfunctions#81 ·
Maintainers usually reply within 1 day
-
documentation
Difficulty 1/5 Under an hour Newbie friendliness 90/100
android/appfunctions#66 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
android/appfunctions#62 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 5/5 Over a week Newbie friendliness 45/100
android/appfunctions#105 ·
Maintainers usually reply within 1 day
All issues in android/appfunctions
Similar issues
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
MetrolistGroup/Metrolist#5426 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
🐛 Type:Bug 📥 State:Awaiting Assignment 🚨 Priority: P0 - Critical
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
good first issue help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
micronizationlab/glafira-ai-hub#785 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sorsama/deepseek-harness-mobile#154 ·
Maintainers usually reply within 1 day
-
0. Needs triage enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day