Repository navigation
feat(desktop): D5, bots work while the owner is away, after a risks screen - #181
Merged
Merged
Conversation
…r accepted the risks Each desktop grant gets a "While you are away" switch. Turning it on opens a risks screen whose confirm button lights only after "I understand the risks" is checked; desktop.setOptions refuses it without acceptedRisks and keeps when they were accepted. With the owner away (app closed or 5 minutes idle), a window passes only when a grant with the option covers it at the level the tool needs, and nobody is asked. desktop_windows then lists only those grants' titles. Each use while away is kept in memory per bot and app and sent as desktop.away; the app shows "<bot> used <app> while you were away" above the main pane, with a link to the chat where it began, until the owner dismisses it (desktop.awayUses, desktop.dismissAway).
httpsphl
enabled auto-merge
October 4, 2026 23:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
D5 of Desktop Use (spec 24.8, 24.10, 24.12).
What changes
desktop.setOptions {grantId, unattended, acceptedRisks}. The daemon refuses to turn it on withoutacceptedRisks: trueand savesaccepted_risks_at.desktop_windowsshows only those grants' titles, and refuses if there are none.DesktopAwayUse), and sent asdesktop.away. The app shows "Scout used Excel while you were away" above the main pane. See in the chat opens the chat at the item where it began. Got it callsdesktop.dismissAway.Tests
accepted_risks_at.tests/desktop_away.rswith the real test window. With the owner away an hour: refused without the option;setOptionsrefused without accepted risks; with them, windows and look work;desktop.awayarrives; acting still needs a use grant and nobody is asked; the owner dismisses the notice.Manual, with real Claude / Windows
desktop_lookand an accessibility click still work. Check thatdesktop_presssays the screen is locked. Record the result in spec 19.