Skip to content

chore(doop): sync upstream v0.17.0 into cheese/main (CHE-10872) [merge] - #191

Draft
congvc-bot-x99[bot] wants to merge 269 commits into
cheese/mainfrom
agent/x99-agy-hydrogen/che-10872-42c74b23e7f3
Draft

congvc-bot-x99[bot] wants to merge 269 commits into
cheese/mainfrom
agent/x99-agy-hydrogen/che-10872-42c74b23e7f3

Conversation

@congvc-bot-x99

@congvc-bot-x99 congvc-bot-x99 Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

Status

Draft PR syncing upstream doop tag v0.17.0 (be33cc4aa98dcb3ea6c9cb2158879cc25603c405) into cheese/main (41965fe814e844d49fc58bf56a15e35b1a74aaa1, including #189) at head 8d6b2b43f70313fc1e139905ce829c02b74c3398. Review found unavailable Blacksmith runner labels. This revision restores the base labels in six workflows. Awaiting GitHub Actions CI on Node 26.13.1 and independent review.

Conditions

  • scripts/migration-classify.mjs classifies database migrations 0073 through 0079 as forward-only rather than additive. 0075_component_revisions.sql alters the default on components.history (SET DEFAULT '[]'::jsonb), backfills component_revisions, and uses non-IF NOT EXISTS CREATE TABLE / ADD COLUMN / CREATE UNIQUE INDEX DDL.
  • node scripts/migration-snapshot.mjs server/db/migrations/meta/0072_snapshot.json server/db/migrations/meta/0079_snapshot.json exits 1 (column public.components.history changed (type, nullability or default)).
  • Full Vitest test execution (bun run test) is NOT-RUN locally because this host runs Node 22.23.5 and .node-version requires Node >=26.13.1. Do not merge until CI test shards pass on Node 26.13.1.

Change

  • Merged upstream v0.17.0 (be33cc4aa98dcb3ea6c9cb2158879cc25603c405) and origin/cheese/main (41965fe814e844d49fc58bf56a15e35b1a74aaa1, PR fix: clarify Multica completeness diagnostics (CHE-10356) [squash] #189) across server, MCP, client UI, build scripts, and tests (1126 files changed, 130425 insertions(+), 15945 deletions(-)).
  • Reconciled server/index.ts, server/mcp.ts, server/canvasWrites.ts, server/agentToolShapes.ts, server/resident.ts, server/sharedToolHandlers.ts, server/actions.ts, server/db/persist.ts, server/db/purge.ts, server/pageTools.ts, server/frameLint.ts, and server/screenshot.ts. This combines upstream runCanvasWrite / TOOL_SHAPES / page-level store loading with all fork endpoints and guards:
    • PolicyRefused, defaultWritePageId, durable frame locks, and writeKeyOf
    • expected_updated_at, idempotency_key, version_name, DOOP_MCP_REQUIRE_FENCE, and DOOP_MCP_FEEDBACK_PIGGYBACK
    • client_request_id replay, frameArchive/trash/restore/purge, /api/design-attestations/:id, and HTML-free /pages/:pageId/runs|issue|ledger
    • frameLint, sloplintInput, requirementLedger, paintTiming, frameCulling, and syncAllDesignLinks
  • Preserved fork migrations before upstream 0073_skills through 0079_agent_webhooks. Updated tests/migrationPredecessor.test.ts to expect 34 new migrations (0046 through 0079).
  • Relocated ClientRequestConflictError into shared/comments.ts (re-exported from server/db/persist.ts and server/actions.ts) so Vitest module mocks of persist.ts preserve the error class.
  • Renamed 24 server-booting fork tests from *.test.ts to *.server.test.ts and replaced server.stopped with await server.stop(...) to match v0.17.0 Vitest project configuration.
  • Updated src/components/PagesPanel.tsx to use UI kit primitives (Input, Pressable, rounded-row, text-label) for ESLint compliance. Updated knip.jsonc for documented Hallmark emitters, pinReconcile, tests/fixtures/snapshot-compose/**, and flock.
  • Restored the origin/cheese/main runs-on values for existing jobs in .github/workflows/{ci,desktop,desktop-release,android,ios,ios-release}.yml. Kept upstream setup, knip, and guarded AppArmor changes.

Blast Radius

  • Proof level: 3 (Integration).
  • Static analysis, production bundle build, migration ledger check, and PGlite / parity / lint tests ran on exact head 94921ffcb55eb5ea79e653851f86cd69e542c3b3. Full Node 26.13.1 server and Chromium E2E suites await CI.
  • Touches server HTTP and MCP write paths, database schema (0073..0079), canvas UI components, and CLI/extension builds.
  • A schema or runtime regression would show up in CI migration replay, server integration shards, or live /healthz and canvas write operations. Because 0075_component_revisions.sql leaves components.history intact while setting its default and populating component_revisions, operators should prefer roll-forward fixes over dropping backfilled tables.

Evidence

All checks below ran on exact HEAD 94921ffcb55eb5ea79e653851f86cd69e542c3b3:

  • bun run typecheck: PASS (0 errors).
  • bun run lint: PASS (oxlint --type-aware --deny-warnings . 0 warnings, 0 errors across 1520 files, and eslint . --max-warnings 0 0 warnings, 0 errors).
  • bun run format:check: PASS (All matched files use Prettier code style!).
  • bun run doc-lint: PASS (0 errors, 1 stale-docs warning).
  • bun run knip: PASS (Excellent, Knip found no issues.).
  • bun run --bun build: PASS (doop.mcpb, CLI builds, vite build 2606 modules transformed).
  • MIGRATION_BASE_SHA=41965fe814e844d49fc58bf56a15e35b1a74aaa1 node scripts/migration-ledger-check.mjs: PASS.
  • node scripts/lint-import-boundaries.mjs: PASS (exit 0).
  • python3 scripts/merge-queue-watch.test.py: PASS (19/19 tests).
  • bun test on 11 Vitest-compatible test files (designCompleteness, residentComments, frameLint, migrationGate, migrationClassify, migrationLedgerCheck, forkMigrationOrder, migrationSnapshots, sharedToolHandlers, migrationPredecessor, agentToolParity): PASS (299/299 tests, 7,306 assertions).
  • printf '%s\n' 'chore(doop): sync upstream v0.17.0 into cheese/main (CHE-10872) [merge]' | bunx --bun commitlint: PASS (exit 0).
  • bun run test (vitest): NOT-RUN locally (Host Node 22.23.5 < .node-version 26.13.1). Runs in GitHub Actions CI.

Runner correction verification ran on exact HEAD 8d6b2b43f70313fc1e139905ce829c02b74c3398:

python3 - <<'PY'
import pathlib, subprocess, yaml
names = ("ci", "desktop", "desktop-release", "android", "ios", "ios-release")
for name in names:
    base_text = subprocess.check_output(["git", "show", f"origin/cheese/main:.github/workflows/{name}.yml"], text=True)
    base = yaml.safe_load(base_text)
    head = yaml.safe_load(pathlib.Path(f".github/workflows/{name}.yml").read_text())
    assert all(base["jobs"][job]["runs-on"] == head["jobs"][job]["runs-on"] for job in base["jobs"])
print("Hosted runner comparison: PASS; YAML parse: PASS (6 workflows)")
PY

Output: Hosted runner comparison: PASS; YAML parse: PASS (6 workflows).

Closes CHE-10872

kgoedecke and others added 30 commits November 19, 2026 09:49
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…esign#439)

* perf(canvas): stop restyling the whole page on every pan step

The panel-resize rule `body:has([data-panel-resizing]) *` makes Chromium
re-check body's :has() state whenever a node is inserted anywhere, and a
positive re-check restyles every element on the page. Stage rewrote the zoom
pill's text on every pan step, inserting a text node each time, so every pan
step restyled the whole document.

- key the rule on an attribute the panel sets on <body> while it is dragged
- write the zoom pill's text only when the percentage changes

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

* fix(panel): keep body's resize mark until the last dragged edge is released

Two panel edges can be dragged at once (two fingers). Releasing one cleared
data-panel-resizing on <body> while the other was still dragged, so the
chrome's transitions came back mid-resize. Count the panels being dragged.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
A main and its instances shared Lucide's Component glyph, told apart only by 70% opacity in the
Layers panel and not at all in the Design panel's header. Instances now wear InstanceIcon, a single
hollow diamond as in Figma; mains keep the four-diamond ComponentIcon, as do the Components tab and
the toolbar, which stand for components in general.

The icons carry data-component-icon="main|instance", which the browser tests now find rows by
instead of the opacity class.

Closes doop-design#552
…sign#564)

* fix(canvas): hold transitions still while an edit is applied

A frame update is morphed into the live document, and the Design panel and
resize grips write inline styles, so a design under `transition: all` animated
every edit: the element trailed the pointer during a drag and the outline was
measured mid-transition after an update (doop-design#558).

While the runtime morphs html, applies a style value or holds a style gesture
open, an adopted sheet sets `transition: none` on everything; releasing flushes
style first so lifting it starts no transition. Hover effects and other
interactions keep the design's transitions.

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

* fix(canvas): hold important transitions, and rotation and flip edits

Review on doop-design#564: a design's own `transition: … !important` outranked the
hold's `*` rule on specificity, and Design panel rotation and flip went
through doop:geometry, which applied styles outside the hold.

The hold's rule now sits in a cascade layer, whose !important outranks any
unlayered !important, and the hold moves into applyStyle, so every style the
runtime writes lands at once. An inline !important transition is still out
of reach of a stylesheet.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…oop-design#567)

React renders a pointermove's update in a later task, so measuring straight
after mouse.up() could see the drag one 15px step short (105 instead of
120). Locally it failed 6 of 8 runs; with two animation frames' wait after
the drag, 0 of 8.

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

* feat(canvas): follow same-canvas frame links with modifier-click

Reuse frame and element deep links from authored content in the editor.
Show a pointer for valid destinations and keep ordinary canvas selection intact.

* feat(canvas): follow every link in a frame with ⌘-click

Builds on the modifier-click follow from doop-design#542.

- Link mode only while ⌘ (Ctrl elsewhere) is held: a followable link gets
  a hand cursor and a brand outline; without the chord a link is an
  ordinary layer and a click selects it.
- Every link is followed the way a browser would take it: a frame or page
  of the open canvas moves there, #id scrolls the frame, anything else
  opens in a new tab (mailto/tel in their app). javascript:, data: and
  similar are never followed.
- The frame document wears the canvas's cursor, since the browser can
  show the document's own cursor through the shield (the stray link hand).
- A click on nothing editable ends a text edit, as Escape does; before,
  it only hid the toolbar and left the frame holding pointer and keys.

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

* fix(canvas): open the link under a ⌘-click, and let an element named top win

A web link opened inside the click reused the hovered link, but hover
probes are throttled with no trailing one, so a quick move from one link
to another could open the first. It is reused only when that hover was
answered for the click's own spot; otherwise the frame is asked.

`#top` now scrolls to an element named top when there is one, as a
browser does, and to the top of the document otherwise.

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

* test(canvas): follow the external link in the link test, wait for the dead one's hover

The link test still treated its https link as one that goes nowhere, and
asserted no outline right after clicking past it; inside the hover
throttle the outline could still be the external link's, which failed on
CI. The https link now opens a tab (window.open stubbed) and the dead
link is checked once its own hover has landed.

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

* fix(canvas): keep the frame's cursor in step with the Stage's own changes

The cursor sent into a frame only followed this frame's state. The Stage
also changes its cursor by itself, through its classes: ⌥ turning the
Zoom tool to zoom-out, the Path tool's pen badges, a pan grabbing. The
frame now follows those class changes too.

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

---------

Co-authored-by: baekjosh <352828215+baekjosh@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…op-design#568)

"holds a design's own !important transition while a grip is dragged" read
the transition straight after Esc and mouse.up(); the hold lifts when the
gesture's cancel reaches the frame, a postMessage later, so a Linux run of
shard 3 saw '0s' (1 of 3). The four checks now poll.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…oop-design#569)

* fix(components): refuse an agent write that leaves a <doop-use> open

An agent write that opened a <doop-use> and never closed it was saved: the
engine placed the instance with no slot content, the markup meant for its
slots landed after it, and only an unclosed_use note said so (doop-design#528).

The refusal now comes from the engine's own report on the write path.
prepareFrameHtml takes refuseUnclosed, set for agent actors by createFrame,
updateFrame and a stream's done chunk, and throws WriteRefusedError when the
expansion reports unclosed_use (override markup included). The journal undoes
the write; the MCP tool wrapper, runComponentTool and the resident's tool call
answer with the message. Component templates (create, batch entries, update
incl. find/replace and dry runs) are checked with the same scanner, and
update_instances renders overrides as a whole write.

Streams: a refused done chunk keeps the stream open and restarts its idle
clock. The streaming agent's own mid-stream edit is not refused; another
agent's is refused unless it replaces the design. People's writes keep the
note. The scanner no longer reads <style-chip> as a stylesheet, and skips
</doop-use> text in opaque ranges and names like <doop-user-chip>.

Wording and test cases from doop-design#541.

Co-authored-by: Shrek <122366903+shreyanshkotak@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(components): refuse a streamed override that leaves a <doop-use> open

A stream chunk expands its complete uses non-final, and that carried into
their override markup: an unclosed use in an override's slot stayed raw,
parse5 closed it silently, and the done pass saw balanced markup and saved it.

Override and slot markup is whole by the time it renders, so it now always
expands as a whole write (expandOverride), and its unclosed_use issues are
marked inOverride. An agent's chunk whose own pass reports one is refused at
once (nothing written, the stream kept open and its idle clock restarted),
since no later chunk can close it. A top-level use left open mid-stream is
still allowed. The render option `final` is gone, and update_instances no
longer needs its own `final: true`.

Co-authored-by: Shrek <122366903+shreyanshkotak@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Shrek <122366903+shreyanshkotak@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Naufal Reky Ardhana <rekyardhana029@gmail.com>
…oop-design#278)

* fix(importer): inline imported CSS without expanding $ patterns

String.prototype.replace expands $`, $', $& and $$ in a string
replacement. The importer passed fetched CSS as that string when it
inlined @import rules and when it injected the <style> block after
<head>, so such patterns in a site's CSS pulled other parts of the
stylesheet or document into the frame. Both calls now pass a replacer
function.

* fix(importer): keep $ patterns in the Context.dev base URL

prepareContextHtmlForRendering inserted the <base> tag with a string
replacement, so a final URL or document base containing $`, $', $&
or $$ pasted parts of the document into the href.
…op-design#279)

* fix: keep $ patterns literal in synced and GitHub frame base URLs

Design sync and the GitHub importer added the marker meta and <base>
after <head> with a string replacement, so $`, $', $& or $$ in the
synced page URL or the branch name pasted parts of the document into
the href. Both now pass a replacer function.

* test: drop $& from the GitHub branch name case
…oop-design#280)

wrapRepoHtml put the branch name and the screen's repo directory into
<base href> unescaped, after the HTML sanitizer had run. A " in either
closed the attribute and the rest became real markup in the frame.
…ime now listens (doop-design#573)

doop-design#570 moved the frame runtime's message listener to the capture phase and made
it ignore untrusted events, so the context-menu test's delay hook neither held
doop:html back nor could re-dispatch it. Intercept in the capture phase and
release by posting the held message again from the editor page.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* fix(inspector): always show the frame's HTML editor

"Code" in the frame Inspector was a toggle that looked like a heading, with
no chevron, so the HTML editor was easy to miss. The editor is now always
shown, last in the panel, and "Code" is a plain heading.

Since the editor is always on screen, remote updates to the selected frame
reach it at most every 250ms, the last one always landing: rewriting the
textarea costs the browser ~25ms for a 300KB frame and ~90ms for 1MB.

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

* fix(inspector): pull a skipped HTML update once the editor loses focus

Review on doop-design#565: an update that arrived while the editor had focus, during the
250ms cap, was skipped and never retried, leaving the editor, Copy and Export
on stale HTML. Focus is now state, so leaving the editor re-runs the pull,
unless an edit typed there is still waiting to save.

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

* fix(inspector): never replace an HTML edit that has not saved

Review on doop-design#565: the pull guarded only the 700ms before a typed edit's save
started, so once the request was in flight or had failed, leaving the editor
let a remote update replace the edit. The guard is now the editor's own
unsaved state, 'dirty' from the first keystroke until a save succeeds.

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

* fix(inspector): only the newest HTML edit's save clears its unsaved state

Review on doop-design#565: an older save finishing after a newer edit was typed marked
the editor saved, so leaving it let a remote pull replace the newer edit.
Each edit takes a sequence number and only the newest one's save sets
'saved'.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… starts (doop-design#380) (doop-design#540)

* docs(specs): skills invoked by /handle (doop-design#380)

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

* feat(skills): skills invoked by /handle (doop-design#380)

A workspace (or a person, for their personal canvases) writes a skill once
in settings: a fixed handle, a one-line description and markdown
instructions. Writing /handle in a card, an agent comment or an automation
prompt adds that skill's instructions to the resident run as a system block
after the canvas guidelines, on both the API and harness paths.

- shared/skills.ts: parse limits, skillHandlesIn (paths and URLs are never
  skills), skillsBlock (at most five a run)
- server/skills.ts + /api/skills: per-scope storage mirrored in memory,
  members-only workspace scope, migration 0060
- server/resident.ts: requestedSkillsPrompt keeps the skill a follow-up's
  task or a reply's earlier thread named
- Skills settings card in Workspace -> Agents and Settings -> Doop Agent,
  en and pt-BR

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

* docs(techstack): per-scope tables are dropped with their workspace and account

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

* docs(specs): a / menu and Skills button for skills (doop-design#380)

Every field whose text reaches a run lists the skills it can name, Home's
prompt box included; the composer's Skills button writes the / and its
menu ends with "New skill". The canvas route needs edit, since a
commenter cannot ask an agent for work.

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

* feat(skills): a / menu and Skills button list the canvas's skills where a run starts (doop-design#380)

- useSkillMenu (src/components/SkillMenu.tsx) in the composer, comments,
  replies, automation agent steps and Home's prompt box; Home reads the
  scope it will make the canvas in
- GET /api/canvases/:id/skills (edit role): handles and descriptions, plus
  addIn, the scope this viewer may add a skill to
- the composer's Skills button and "New skill" row; the skills card opens
  its form from ?skill=new once the list shows room, then drops the param

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

* fix(skills): pressing Enter on a lone "New skill" row opens the create form (doop-design#380)

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

* fix(skills): keep a typed "/" in the handle field (doop-design#380)

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

* fix(skills): the / menu refetches per slash and source, and keeps its pick in view (doop-design#380)

- Esc closes only the current "/" menu; the next "/" opens again.
- The list is read again for every new "/" and when the source changes,
  and a list from another canvas or scope is never shown.
- Arrow keys scroll the picked row into view.

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

* feat(skills): an agent's instructions can name /handle skills (doop-design#380)

A team that writes /brand-check into a custom agent's or an edited
built-in's instructions gets that skill on every run of that agent.
Shipped briefs are never scanned.

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

* feat(skills): the / menu in an agent's Instructions (doop-design#380)

Typing / in an agent's Instructions lists the team's skills, so a
handle written there is picked rather than typed, and a typo cannot
silently load nothing. Escape closes the menu first, the form after.

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

* fix(skills): a filename is not a skill, and picking replaces the whole handle (doop-design#380)

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

* fix(skills): the Skills button keeps the next word apart from its "/" (doop-design#380)

With the caret before a word, the button wrote "/" against it, and picking
a skill then took the word for the rest of a handle and deleted it. The
button now writes "/ " when text follows, so the word stays.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
doop-design#449)

* fix(auth): client IP detection behind reverse proxies

* test(auth): verify server auth rate limiting and document header trust

* test(auth): trim client IP tests to what this change owns

Drop the cases that re-test Better Auth's own resolver (and import its
internals), keep the config parsing and the end-to-end per-client limit.

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

* docs(auth): one client IP header, exact proxy addresses

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

---------

Co-authored-by: Kevin Goedecke <kevin.goedecke@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…doop-design#458)

Lower full-frame server export density when Chromium would crop the image. Keep local raster exports at their existing density and capture small layers directly when needed. Report the rendered dimensions and scale in MCP metadata and downloads.
* fix(agents): tell outside agents sharing a name apart

The server identified an MCP agent only by the agent_name it sent, so two
agents with one name on a canvas merged: one presence, and one agent's
set_status or disconnect ended the other's tasks, across accounts too.

An outside agent is now its account, its MCP session and its name, hashed
into an opaque agentKey on the actor, its presence and its tasks
(tasks.agent_key, migration 0060). /mcp stays stateless but hands each
initialize a fresh Mcp-Session-Id that clients send back; a client that
does not is known by its account. Resident roles keep their name as
identity. One owner's same-named agents read "Claude", "Claude 2".

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

* fix(agents): find a task's and a face's frame by agent identity

taskFrameId still looked up a running task's presence and stream by name,
so with two agents called "Claude" a task click could fly to the other
agent's frame. The store also kept only a stream actor's name and colour,
which made locatePresence's identity match miss a streaming outside agent.
Stream actors now keep agentKey, and both lookups match on it.

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

* fix(agents): key outside agents by account and name, not MCP session

PostHog's custom_agent_connected (one per initialize) shows Codex and the
openai-mcp clients starting a session every few seconds and Claude Code in
bursts, so a session-scoped key split one agent into many. The key is now
account + name; one person's same-named agents stay one agent, and the
Mcp-Session-Id minting and the "Claude 2" label go.

Review follow-ups: feedback on an outside agent's task waits a minute for
that agent before any agent may take it; get_feedback and delivered
feedback say whose work it is about; isAgentsTask is the one matching rule;
stream actors pass through whole.

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

* fix(agents): make the resident agents wait for the feedback's agent too

Feedback on an outside agent's task waited a minute for that agent, but the
resident agents skipped the wait and were woken at once, so Doop could take
a reply meant for Claude. The wait now holds for every other agent
(feedbackFor, pendingWorkAgents), and the residents are woken again when it
ends. Also restores PeerAvatars' brand icons, dropped by a revert taken from
a stale local main.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Comments holding `--` and attribute names only HTML allows (`@click`,
`:class`, `x-on:click`) were copied verbatim by the XML serializer, so the
SVG download failed to parse and PNG/JPG fell back to the server render.
Both are dropped before serializing; neither paints anything.

Fixes doop-design#508

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Chrome's autofill and password managers dispatch keydown/keyup events
without a `key`, so every `e.key.toLowerCase()` threw. PostHog shows it
crashing the canvas (Stage.tsx) and the sign-in page (desktop.ts's ⌘W
handler). `pressedKey` reads the key as '' when there is none; the seven
call sites use it, and the frame text runtime guards inline.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…oop-design#579)

withPreview attached the ChatGPT card's data as structuredContent on six
tools for every client. Claude Code, opencode and Codex read
structuredContent in place of content, so get_canvas came back as the card
(frame ids, sizes, image URLs) with no pages, pageId, positions, approval,
components, tokens or notes, and the write tools lost their HUMAN FEEDBACK
and component notes. Agents filed about 40 reports of it in three days.
doop-design#548 stopped offering the card to those clients but still sent its data;
now only a client embedsPreview names gets it.

Refs doop-design#526

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Tile carried transform-gpu and a 6px backdrop blur on the element it clips
with overflow-hidden and a superellipse corner. In Safari 27.3 the tiles
were then left unpainted; removing both fixed it, removing one did not.
Over the flat page the blur was invisible, so both go. Chrome renders the
same.

Closes doop-design#536

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…oop-design#628)

* fix(canvas): place drawn, dropped and pasted layers on whole pixels

At a fractional zoom the pointer's world position landed layers and frames
at positions like 13.05px. Like Figma, a placed layer now lands on whole
design pixels: drawn boxes round corner and size apart (circles stay square),
drawn paths grow their box out to whole pixels so the ink stays put, and
drags, drops, pastes and centred new frames round their position. A layer
move rounds the delta, so a multi-pick keeps its spacing.

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

* fix(canvas): round a layer drag in the gesture, not the runtime's move edit

Align and distribute move layers through the same runtime edit, so rounding
there broke exact centring. The drag rounds its own target instead, and only
on an axis it moved, so a Shift-held axis keeps its value.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 194ee8f4803ae68e727b61b739dc3147e7c191fb)
… sheet cannot be read (doop-design#629)

Tailwind escapes the quotes in classes like [&_svg:not([class*='size-'])]:size-4,
and the component stylesheet reader took the escaped quote for the start of a
string, silently dropping every rule after it. Escapes are now skipped outside
strings too, and a sheet that still cannot be read to the end is reported to the
agent as css_not_read on create_component and update_component.

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

(cherry picked from commit 061252b0baf39695d60d01088177723f2f5630dc)
kgoedecke and others added 30 commits December 1, 2026 23:40
…#870)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…871)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… minutes (#878)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…nd memory (#879)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`bun run knip` (knip.jsonc) runs in CI's lint job and fails on an unused
file, export or dependency, including an export only its own module uses.
The exports nothing else uses lose their `export`, and the declarations
nothing uses at all are deleted. CODESTYLE.md says how to keep something
knip cannot see.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Other canvases for the Doop Agent, source edits at an offset, carried
component bindings, email change, admin workspace adds, ChatGPT sign-in
refreshes, image models through a custom provider, the Claude Plan's
login, shutdown, the memory log, the bench and the minified frame runtime.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comments, specs and tests name the behaviour itself rather than other
products or setups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…had it (doop-design#715)

When a main was resent without its bindings, carryBindings brought a prop's
binding back onto only the first element that had bound it. A label bound as
text and as an aria-label lost the second binding, so instances showed the
main's own aria-label.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The local browser stayed up after the first screenshot until it was recycled
after an hour, which an idle server never reached, holding some 350 MB. The
renderer's idle close was only switched on for a remote browser; a local one
now gets it too, after RENDER_IDLE_CLOSE_MS (2 minutes; 0 keeps it running).
The next render launches it again.

Fixes doop-design#424

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Weekly updates for bun, cargo, swift, gradle and GitHub Actions, minor and
patch grouped per ecosystem. Docker base images stay pinned by hand.

Closes doop-design#691

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
* feat(mcp): let agents create canvas-scoped webhooks

Agents can now set up outbound webhooks over MCP (create_webhook,
list_webhooks, test_webhook, delete_webhook) so a person can have their
agent wire Doop events into n8n, Zapier or CI without visiting Settings.

An agent reads text other people wrote, and a hook keeps sending after the
conversation ends, so agent-made hooks get less reach than a person's:
scoped to one canvas the account edits with durable access, at most three
per canvas, labelled with the agent's name in Settings, and the owner is
emailed when one is made. Account-wide hooks, pausing and secret rotation
stay in Settings. The resident Doop Agent does not get the tools.

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

* fix(mcp): refuse a blank agent name on create_webhook

An empty agent_name was stored as '' and Settings read it as a hook the
person made, hiding that an agent added it. The name is now trimmed,
required and capped at 80 characters, and Settings checks for null.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… on top (doop-design#740)

A drawn shape pressed and dragged without being picked first hid itself and
followed the pointer as a copy floating over the whole canvas, so it jumped in
front of every layer of its frame for the drag, and the copy (z-40) covered the
snap guides (z-25) it lined up with.

Over its own frame the shape now moves in place, as a layer, keeping its place
in the stacking, as Figma does; only once the pointer leaves the frame does it
float as a copy, and a release there lands it in the frame under the pointer or
on the canvas through moveDrawing. Snap guides paint above that copy.

Closes doop-design#669

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… tokens (doop-design#719)

* feat(mcp): list and disconnect OAuth-connected agents, rotate refresh tokens

Settings → Agent keys gains a Connected agents card: every MCP client the
person approved over OAuth that still holds a live token, with when it was
connected and last used, and a Disconnect that deletes the person's token
rows and consent for that client. A refresh token now stops working a
minute after it is traded for a new one.

Closes doop-design#647

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

* fix(settings): put Agent keys above Connected agents, unplug icon on Disconnect

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

* fix(mcp): keep a retired token row while its access token works, test rotation end to end

The daily prune read only the refresh expiry, so a row whose refresh token
was retired by rotation could be deleted while its access token still had
most of its hour. It now waits for both. MCP_REFRESH_GRACE_MS makes the grace
configurable, so the server test sees a traded refresh token refused through
the real token endpoint, and fails when the rotation hook is not wired.

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

* revert(mcp): drop the MCP_REFRESH_GRACE_MS setting

It existed only so a server test could wait out a two-second grace; the
one-minute grace is a constant again. The prune fix stays.

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

* refactor(mcp): move refresh-token rotation out of this PR

The issue's ask is listing and disconnecting OAuth-connected agents.
Rotation changes sign-in behaviour for every connected agent and is
optional there, so it goes to its own PR.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…design#741)

* feat(canvas): resize, squish and crop pasted images like Figma

A pasted image now answers its grips the way Figma's do:
- a plain drag keeps its proportions and scales the whole picture
- ⌃ (Mac) squishes it, from any grip
- ⌘ (Ctrl elsewhere) crops it: the picture stays put on the canvas
  while the edges cut it or uncover more
- ⌥ resizes any frame from its centre

While dragging, a plain <img> over the frame shows each move and the
markup is written once at the release, so the drag never waits on the
frame's document.

Closes doop-design#654

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

* fix(canvas): crop turned images in place and keep how an image fits its picture

- a crop is worked out in the frame's own axes, so a turned image's
  picture stays put
- a plain drag (proportions locked) and a crop no longer switch the
  image to object-fit: cover; only a squish stretches the picture, over
  the box it is actually drawn in, for every object-fit
- that box is asked for on each move until the picture's size has
  loaded, instead of being locked in on the first move
- the drag preview carries the image's own styles (opacity, corner
  radius, filters)

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

* feat(canvas): a ratio-locked edge drag grows about the opposite edge's centre

Pulling an edge grip with the proportions kept (Shift, or a pasted
image's locked ratio) changes the other axis too; it now grows or
shrinks evenly about the centre of the opposite edge, as in Figma,
instead of from that edge's first corner.

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

---------

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

* fix(desktop): build the Chromium shell on macOS from bun run dev and build

macOS ships only the Tauri 3 Chromium shell, but desktop's dev and build
scripts still ran the Tauri 2 WebKit shell there, which panics at launch
(state() called before manage() while building the menu). Route both
scripts through scripts/tauri.mjs, which picks src-tauri-chromium on
macOS and src-tauri elsewhere, and point the docs at it.

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

* docs(desktop): point macOS builds at the Chromium shell

Drop the platform script: the README now says to use dev:chromium and
build:chromium on macOS, since dev and build run the Tauri 2 shell,
which ships only on Windows and Linux and quits at launch on macOS.

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

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
#	tests/requirementLedgerAttest.server.test.ts

This branch has not been deployed

No deployments
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.