Open computers from the chat, let bots ask for a take-over, show task progress
- Serve each computer to its owner under /computers/<id>/ (HTTP and websockets proxied to the AIO sandbox) and show it in a shared ComputerView with browser, terminal and code modes, opened from the computers modal or a take-over button in the thread. - ask_user_to_take_over lets a bot hand a computer to the user for a login or captcha; the message gets a take-over button and needs-you, and the viewer hands it back with a chat message. - While a task runs the thread shows "<bot> is working..." with the task's latest step; steps read as plain words, not tool names. - A coordinator with no workers no longer claims to delegate, and bots describe started tasks in the first person. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { describe, expect, test } from "bun:test";
|
||||
import computerRef from "./computer-ref";
|
||||
import linkComputerRefs from "./link-computer-refs";
|
||||
import takeOverRef from "./take-over-ref";
|
||||
|
||||
describe("linkComputerRefs", () => {
|
||||
test("links every computer a message names", () => {
|
||||
@@ -16,4 +17,12 @@ describe("linkComputerRefs", () => {
|
||||
|
||||
expect(linkComputerRefs({ text })).toBe(text);
|
||||
});
|
||||
|
||||
test("links take-over requests", () => {
|
||||
expect(
|
||||
linkComputerRefs({
|
||||
text: `Please log in to Gmail. ${takeOverRef({ id: 3, mode: "browser" })}`,
|
||||
}),
|
||||
).toBe("Please log in to Gmail. [take over](#take-over-3-browser)");
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user