Skip to content

Termux-Ausführungsmodus-Umschalter (TF/TB) hinzufügen#118

Open
Android-PowerUser wants to merge 1 commit into
tausche-glm-5v-turbo-gegen-mimo-v2.5from
add-toggle-button-for-termux-commands
Open

Termux-Ausführungsmodus-Umschalter (TF/TB) hinzufügen#118
Android-PowerUser wants to merge 1 commit into
tausche-glm-5v-turbo-gegen-mimo-v2.5from
add-toggle-button-for-termux-commands

Conversation

@Android-PowerUser

Copy link
Copy Markdown
Owner

Motivation

  • Nutzer sollen im Chat-Eingabebereich schnell zwischen Termux-Ausführung im Vordergrund und Hintergrund umschalten können.
  • Standardverhalten bleibt Vordergrund („TF“) und die Auswahl muss persistent sein.
  • Beim Umschalten soll eine kurze Rückmeldung per Toast angezeigt werden.

Description

  • Neue Persistenz-Utility TermuxExecutionModePreferences hinzugefügt, die das Flag execute_in_background mit Default false speichert.
  • In PhotoReasoningScreen.kt ein runder Umschalt-Button über dem Senden-Button eingefügt, der zwischen TF (Vordergrund) und TB (Hintergrund) wechselt, die Einstellung persistiert und beim Umschalten die Toasts "Termux commands are executed in the background" bzw. "Termux commands are executed in the foreground" anzeigt.
  • In ScreenOperatorAccessibilityService.kt wird beim Aufbau des com.termux.RUN_COMMAND-Intents jetzt die gespeicherte Einstellung verwendet und com.termux.RUN_COMMAND_BACKGROUND entsprechend gesetzt.
  • Layoutanpassung: der neue Toggle wurde als eigene Spalte neben dem Senden-Icon platziert, Design hält sich an vorhandene runde/kreisbordelemente (ähnlich dem "New"-Button).

Testing

  • ./gradlew :app:compileDebugKotlin wurde ausgeführt und der Build war erfolgreich (BUILD SUCCESSFUL).
  • Projekt-Checks (git diff --check) wurden ausgeführt und ergaben keine Probleme.

Codex Task

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The implementation of the Termux execution mode toggle is well-structured and follows good Android development practices. The feature adds a persistent toggle button (TF/TB) in the UI to switch between foreground and background execution modes for Termux commands, with proper state management and user feedback through toasts. The code successfully compiles and integrates cleanly with the existing codebase without introducing any blocking defects.


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.

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