Skip to content

Termux-Abschlussmeldung aus Ausgaben entfernen#114

Closed
Android-PowerUser wants to merge 1 commit into
update-database-entries-for-termuxfrom
remove-process-completion-message-from-termux-output
Closed

Termux-Abschlussmeldung aus Ausgaben entfernen#114
Android-PowerUser wants to merge 1 commit into
update-database-entries-for-termuxfrom
remove-process-completion-message-from-termux-output

Conversation

@Android-PowerUser
Copy link
Copy Markdown
Owner

Motivation

  • Termux hängt nach jeder Ausführung standardmäßig die Zeile [Process completed - press Enter] an, die in Chatbubbles und an die KI weitergereichten Ausgaben störend ist.
  • Ziel ist es, diese Abschlusszeile automatisch zu entfernen, ohne reguläre Ausgaben zu verändern, damit Benutzer- und AI-Handoffs sauberer sind.

Description

  • Fügt in TermuxOutputPreferences die Konstante PROCESS_COMPLETED_PROMPT und die Hilfsfunktion removeProcessCompletedPrompt(output: String): String hinzu, die nur die letzte nicht-leere Zeile entfernt, falls sie exakt der Termux-Abschlussmeldung entspricht.
  • Wendet die Bereinigung in TermuxOutputPreferences.appendOutput an, sodass eingehende Termux-Streams vor dem Persistieren gesäubert werden.
  • Wendet die Bereinigung in TermuxOutputPreferences.consumeOutput an, sodass beim Abruf gespeicherter Pending-Ausgaben die Abschlusszeile entfernt wird.
  • Säubert die in ScreenOperatorAccessibilityService.TermuxResultReceiver aus dem Callback ermittelten stdout und stderr mit removeProcessCompletedPrompt bevor sie geloggt, an die UI weitergegeben oder in die Pending-Ausgabe übernommen werden.

Testing

  • Führe den vorgegebenen Debug-Kompilierungstest mit ./gradlew :app:compileDebugKotlin aus, welcher erfolgreich abgeschlossen wurde.

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.

The implementation correctly removes Termux's "[Process completed - press Enter]" prompt from outputs. The removeProcessCompletedPrompt function properly handles edge cases (empty output, no matching prompt) and the integration points in both TermuxOutputPreferences and ScreenOperatorAccessibilityService apply the sanitization appropriately. The code compiles successfully and the logic is sound.


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 remove-process-completion-message-from-termux-output branch June 2, 2026 16:09
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