Skip to content

Simplify SIA tool execution and fix Android action regressions - #4

Open
GWSDeveloper wants to merge 162 commits into
mainfrom
fix/sia-tool-regressions
Open

GWSDeveloper wants to merge 162 commits into
mainfrom
fix/sia-tool-regressions

Conversation

@GWSDeveloper

@GWSDeveloper GWSDeveloper commented Oct 17, 2026 •

Copy link
Copy Markdown
Owner

Goal

Simplify SIA's action flow instead of adding more agent/orchestration layers. The LLM should plan with the registered tool catalogue, Android code should execute valid calls, and actual results should return to the LLM before it answers.

Changes

  • Shared system prompt for the main screen and floating overlay.
  • Shared tool-execution/result-feedback loop for both interfaces.
  • One canonical tool registry; the legacy getAllTools() method now delegates to it.
  • Validate registered tool names, required/unknown parameters, and numeric/boolean values before executing actions.
  • Robust JSON parsing for compound tool calls and nested parameter strings; avoid treating ordinary JSON with a name field as a tool call.
  • Persist floating-overlay turns and tool outcomes in Room, and keep spoken fallback errors user-friendly.
  • Add regression tests for compound tool parsing, numeric argument normalization, registry consistency, and prompt/tool-name consistency.
  • Preserve existing Android action implementations and platform permission/restriction handling.

Validation

CI build and unit-test verification is pending for the latest commit. Review the latest workflow run before merging; this PR remains intentionally unmerged until validation is complete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant