Skip to content

0.1.32

Choose a tag to compare

@github-actions github-actions released this 20 Nov 21:25
b436cd1

Built from b436cd1: Computer use: review fixes, new user and agent controls, calm UI polish (#8)

  • Close computer-use approval gaps: shell bypasses, false takeover, stray Esc, cross-chat clashes
  • isReadOnlyCommand rejects line breaks, subshells and ${}/{} expansion, and per command the
    flags that write or run things: git branch beyond listing, rg --pre/--hostname-bin, find
    -fprint*/-fls/-okdir, git diff/log/show --output (and its prefixes), tree -o, date -s, file -C,
    hostname with arguments.
  • Answering an approval (ask_approval or a command/file approval) resets the takeover anchor, so
    the mouse moved to click Approve doesn't stop the next action.
  • The approval card's Esc denies only when focus is in the card or nothing else used the key
    (a recording cancel, a dialog, the artifact panel, a selection reply).
  • One reply holds the computer at a time: another chat's computer tools get "the computer is in
    use by another chat", and its Stop no longer cancels the holder's input or approval.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Fix computer-use tool bugs: stable element ids, truncation, host timeouts
  • Element ids are never reused within a run (Windows host and macOS): an id
    from an older list still means the same control or fails as stale. The
    Windows id floor is kept across host restarts. The stale error names
    ui_elements, not ui_tree.
  • ui_elements reads more than it shows and tells the model when the host cut
    the list short, so a miss isn't read as "not there"; counts show "N+".
  • Host calls time out (15 s, 30 s for control reads and search): the call
    fails with a clear error and the Windows host is restarted so the next call
    works. macOS commands are killed after 20 s.
  • Linux doesn't offer ui_elements (Platform.controls = false); the prompt
    no longer names it there.
  • type_text into a text field by id replaces its text on every platform
    (ValuePattern, else select-all and type); the description says so.
  • A new reply forgets the last screenshot, so coordinates need a fresh look.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Fix Show-me misses: acknowledgements, focus, step lines, callout placement
  • A typed "ok, but I can't find it" no longer counts as Done: only a whole-message
    acknowledgement does, and handing over ("ok just do it") reaches the model.
  • teach_step brings the target app back in front of chat-v2 before the spotlight.
  • The collapsed step line and the notch show what a step did and to what, cut to fit.
  • A denied approval is a neutral "Denied" step, not a red failure.
  • The callout is measured and kept on screen: below, above, beside or inside the
    target; a dragged callout unpins when it would cover the next target; long
    lessons keep the count and drop the progress dashes.
  • Horizontal scrolls read left/right; the overlay honours reduced motion; the notch
    dots use the app's accent.
  • render-overlay.ts also renders many steps, tall and full-screen targets, and a
    pinned callout, with glides off for stills.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Computer use: feedback after actions, control state, zoom, hover and modifiers
  • Acting tools (click, type_text, press_keys, scroll, drag, move_mouse) wait
    400 ms and answer with a fresh full screenshot (same 1024 px JPEG), which
    becomes the coordinate frame, plus whether the active window changed and,
    after clicks, typing and keys, the focused control (Windows UIA).
    screenshot: false skips it; a failed follow-up shot is a note, not an error.
  • ui_elements lines carry state: value="…" (fields, combo boxes, sliders,
    documents; never password fields), checked/unchecked/mixed, selected,
    expanded/collapsed, disabled. Windows reads UIA pattern properties in the
    same cached call; macOS AX value/enabled/selected (unverified on a Mac).
  • look_at_screen takes region (pixels of the last full screenshot) and
    captures it at up to the screen's own resolution (max 1024x768). A zoom
    never becomes the click frame; its text gives the mapping back. The pointer
    is drawn into Windows shots (host) and macOS shots (screencapture -C).
  • move_mouse (hover); click takes triple and modifiers (ctrl/shift/alt/cmd),
    held for the click and always released. Wired through Platform for Windows,
    macOS and Linux (xdotool keydown/keyup); Mac and Linux input unverified live.
  • ui_elements takes window (title part or app name) to read another window
    without focusing it, on Windows and macOS.
  • Reads (looks, lists, searches, waits) no longer count toward the 80-call
    cap; they have their own cap of 240.
  • press_keys lists valid key names per platform. Windows accepts punctuation
    (ctrl+/, ctrl+`, alt+[) and ctrl++ / + for plus; macOS rejects unknown key
    words instead of typing them.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Computer use user controls: live steps, callout choices, notch approvals, mode chip
  • Live progress: each computer tool shows in the reply's step list while it runs (quiet
    looks plainly, e.g. "Looking at the screen"), through a new computerDoing event that is
    never saved; the live line goes once the finished step has landed. The notch says it too.
  • The Show-me callout adds "Can't find it" and "Do it for me" beside Done. Presses carry
    the step's wait id, so a stale press can't end the next step; the model gets a plain
    result for each, and "Do it for me" switches the reply to do, as "just do it" does.
  • The notch asks a waiting approval with Approve / Deny. Approve arms after the chat's
    700 ms (APPROVE_ARM_MS, also checked in main), and both resolve through the same call as
    the chat's card, which goes with it.
  • A "Doing it" / "Showing you" chip on a running computer reply; a click switches the
    mode for the rest of that reply (Chat.setComputerMode). The next tool result tells the
    model, and switching to do while a step waits hands that step over.
  • A click step ends when the user clicks inside the spotlight: on Windows the host's new
    "pressed" query reads the button state every 100 ms (GetAsyncKeyState, no hook), and the
    step counts after 600 ms. macOS and Linux have no cheap read, so there only buttons do.
  • While a step waits, the spotlight re-reads its control's rect every second (by element
    id, or what is at the middle of a snapped control of about the same size) and follows it.
  • Unit tests for each; the e2e drives all of them; render-overlay.ts shoots the notch
    approval, including under a MacBook camera housing.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Let the user point at or mark part of the screen for computer use

Point (composer button while computer use is on, Ctrl/Cmd+P, or Point in the
overlay notch) turns the overlay into an input-taking crosshair layer on the
display under the pointer. Hovering highlights the control under it (Windows:
a new host call, pointAt, that looks past chat-v2's own windows); a click marks
a spot or that control, a drag marks a box, Esc / right-click / Cancel ends it.

The mark goes into the next message as two attachments, removed together: a PNG
of the area with the mark drawn in, and a note with the mark in the pixels of a
look_at_screen screenshot of that display (the same frame the computer tools
take), the control and window under it, and screen coordinates. macOS and Linux
have no pointAt, so the note has no control there.

Tests: pointing.test.ts checks the mapping against Control's own, the crop, the
mark and the note; the e2e drives Point through hover, Esc, a second start, a
click on a control and a box with a fake pointAt and capture, and checks the
note reaches the model; render-overlay.ts renders Point light and dark.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Pause computer input while the user points, and keep Point's click out of Show-me

Point (merged from feat/cu-desktop-annotate) turns the overlay into a
full-screen layer that takes every click, and its notch button is there exactly
while a computer reply runs. Merged with user controls and the agent tools,
that clashed in two ways:

  • A reply still acting would click or type into Point's layer (its click would
    even finish the mark). While Point is on, Control refuses input as a takeover
    (the model is told the user took over and waits), a typing run stops at its
    next chunk, and the acting frame goes.
  • The click-to-advance poll reads the button's 'pressed since last read' bit:
    the click that finished a mark on the spotlit control could be read just
    after the overlay let go and end the Show-me step. Presses while pointing,
    and for 400 ms after, don't count.

main/index.ts tells ComputerUse when Point starts and ends. Unit test for both;
the e2e's 'Point never clicked' check now counts only clicks made during Point
(user controls' scripted replies click earlier).

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Polish computer use's UI: one calm ink-and-paper look, no flicker

A shared token file (computer/computer.css) gives the overlay and the chat the same
pills, kbd chips, status dot and dashes, on the app's fonts and colours.

Overlay: the notch is one element that opens into the approval panel and folds
back, at a fixed width; parts main turns off are held 160 ms so flaps don't blink;
a Show-me step glides the same callout and spotlight, with a one-shot ping instead
of an endless pulse; hit rects skip outroing parts and follow transitions. Point's
hint, tags and box use the same ink family.

Chat: the step line rolls each change and the finished count into one slot, never
shows a step live and done at once, and keeps its width; the approval and Show-me
cards are restacked with kbd chips and an arming fill that no longer flashes; the
Stop hint uses kbd chips and folds away with its gap when the reply ends; the mode
chip sits at the far end; Point notes get a crosshair tile and no toast over the
composer.

render-states.ts and render-chat.mjs render every state in both themes at scale 1
and 2, with frame sequences and hit rects, for before/after comparison.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

  • Fix the review of the computer-use polish: arming, holds, drift, ping, notch text

High

  • The Computer line no longer gives way to "Thinking" between tools before the
    first step lands: once up in a reply it stays (keeping the last line) until a
    step is in.
  • Approve arms once per approval, in the notch and the chat's card: both depend
    on the approval's id, not on the state object main sends again on every change.
    render-states.ts and render-chat.mjs now fail if a push mid-arm or after arming
    restarts or undoes it.
  • Under reduced motion there is no fill, so Approve can't look armed while it
    can't be clicked.

Medium

  • The chat's Show-me card is held 200 ms when a step ends, so the next step
    updates it in place.
  • The spotlight's ping grows by a fixed 8 px (outline-offset), after the glide.
  • The callout's grip is one bar; its buttons share one height; it glides only
    once measured, and hangs from its bottom edge above a target.
  • The notch shows three lines of an approval's title and four of its target
    (scrolling past that), with "See all in chat" when it can't show it all; the
    panel stays open between back-to-back approvals.
  • Point's hint under the notch takes its width and left edge; tags stay on screen.
  • Step lines dwell their 200 ms roll and a few frames more: never three deep.

Low

  • One set of notch insets (14/8, camera included), a square-edged fill, no delay
    on the panel's text, a 28 px Point button, 14 px cards everywhere, the accent
    from --cu-accent with a 2 px control highlight, a drawn return key, 200 ms for
    everything at the end of a run, and a 120 ms fade-in for the notch's new text.

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com


Co-authored-by: Claude Opus 5.5 noreply@anthropic.com