Dodaios is an open-source agent OS for your desktop: it runs your coding agents, browser and apps by voice or chat, on your own machine. Formerly Personal Jarvis.
Python agent-orchestrationai-agentai-coding-assistantclaude-codecoding-agentcomputer-usedesktop-applocal-firstmcppersonal-jarvisvoice-assistantvoice-coding
fix(pets): calmer idle acts - first after 40-100 s, then every 1.5-4 min
rubenluetke10-beep6073654755ae
diff --git a/docs/pets.md b/docs/pets.mdindex c0c8e447ca..5fe9546d11 100644--- a/docs/pets.md+++ b/docs/pets.md@@ -206,7 +206,7 @@ Two row conventions make the pet feel alive:`"acts_sheet": "acts.png"` and `"acts": {"fire": {"row": 0, "frames": 8,"fps": 9}, ...}` (1-24 character slugs, at most 12 acts, one row each,always one-shot). The renderer (`ui/orb/pet_renderer.py`) starts one at- random 6-18 s into an idle stretch and then every 14-40 s, never the same+ random 40-100 s into an idle stretch and then every 1.5-4 min, never the sameact twice in a row; any other state cancels it, and the overlay's frametimer covers the wait, so idling costs nothing extra. A user upload is asingle sheet, so the store drops `acts` from an uploaded `pet.json`.diff --git a/tests/unit/ui/test_pet_overlay_renderer.py b/tests/unit/ui/test_pet_overlay_renderer.pyindex 9366f4d4e3..c72b7185d2 100644--- a/tests/unit/ui/test_pet_overlay_renderer.py+++ b/tests/unit/ui/test_pet_overlay_renderer.py@@ -490,7 +490,7 @@ def test_an_idle_pet_plays_an_act_after_a_while_and_returns_to_idle() -> None:assert renderer.frame_key()[2] == "idle"clock.now += 0.02assert renderer.frame_key()[2:] == ("act:wave", 0)- clock.now += 0.1+ clock.now += 0.11assert renderer.frame_key()[2:] == ("act:wave", 1)clock.now += 0.25 # past the act's 0.3 sassert renderer.frame_key()[2] == "idle"diff --git a/ui/orb/pet_renderer.py b/ui/orb/pet_renderer.pyindex 09a9b6a8a3..d0c9100534 100644--- a/ui/orb/pet_renderer.py+++ b/ui/orb/pet_renderer.py@@ -81,9 +81,10 @@ LEVEL_OPEN_SPAN = 0.45_CROP_MARGIN = 1#: Seconds of idling before the first idle act, as a random ``(low, high)`` range.-ACT_FIRST_DELAY_S = (6.0, 18.0)+#: Long on purpose: a pet that is mostly still feels calm, not hyperactive.+ACT_FIRST_DELAY_S = (40.0, 100.0)#: Seconds between the end of one idle act and the next, as a random range.-ACT_GAP_S = (14.0, 40.0)+ACT_GAP_S = (90.0, 240.0)#: Frame-key prefix of an idle act (an act and a state can share a name)._ACT_KEY = "act:"