Skip to content

every Bot on a shared computer works on a screen of its own, and can look at another Bot's screen - #385

Merged
hexuria merged 3 commits into
mainfrom
gol/own-screen-default
Oct 11, 2026
Merged

hexuria merged 3 commits into
mainfrom
gol/own-screen-default

Conversation

@hexuria

@hexuria hexuria commented Oct 10, 2026

Copy link
Copy Markdown
Owner

Follows #383. The owner tested with two Bots on one shared computer (Facebook on one, Wikipedia on the other): both Computer panes showed the same page, because #383 kept the shared screen as the default. The owner's call (11 Oct 2026) is that Bots never share a screen.

What changes

  • provision::screen_for: on a computer it shares, a Bot is always Screen::Own(bot), with its own display, browser and profile (hexuria/box box-screen). A computer of its own, and a group's computer, keep their one screen.
  • Removed: the use_own_screen tool, PUT /coworkers/{id}/computer/screen, and its route-map row. Old own-screen rows in computer_sharing are now ignored.
  • opengrok-box docker: when the box has no room for another own screen (409), or runs an image from before own screens (501), that Bot works on the main screen instead of every action failing (or_main_screen).
  • New look_at_screen {bot} in the computer tools row: a picture of another of the person's Bots' screens, by name or id, from that Bot's own screen. It only looks. Only the person's own, non-retired Bots; an unknown name is refused with the names they do have, and a shared name asks for the id.

Tests

  • bots_that_share_a_computer_each_work_on_a_screen_of_their_own replaces the old switch test. Checked that it fails on main: Bea's fill landed on Shared.
  • a_bot_looks_at_another_bots_screen_by_its_name: Ada sees Bea's own screen; "Zed" is refused and no picture is taken.
  • an_own_screen_is_read_from_box_screen: full or old box → main screen; a malformed answer is still an error.
  • fmt, clippy -D warnings, crate-size, full nextest --workspace (1960 passed, via scripts/record-wire.sh); wire corpus re-recorded.

Client half: hexuria/opengrok#210 (drops the pane switch).
Live check on :1447: pending, reported here.

…look at another Bot's screen

The owner's call (11 Oct 2026): Bots that share a computer never share a screen. Each one gets its
own display, browser and Chrome profile on that computer (hexuria/box box-screen), so one Bot's
pages never show on another's. The use_own_screen tool and PUT /coworkers/{id}/computer/screen are
gone; a computer of its own and a group's computer keep their one screen. A computer with no room
for another own screen, or one on an image from before them, leaves that Bot on its main screen
rather than unable to act.

New look_at_screen tool (computer tools row): a picture of another of the person's Bots' screens,
by name or id. It only looks; nothing clicks or types on another Bot's screen.
@hexuria
hexuria force-pushed the gol/own-screen-default branch from 1ef327b to 458cbc6 Compare October 10, 2026 23:22
…tion

Started on first use, a Bot's own screen kept its first action waiting and showed the person a
black screen while it came up. The turn now starts it in the background when the computer is
already up (a computer asleep is not woken for it), through Computer::open_screen, which replaces
close_screen now that no Bot is switched back to a shared screen.
@hexuria
hexuria merged commit 9c0935a into main Oct 11, 2026
6 checks passed
hexuria added a commit that referenced this pull request Oct 13, 2026
main already carries this branch's work as 1097916 (#383's squash) plus
9c0935a's (#385) follow-on — every Bot on a shared computer now gets a
screen of its own without being asked — so the merge answers theirs
everywhere.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant