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
"""set_overlay_style persists [ui].orb_style, comment/section-safe."""
from __future__ import annotations
import tomllib
from dodaios.core import config_writer
def test_set_overlay_style_round_trip(tmp_path):
cfg = tmp_path / "jarvis.toml"
cfg.write_text('[ui]\norb_style = "mascot"\n', encoding="utf-8")
config_writer.set_overlay_style("jarvis_bar", path=cfg)
data = tomllib.loads(cfg.read_text(encoding="utf-8"))
assert data["ui"]["orb_style"] == "jarvis_bar"
def test_set_overlay_style_creates_section_and_preserves_siblings(tmp_path):
cfg = tmp_path / "jarvis.toml"
cfg.write_text('[brain]\nprimary = "gemini"\n', encoding="utf-8")
config_writer.set_overlay_style("none", path=cfg)
data = tomllib.loads(cfg.read_text(encoding="utf-8"))
assert data["ui"]["orb_style"] == "none"
assert data["brain"]["primary"] == "gemini"