You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit f6d21d9
Browse filesBrowse the repository at this point in the historyBrowse files
feat(workbot): roll out browser use separately from computer use (#6564)
* feat(workbot): roll out browser use separately from computer use
Workbot's cloud computer has two views, the browser and the native desktop
apps, and both were gated by `computerUse`. Add a `browserUse` flag for the
Browser view and keep `computerUse` for the Computer view, so an
organization can get one without the other.
Den reports `browser` next to `computer`. Workbot sends the runner the views
a chat may use (`desktopViews`), and the runner narrows the desktop tool,
prompt, viewer and demonstration routes to them and refuses calls on a view
the chat may not use. A runner from before this change ignores the setting
and offers both views. Teaching browser tasks and the browser live view now
need `browserUse`.
Signed-off-by: Jalil <reachjalil@gmail.com>
* fix(workbot): never widen a chat's desktop views
Two paths could give a chat a desktop view its organization had turned off.
The Computer routes checked the view against a fresh Den session but then
told the runner the views from the member's cached session, which can still
include the browser for a short while after an admin turns it off. They now
pass on only the views from the fresh answer.
When a runner from before per-view limits rejects `desktopViews`, the client
dropped the setting and the runner offered both views. A chat allowed only one
view now gets no desktop on such a runner; a chat allowed both keeps both.
Signed-off-by: Jalil <reachjalil@gmail.com>
* fix(workbot): fail a one-view desktop update the runner can't enforce
A runner too old for both `desktopViews` and `desktop` rejected the update
that turns a one-view chat's desktop off, and the client then saved the chat
without any desktop setting, which could keep desktop access it had before.
Such an update now fails instead. A chat allowed both views still falls back
as before.
Signed-off-by: Jalil <reachjalil@gmail.com>
---------
Signed-off-by: Jalil <reachjalil@gmail.com>
Copy file name to clipboardExpand all lines: docs/computer-use/workbot.md
+24-4Lines changed: 24 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,29 @@
1
1
# Workbot's Computer tab
2
2
3
-
Workbot's **Computer** tab appears after **Documents** when `workbot`,
4
-
`computerUse`, and `remoteComputers` are enabled for the organization in
5
-
`/admin`. It opens directly, without a consent screen. The combined testing
6
-
branch also includes Documents; its `workbotDocuments` rollout remains independent.
3
+
Workbot's **Computer** tab appears after **Documents** when `workbot` and
4
+
`remoteComputers` are enabled for the organization in `/admin`, together with at
5
+
least one of its two views. It opens directly, without a consent screen. The
6
+
combined testing branch also includes Documents; its `workbotDocuments` rollout
7
+
remains independent.
8
+
9
+
Each view is its own rollout (both on `cloud` and `self_hosted`, owned by
10
+
`reachjalil`):
11
+
12
+
| Flag | What Workbot gets | Off |
13
+
|---|---|---|
14
+
|`browserUse` (default off) | The **Browser** view and the `desktop` tool's browser operations. Teaching browser tasks (`browserDemonstrations`) and the page stream (`browserLiveView`) need it too. | No Browser view; the model is offered only the native desktop, and the runner refuses browser calls. |
15
+
|`computerUse`| The **Computer** view and the `desktop` tool's native-app operations (`computer_*`). | No Computer view; the model is offered only the browser, and the runner refuses native-app calls. |
16
+
17
+
Workspaces that had Workbot's computer before the split keep the Computer view
18
+
and get the Browser view once `browserUse` is turned on for them. Workbot tells
19
+
the runner each chat's views (`desktopViews` on the session), taken from Den's
20
+
answer at that moment rather than a cached session. A runner from before the
21
+
split can't limit the views, so a chat allowed only one gets no desktop there
22
+
until the runner is updated; a chat allowed both keeps both.
23
+
Turning a flag off applies to the next viewer connection and the chat's next
24
+
turn; a viewer already open can outlive it as described under Transport and
25
+
rollout. `bash` and `look` are not views: every Workbot chat keeps them while
constwhere=only ? `${only.map((view)=>NAMES[view]).join(" and ")} (view ${only.join(" or ")} only; the organization has not enabled the rest of the desktop)` : "the visible browser and native applications"
12
+
return`Use desktop to work in ${where}. The organization enabled this computer: use it directly when needed. If the person takes control, wait for them to return it before continuing desktop operations.`
13
+
}
14
+
15
+
/**
16
+
* The desktop tool, narrowed to the views this conversation may use: its `view` and `operation` choices list only
17
+
* those, and its description says so first. Unchanged when every view is allowed.
return{output: `Only view ${only.join(" or ")} is available in this conversation. The organization has not enabled the other desktop view.`,isError: true}
session?.desktop&&computer?.desktopTools?.length ? "Use desktop to work in the visible browser and native applications. The organization enabled this computer: use it directly when needed. If the person takes control, wait for them to return it before continuing desktop operations." : "",
0 commit comments