Skip to content

fix(canvas): remove unsupported snapshot delay argument - #117326

Merged
steipete merged 1 commit into
mainfrom
codex/qa400-canvas-unsupported-delay-schema
Aug 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/qa400-canvas-unsupported-delay-schema

Conversation

@steipete

@steipete steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Canvas advertised a snapshot delay argument to models even though its owner never reads or forwards it and no Canvas node implements it. The model could request a delay, receive a successful snapshot, and silently get no requested delay.

Why This Change Was Made

Remove the unsupported argument and its now-unused schema import from the existing Canvas plugin owner. Keep the native snapshot format, maximum width, and quality controls; the separate node camera delay remains supported and unchanged. This deletes two production lines and introduces no fallback or compatibility shim.

User Impact

Models no longer see or request a Canvas capability that cannot work. Existing Canvas snapshots and genuine camera capture delays remain unchanged across Apple, Android, and Linux node contracts.

Evidence

  • Authentic tests-first owner regression: one failing assertion and 15 passing tests on main; the same cache-disabled focused suite then passed all 16 tests.
  • Source-blind exact Git-object product replay used the real lazily registered Canvas plugin, production provider schema normalization, and authenticated localhost Gateway snapshot: unchanged main exposed delayMs to the model and provider while the actual node wire silently omitted it; the immutable candidate exposes no unsupported delay and preserves the real node payload format=png, maxWidth=640, quality=0.75.
  • Both actual product runs authenticated two Gateway WebSocket connections and dispatched one real node.invoke. Native Swift, Android, and strict Linux snapshot contracts contain no delay, while the separate Nodes camera schema, CLI, and payload still do.
  • Four independent hostile P0-P3 reviews found no issues; one complete official Codex gpt-5.6-sol/high strict P0-P3 review with real TruffleHog 3.96 found zero issues (confidence 0.98). Existing oxfmt, oxlint, and git diff --check pass.
  • A full recursive synthetic merge with the separately pushed Canvas invocation-deadline repair succeeds and preserves both fixes. Exact current main: 03698f9; all 24 relevant owner, sibling, caller, Gateway, SDK, native, and documentation blobs are unchanged.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 1, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal backlog priority with limited blast radius. labels Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 1, 2026, 5:28 AM ET / 09:28 UTC.

ClawSweeper review

What this changes

The PR removes the unsupported Canvas snapshot delay parameter from the model-visible tool schema and adds a regression test that verifies only node-supported snapshot controls are advertised.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep this PR open for normal maintainer handling. Current main advertises delayMs to the model but never forwards it in the Canvas snapshot payload; the patch removes that false capability at its owner boundary, preserves the real controls, and includes focused coverage. The protected maintainer label and still-running build require an explicit maintainer merge decision.

Priority: P2
Reviewed head: 2e69b21e9ae3cb34bf529d91da5d505ace04a1de
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) This is a focused owner-boundary correction with direct runtime proof and regression coverage.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body documents an after-fix authenticated Gateway and real node invocation replay, and the GitHub Real behavior proof check is successful.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body documents an after-fix authenticated Gateway and real node invocation replay, and the GitHub Real behavior proof check is successful.
Evidence reviewed 6 items Current schema advertises an unused option: Current main includes delayMs in the model-facing Canvas tool schema, making it eligible for model requests.
Snapshot owner never forwards delay: The only Canvas snapshot payload is built from format, maxWidth, and quality; no delay value is read or sent to canvas.snapshot.
Native Android contract supports only retained controls: Android parses and invokes Canvas snapshots with format, quality, and maxWidth; SnapshotParams has no delay field.
Findings None None.
Security None None.

How this fits together

The Canvas plugin gives models a tool for controlling a paired node canvas. A snapshot request is validated by the plugin, sent through the Gateway to the native node, then returned as an image result for the model.

flowchart LR
  A[Model Canvas request] --> B[Canvas tool schema]
  B --> C[Snapshot payload builder]
  C --> D[Gateway node invocation]
  D --> E[Paired native node]
  E --> F[Encoded snapshot payload]
  F --> G[Model image result]
Loading

Decision needed

Question Recommendation
After the exact-head build completes, should this protected maintainer-labeled Canvas schema correction be approved and merged? Merge after green build: Approve the focused schema correction once the remaining exact-head build check succeeds.

Why: The repair is source-proven and narrowly scoped, but the protected label requires a maintainer to make the final merge decision rather than automated cleanup.

Before merge

  • Resolve merge risk (P1) - The patch is mergeable, but the exact-head build-artifacts check remains in progress and the protected maintainer label requires explicit maintainer handling before merge.
Agent review details

Security

None.

PR surface

Source -2, Tests +14. Total +12 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 1 0 2 -2
Tests 1 14 0 +14
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 14 2 +12

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the Canvas schema restricted to controls its native snapshot payload actually supports, retain the regression assertion, and merge after the exact-head build completes successfully.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Keep the Canvas schema restricted to controls its native snapshot payload actually supports, retain the regression assertion, and merge after the exact-head build completes successfully.

Do we have a high-confidence way to reproduce the issue?

Yes, from current source: delayMs is present in the tool schema but the snapshot dispatcher sends only format, width, and quality. Android's native parser and invocation path likewise define no Canvas snapshot delay field.

Is this the best way to solve the issue?

Yes. Removing the nonexistent parameter in the Canvas tool schema is the narrow owner-boundary repair; adding delay behavior would require a new cross-native capability rather than fixing the current false advertisement.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against afe024e8c799.

Labels

Label changes:

  • add P2: Models can request a Canvas snapshot option that silently has no effect, while the snapshot itself still succeeds.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The PR body documents an after-fix authenticated Gateway and real node invocation replay, and the GitHub Real behavior proof check is successful.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body documents an after-fix authenticated Gateway and real node invocation replay, and the GitHub Real behavior proof check is successful.

Label justifications:

  • P2: Models can request a Canvas snapshot option that silently has no effect, while the snapshot itself still succeeds.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The PR body documents an after-fix authenticated Gateway and real node invocation replay, and the GitHub Real behavior proof check is successful.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body documents an after-fix authenticated Gateway and real node invocation replay, and the GitHub Real behavior proof check is successful.

Evidence

What I checked:

Likely related people:

  • steipete: Current-line provenance shows this contributor introduced the present Canvas tool schema and implementation in the recent feature import. (role: recent area contributor; confidence: high; commits: 7fba71eb7aeb, 9710a1339e3c; files: extensions/canvas/src/tool-schema.ts, extensions/canvas/src/tool.ts, extensions/canvas/src/tool.test.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit 3edbe19 into main Aug 1, 2026
95 of 102 checks passed
@steipete
steipete deleted the codex/qa400-canvas-unsupported-delay-schema branch August 1, 2026 09:44
@steipete

steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to Alix-007/openclaw that referenced this pull request Aug 1, 2026
* origin/main:
  fix(test/ui): prevent shared history pollution (openclaw#117348)
  fix(openrouter): apply image request transport policy (openclaw#117336)
  perf(gateway): skip clean transcript workers (openclaw#117342)
  test(testing): assert relay smoke readiness
  fix(testing): activate relay live smoke transport
  feat(channels): record account lifecycle facts and retire inferred health vocabularies (openclaw#117300)
  fix(canvas): remove unsupported snapshot delay hint (openclaw#117326)
  refactor(agents): fold cache TTL pruning into prompt projection (openclaw#117313)
  fix(canvas): honor paired-node invocation deadlines (openclaw#117316)
  fix(system-agent): make exit-and-run-a-terminal guidance surface-correct (openclaw#114633)
  fix(ai): assistant text blocks are run together on replay (openclaw#115743)
  refactor(agents): canonicalize subagent execution state (openclaw#117267)
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 2, 2026
* origin/main:
  fix(test/ui): prevent shared history pollution (openclaw#117348)
  fix(openrouter): apply image request transport policy (openclaw#117336)
  perf(gateway): skip clean transcript workers (openclaw#117342)
  test(testing): assert relay smoke readiness
  fix(testing): activate relay live smoke transport
  feat(channels): record account lifecycle facts and retire inferred health vocabularies (openclaw#117300)
  fix(canvas): remove unsupported snapshot delay hint (openclaw#117326)
  refactor(agents): fold cache TTL pruning into prompt projection (openclaw#117313)
  fix(canvas): honor paired-node invocation deadlines (openclaw#117316)
  fix(system-agent): make exit-and-run-a-terminal guidance surface-correct (openclaw#114633)
  fix(ai): assistant text blocks are run together on replay (openclaw#115743)
  refactor(agents): canonicalize subagent execution state (openclaw#117267)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant