Skip to content

Add Termux/Termux-command support, new providers (Groq, Cloudflare, Puter) and feedback prefs#95

Closed
Android-PowerUser wants to merge 1 commit into
add-qwen3.5-flash-modelfrom
add-error-handling-for-app-not-found
Closed

Add Termux/Termux-command support, new providers (Groq, Cloudflare, Puter) and feedback prefs#95
Android-PowerUser wants to merge 1 commit into
add-qwen3.5-flash-modelfrom
add-error-handling-for-app-not-found

Conversation

@Android-PowerUser
Copy link
Copy Markdown
Owner

Motivation

  • Expand supported API providers and models (Groq, Cloudflare, Puter) so users can select and obtain keys for additional backends.
  • Add support for issuing commands to Termux from the accessibility command pipeline and surface feedback if Termux or target apps cannot be opened.
  • Improve UX for key acquisition and surface diagnostics about missing apps/Termux in photo reasoning context.

Description

  • Added new ApiProvider entries GROQ and CLOUDFLARE, updated ApiKeyDialog to load keys for those providers, include them in the provider chips list, and added provider-specific URLs and informational Toasts for Puter and Cloudflare.
  • Introduced new ModelOption entries for Groq and Cloudflare models and added model hint strings in MenuScreen for these models.
  • Extended the Command sealed class with TermuxCommand and updated CommandParser to recognize Termux("...") patterns and log parsed Termux commands.
  • Implemented executeTermuxCommand in ScreenOperatorAccessibilityService which attempts to dispatch a Termux Tasker intent, and added handling to mark Termux missing via TermuxFeedbackPreferences when dispatch fails.
  • Added AppOpenFeedbackPreferences and TermuxFeedbackPreferences utility objects to persist and consume one-shot feedback flags about app/Termux not found, and wired consumption into PhotoReasoningViewModel so enriched screen info can include those diagnostics.
  • Minor updates: included a security policy comment in TrialManager to prohibit trial extension, and updated SystemMessagePreferences default message to include Termux("command") guidance.

Testing

  • Performed a local Gradle build with ./gradlew assembleDebug which completed successfully.
  • Ran unit tests with ./gradlew test and they passed locally.

Codex Task

Copy link
Copy Markdown
Contributor

@amazon-q-developer amazon-q-developer Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

I've reviewed the PR that adds support for Termux commands, new API providers (Groq, Cloudflare, Puter), and feedback preferences for app/Termux availability. The changes add new command types, provider configurations, and preference utilities as described.

The implementation appears functional overall. The new Command.TermuxCommand type is properly integrated into the command parser and accessibility service, and the feedback preference utilities follow the existing pattern for state management.

All changes follow the existing code patterns and structure in the codebase. The additions are primarily new functionality rather than modifications to existing critical paths.


You can now have the agent implement changes and create commits directly on your pull request's source branch. Simply comment with /q followed by your request in natural language to ask the agent to make changes.

@Android-PowerUser Android-PowerUser deleted the branch add-qwen3.5-flash-model May 11, 2026 18:20
@Android-PowerUser Android-PowerUser deleted the add-error-handling-for-app-not-found branch May 11, 2026 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant