feat(agent): DeeDee, a floating pet that opens the agent's chat; chat-head flings for the pet and HUD (#2536)

* feat(agent): DeeDee, a pet that floats over any app and opens the agent's chat

* feat(agent): DeeDee docks and opens its chat like a chat head; throws pick their side by velocity, for the pet and the HUD

* fix(hud): the strip tucks into its fps tab with a shorter pull, and a throw toward an edge counts

* fix(hud): the HUD shows in desktop sessions again

* feat(agent): DeeDee rests tucked past the screen edge like a chat head

* fix(agent): DeeDee opens its own chat in every window, themed, and a fling across no longer tucks the HUD away

* fix(agent): the chat grows from wherever DeeDee is as it hops to its corner

* fix(agent): DeeDee hides with the PC keyboard, falls back if it cannot float, can be opened by accessibility, and settles when a drag is cancelled

* fix(agent): B and Back close DeeDee's in-window chat before the window acts on them

* fix(agent): Back closes only the chat open in that window
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-12 15:07:58 -05:00
1 parent b52ce7e4c5
commit 39a4a1b60c
14 files changed
+1455 -36

No files matched your search

@@ -84,7 +84,7 @@ import com.droiddeck.launcher.session.SteamLibraries
import com.droiddeck.launcher.input.SecondScreenDisplay
import com.droiddeck.launcher.input.SecondScreenDisplays
class FrontEndActivity : ComponentActivity() {
class FrontEndActivity : ComponentActivity(), com.droiddeck.launcher.ui.AgentPetHost {
override fun attachBaseContext(newBase: android.content.Context) {
super.attachBaseContext(newBase)
com.droiddeck.launcher.core.AppLanguage.applyTo(this, newBase)
@@ -1782,6 +1782,8 @@ class FrontEndActivity : ComponentActivity() {
}, "finish-abandoned").start()
}
override val petBlocked: Boolean get() = false
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
setIntent(intent)
@@ -1875,6 +1877,7 @@ class FrontEndActivity : ComponentActivity() {
}
override fun dispatchKeyEvent(event: KeyEvent): Boolean {
if (com.droiddeck.launcher.ui.AgentPet.handleBack(this, event)) return true
if (compatLaunch != null) {
if (event.keyCode == KeyEvent.KEYCODE_BACK || event.keyCode == KeyEvent.KEYCODE_BUTTON_B) {
if (event.action == KeyEvent.ACTION_UP) cancelCompatLaunch()