Skip to content

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.

Merge branch 'main' into claude/land-local-main-2026-10-05

rubenluetke10-beep160f967015c2
diff --cc jarvis/appshot/service.py
index fabff22f14,bbbe9422db..b1b349d801
--- a/jarvis/appshot/service.py
+++ b/jarvis/appshot/service.py
@@@ -111,18 -111,19 +111,24 @@@ async def take_appshot
message="Appshots are switched off. Turn them on under Settings > Appshots.",
)
service = get_service(bus=bus)
+ capture_trace_id = trace_id or uuid.uuid4()
if scope == "region":
- # Refuse BEFORE the screens freeze: without the grant the frozen
- # frame is wallpaper only (macOS) and the refusal would come after
- # the user had marked up a fake screen.
+ # Refuse BEFORE the screens freeze when asking cannot help (a
+ # Wayland portal, say): the frozen frame would be unusable and the
+ # refusal would come only after the user had marked up a fake
+ # screen. A missing Screen Recording grant is not refused here: the
+ # picker asks macOS for it just in time before it starts.
check = getattr(service, "capture_permission_issue", None)
issue = await check() if check is not None else None
- if issue is not None:
+ if issue is not None and issue[0] != "capture_permission":
return AppshotResult(status="refused", reason_code=issue[0], message=issue[1])
+ # The picture is the screen at the press, as the picker shows it
- # frozen — not whatever a video has played on to by the time the
- # user finishes selecting.
- frozen = await service.freeze_screens()
- picked = await _pick_area(service, _language(config))
++ # frozen, not whatever a video has played on to by the time the
++ # user finishes selecting. Without a live grant a frozen frame would
++ # be wallpaper only, so the area is then grabbed live after the
++ # picker has asked macOS just in time.
++ frozen = None if issue is not None else await service.freeze_screens()
+ picked = await _pick_area(service, _language(config), trace_id=capture_trace_id)
if isinstance(picked, AppshotResult):
return picked
bbox, selection = picked
@@@ -134,9 -135,10 +140,10 @@@
try:
outcome = await service.capture(
verdict=IntentVerdict(intent=VisualIntent.SCREEN, evidence=("appshot-region",)),
- trace_id=trace_id or uuid.uuid4(),
+ trace_id=capture_trace_id,
region=bbox,
master=True,
+ frozen=frozen,
)
finally:
shutter_markup.reset(token)