Skip to content

Terminal Service#1570

Merged
RohitKushvaha01 merged 4 commits intoAcode-Foundation:mainfrom
RohitKushvaha01:terminal-service
Sep 7, 2025
Merged

Terminal Service#1570
RohitKushvaha01 merged 4 commits intoAcode-Foundation:mainfrom
RohitKushvaha01:terminal-service

Conversation

@RohitKushvaha01
Copy link
Member

@RohitKushvaha01 RohitKushvaha01 commented Aug 31, 2025

This change runs the Executor inside a foreground service, allowing it to survive the activity lifecycle. However, this does not prevent Android from killing Acode, nor does it preserve any UI state.

Note: Any command started through the Executor or Terminal will continue running until it is manually stopped or terminated by the system.

Frontend changes are also required to reconnect AXS with the previously stored terminals, similar to how AcodeX handles reconnections.

Closes #1569

Todo

  • Foreground service
  • Ask for notification permission on api 35+
  • Exit button
  • WakeLock

@RohitKushvaha01 RohitKushvaha01 self-assigned this Aug 31, 2025
@RohitKushvaha01
Copy link
Member Author

@bajrangCoder All that’s left is to restore the terminal tabs. axs will keep running even after the app is closed, as long as the service is running

@RohitKushvaha01 RohitKushvaha01 merged commit 10f82de into Acode-Foundation:main Sep 7, 2025
2 checks passed
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.

Restoring Terminal session

1 participant