Unguarded int() coercion in tool args crashes the loop on non-numeric strings #74
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nsaspy/a0-symbolics#74
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Follow-up to #69 (same crash class, different args).
plugins/_code_execution/tools/code_execution_tool.py:60—int(self.args.get("session", 0))plugins/_code_execution/tools/input.py:13— sametools/notify_user.py:14—int(self.args.get("timeout", 30))plugins/_a0_connector/tools/code_execution_remote.py:155—or 0handles None but not stringsplugins/_a0_connector/tools/text_editor_remote.py:71-73— truthy-guarded but not type-guardedint(self.args["line_from"])A model passing
"session": "0 "or"line_from": "10-20"raises ValueError, which is not converted to a repairable tool error and kills the monologue loop.Suggested fix
Reuse
computer_use_remote._coerce_int(or promote it tohelpers/tool.pyasTool.get_int(name, default)) at all sites. Optionally addTool.get_strfor #69.