Repository navigation
Cloud agents: files as content, routines wait for the person, and a notice when one changes - #4324
Merged
Merged
Conversation
A paired cloud agent attaches the files it sends as bytes; a path in attachments, in a routine's attachments too, is refused with the words a linked computer's send gets. Pictures in what it writes show only from those bytes, at send and later (the image route, the capture on open, a Markdown file's pictures). A flag on the tool context, noLocalReads, set by the agent door, says so.
Any change a paired cloud agent makes to a routine the person turned on turns it off until the person turns it on again, with the line a folder or agent change already posts. A cloud agent runs only a routine that is on. Agents on this computer are unchanged.
Through the agent door a project_path or a routine's folder names a project the Inbox has, or the agent's own place; any other folder is project_not_found, with nothing looked up and no project made. A cloud agent's links to files are not checked, a question's running app on this computer is not checked (a web page still is), a walkthrough reads only inside its project and never a hidden folder, and a capability is not turned on or off through the door's route.
A test lists every action, place-like field and window route the agent door carries for a cloud agent, and fails when one is added without being declared with what it can reach on this computer.
…'s sent files A cloud agent's question pictures in the decisions download come from the files it sent, as the window shows them. Its reply into a thread on a linked computer carries the files it sent and nothing else, and a message carried here from a linked computer is treated by who wrote it. Posting decisions on a pull request stays with the person.
A routine a cloud agent makes starts off, also after /create-routine; it may turn one off but never on. Turning a routine on records what it runs, and a cloud agent's run needs the routine unchanged since. A run leaves out files that a cloud agent named before, until the person turns the routine on again.
…e home folder A file it may not read answers as one that is not there.
The view, raw, attach and Open in routes answer such a path as one that is not there.
…r recorded and a cloud agent made or changed it
…before approvals runs again
…on's message on a linked computer Of a linked computer's thread, a cloud agent's read_thread lists, and its fetch_file asks that computer for, only a person's message's attached files and drawings, decided on this computer so it holds with a linked computer of any version. A Combine whose chosen agent is a cloud agent copies the person's attached files, not the pictures their messages show from disk. Agents on either computer read and combine as before. The two guides now say what the code does.
…show what changed before it is turned on A routine a paired cloud agent makes or changes (or one handed back at start) keeps who changed it, when, and how it was before. The Inbox list shows one quiet line per such routine until the person looks at the change; the routine's editor shows each changed field with what it was and the prompt's line diff, with Turn on below; the Routines table marks the row and opens the change from its Run and its menu. Turning it on clears it, and a newer change than the one shown is refused.
…ge apart from the fields below it On a narrow Routines list and on a phone, a changed routine's line wraps to a second line like a long name does, and the agent's name moves down whole instead of being cut off; the row's tooltip has the whole line. In the editor, the change sits in from its first line, with its labels in the small quiet size of its "was" lines and a wider gap before the editable fields, so it reads as one summary.
Main's merge brought tests that expect a paired cloud agent's file path and running-app prototype to be used as a local agent's. On this branch the door refuses both, so the tests now say so: the exact refusal, nothing of the named file kept, and the app never asked.
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.
Tightens what a paired cloud agent's messages and routines can do on the person's computer, and tells the person when a cloud agent changes a routine.
Nothing changes for someone who has not paired a cloud agent, and local agents behave as before.
Tests: new unit and DOM tests for each rule (cloud content, routine approval, the change notice) pass locally; the files that start an Inbox run in CI. Note for bisecting: one intermediate commit fails one assertion on its own and is fixed by the next.