Skip to content

feat(discord): add canvas-first Discord Activities support - #65205

Open
thewilloftheshadow wants to merge 1 commit into
mainfrom
shadow/a2ui-discord
Open

thewilloftheshadow wants to merge 1 commit into
mainfrom
shadow/a2ui-discord

Conversation

@thewilloftheshadow

Copy link
Copy Markdown
Member

Summary

Describe the problem and fix in 2–5 bullets:

If this PR fixes a plugin beta-release blocker, title it fix(<plugin-id>): beta blocker - <summary> and link the matching Beta blocker: <plugin-name> - <summary> issue labeled beta-blocker. Contributors cannot label PRs, so the title is the PR-side signal for maintainers and automation.

  • Problem: Discord Activity launch/setup in OpenClaw required brittle manual component payloads, had weak agent guidance, and failed command deploys when Discord required retaining the Entry Point command.
  • Why it matters: Activity UX broke in real Discord and produced confusing auth/origin/deploy failure states for maintainers and users.
  • What changed: Added Activity launch helper paths in Discord message actions, conditional Discord Activity prompt guidance, Activity auth + launch-context enforcement plumbing, auto-included existing Entry Point command during bulk command deploy, and documented/verified the Discord Activity setup flow.
  • What did NOT change (scope boundary): No new standalone backend OAuth exchange endpoint was added; OAuth exchange remains app/backend-owned.

Change Type (select all)

  • Bug fix
  • Feature
  • Refactor required for the fix
  • Docs
  • Security hardening
  • Chore/infra

Scope (select all touched areas)

  • Gateway / orchestration
  • Skills / tool execution
  • Auth / tokens
  • Memory / storage
  • Integrations
  • API / contracts
  • UI / DX
  • CI/CD / infra

Linked Issue/PR

  • Closes #N/A
  • Related #N/A
  • This PR fixes a bug or regression

Root Cause (if applicable)

For bug fixes or regressions, explain why this happened, not just what changed. Otherwise write N/A. If the cause is unclear, write Unknown.

  • Root cause: Discord Activity launch assumptions diverged from Discord runtime behavior (root launch path + Entry Point command requirements), and OpenClaw lacked resilient deploy/request handling around those constraints.
  • Missing detection / guardrail: No deploy-time guard to retain an existing Entry Point command in global bulk updates, and insufficient prompt/runtime guidance for Activity-vs-node canvas routing.
  • Contributing context (if known): Discord iframe/origin constraints and launch metadata requirements were not first-class in the earlier flow.

Regression Test Plan (if applicable)

For bug fixes or regressions, name the smallest reliable test coverage that should catch this. Otherwise write N/A.

  • Coverage level that should have caught this:
    • Unit test
    • Seam / integration test
    • End-to-end test
    • Existing coverage already sufficient
  • Target test or file:
    • extensions/discord/src/monitor/provider.test.ts
    • src/gateway/server.canvas-auth.test.ts
    • src/agents/system-prompt.test.ts
    • src/agents/system-prompt-params.test.ts
    • src/canvas-host/server.test.ts
  • Scenario the test should lock in: Entry Point command retention in bulk deploy, default launch-context enforcement behavior, and explicit Discord Activity prompt/runtime helpers.
  • Why this is the smallest reliable guardrail: These files cover the exact seams where the regressions happened (deploy adapter, gateway auth gate, prompt/runtime injection, canvas host script injection).
  • Existing test that already covers this (if any): Expanded/updated tests above include new and adapted assertions.
  • If no new test is added, why not: N/A

User-visible / Behavior Changes

List user-visible changes (including defaults/config).
If none, write None.

  • Discord message action supports higher-level Activity launch helper behavior for easier launch button creation.
  • Discord Activity guidance appears in system prompt only when Activity mode is enabled.
  • canvasHost.activity.requireLaunchContext is now treated as default-on (true unless explicitly false).
  • Canvas-hosted pages expose window.OpenClaw.discord / window.openclawDiscord helper APIs (lazy SDK load).
  • Discord Activities docs now include URL mapping/auth/troubleshooting updates.

Diagram (if applicable)

For UI changes or non-trivial logic flows, include a small ASCII diagram reviewers can scan quickly. Otherwise write N/A.

Before:
[launch-activity button] -> [Discord opens /] -> [gateway root/control-ui or auth mismatch] -> [failure]

After:
[launch-activity button] -> [Discord opens mapped /__openclaw__/canvas] -> [activity auth + launch-context checks] -> [canvas loads]
                         \-> [bulk command deploy] -> [auto-include existing Entry Point command] -> [deploy succeeds]

Security Impact (required)

  • New permissions/capabilities? (Yes/No) No
  • Secrets/tokens handling changed? (Yes/No) Yes
  • New/changed network calls? (Yes/No) Yes
  • Command/tool execution surface changed? (Yes/No) Yes
  • Data access scope changed? (Yes/No) No
  • If any Yes, explain risk + mitigation:
    • Activity token/cookie and launch-context checks changed to tighten activity-scope access; default launch-context enforcement reduces accidental direct-open exposure.
    • Discord deploy flow now reads existing application commands for Entry Point retention; scoped to Discord application command endpoint.
    • Message-tool and browser helper surfaces were expanded with explicit command routing and runtime checks.

Repro + Verification

Environment

  • OS: macOS
  • Runtime/container: local OpenClaw runtime (Node 22+)
  • Model/provider: N/A
  • Integration/channel (if any): Discord
  • Relevant config (redacted): canvasHost.activity.enabled=true, canvasHost.activity.requireLaunchContext=true, Discord account configured

Steps

  1. Configure Discord Activity URL mapping and OpenClaw activity settings.
  2. Launch via Discord launch-activity button and observe canvas/auth behavior.
  3. Start Discord provider and verify native command deploy behavior when Entry Point command exists.

Expected

  • Activity launches to canvas route and passes intended auth gates.
  • Native command deploy retains Entry Point command and does not fail with 50240.

Actual

  • Verified in updated tests and runtime flow for this branch.

Evidence

Attach at least one:

  • Failing test/log before + passing after
  • Trace/log snippets
  • Screenshot/recording
  • Perf numbers (if relevant)

Human Verification (required)

What you personally verified (not just CI), and how:

  • Verified scenarios:
    • Ran targeted tests covering deploy flow, gateway auth flow, prompt/runtime guidance, and canvas helper injection.
  • Edge cases checked:
    • Default-on launch-context enforcement and explicit opt-out behavior.
    • Entry Point command retention path and 50240 handling path.
  • What you did not verify:
    • Full live Discord OAuth backend token-exchange endpoint flow (out of scope for this PR).

Review Conversations

  • I replied to or resolved every bot review conversation I addressed in this PR.
  • I left unresolved only the conversations that still need reviewer or maintainer judgment.

If a bot review conversation is addressed by this PR, resolve that conversation yourself. Do not leave bot review conversation cleanup for maintainers.

Compatibility / Migration

  • Backward compatible? (Yes/No) Yes
  • Config/env changes? (Yes/No) Yes
  • Migration needed? (Yes/No) No
  • If yes, exact upgrade steps:
    • N/A

Risks and Mitigations

List only real risks for this PR. Add/remove entries as needed. If none, write None.

  • Risk: Discord deploy behavior differs across app setups with unusual Entry Point metadata.
    • Mitigation: Entry Point payload is sourced from Discord's existing command record and included only when missing from outgoing bulk payload.
  • Risk: Launch-context default-on may block intentionally direct/manual canvas opens for activity mode.
    • Mitigation: Explicit opt-out via canvasHost.activity.requireLaunchContext=false.

@thewilloftheshadow
thewilloftheshadow requested a review from a team as a code owner April 12, 2026 06:31
@aisle-research-bot

aisle-research-bot Bot commented Apr 12, 2026 •

Copy link
Copy Markdown

🔒 Aisle Security Analysis

We found 4 potential security issue(s) in this PR:

# Severity Title
1 🟠 High Unauthenticated access to Canvas/A2UI endpoints when activity mode enabled without token
2 🟠 High Remote third-party dynamic import in injected Canvas script enables supply-chain script execution
3 🟡 Medium Unbounded A2UI activity broadcast and state retention enables memory/CPU denial of service
4 🟡 Medium Activity token exposed over non-TLS WebSocket when page served via HTTP
1. 🟠 Unauthenticated access to Canvas/A2UI endpoints when activity mode enabled without token
Property Value
Severity High
CWE CWE-306
Location src/gateway/server/http-auth.ts:78-88

Description

authorizeCanvasRequest short-circuits normal gateway authentication for Canvas/A2UI HTTP + WebSocket endpoints when canvasHost.activity.enabled is true and isCanvasActivityAccessAllowed() returns true.

  • isCanvasActivityAccessAllowed() returns true with no token configured (i.e., activity.token unset/blank) as long as the request appears to have a “Discord activity launch context”.
  • The “launch context” check only verifies that certain query parameters (instance_id, frame_id, platform) are present (or a cookie/referer containing them), which can be trivially spoofed by an external attacker.
  • Result: when activity is enabled but no token is configured (or if requireLaunchContext is disabled), an unauthenticated client can access Canvas/A2UI endpoints (including the new A2UI activity WS) and potentially receive UI/state updates.

Vulnerable code:

​// authorizeCanvasRequest() returns ok before bearer/capability auth
if (isActivityCanvasRequest && isCanvasActivityAccessAllowed(params.activity, req)) {
  return { ok: true };
}

​// isCanvasActivityAccessAllowed(): no token => allow
const configuredToken = activity.token?.trim();
if (!configuredToken) {
  return true;
}

Recommendation

Require a cryptographically strong secret (token) or a verifiable signed assertion for all activity-mode access; do not treat presence of query params as authorization.

Options:

  1. Make activity.token mandatory when activity.enabled (recommended) and fail closed otherwise.
  2. If Discord launch context must be accepted without a token, validate it using Discord-provided signed data (e.g., JWT/interaction signature) rather than just instance_id/frame_id/platform.

Example (fail-closed without token):

export function isCanvasActivityAccessAllowed(activity: CanvasHostActivityConfig | undefined, req: IncomingMessage) {
  if (!activity?.enabled) return false;

  const configuredToken = activity.token?.trim();
  if (!configuredToken) return false; // fail closed

  if (activity.requireLaunchContext !== false && !hasDiscordActivityLaunchContext(req)) {
    return false;
  }

  return resolveActivityToken(req) === configuredToken;
}

Also ensure the A2UI activity WebSocket path is protected by the same robust auth mechanism.

2. 🟠 Remote third-party dynamic import in injected Canvas script enables supply-chain script execution
Property Value
Severity High
CWE CWE-829
Location src/canvas-host/a2ui.ts:169-176

Description

The Canvas HTML injection (injectCanvasLiveReload) introduces a Discord helper that dynamically imports JavaScript from third-party CDNs at runtime:

  • Loads @​discord/embedded-app-sdk from cdn.jsdelivr.net with a fallback to esm.sh.
  • The code is executed in the Canvas page origin, so a compromised CDN response (or malicious dependency resolution) can execute arbitrary JS with the page's privileges.
  • There is no Subresource Integrity (SRI) / pinning to a specific version+hash, and no restrictive CSP shown in the canvas host response handling.

Vulnerable code:

sdkModule = await import("https://cdn.jsdelivr.net/npm/@​discord/embedded-app-sdk/+esm");
​// fallback
sdkModule = await import("https://esm.sh/@​discord/embedded-app-sdk");

Recommendation

Avoid runtime-loading executable code from third-party CDNs in production.

Recommended fixes (pick one):

  1. Bundle and pin the SDK as a normal dependency and import it locally:
import { DiscordSDK } from "@​discord/embedded-app-sdk";
​// ... use DiscordSDK without remote import
  1. If external loading is unavoidable, pin an exact version and enforce a restrictive CSP that limits script sources to trusted hosts, plus consider a server-side proxy that you control. (Note: SRI is not available for import() in the same way as <script> tags.)

Also ensure injectCanvasLiveReload() is disabled in production (e.g., liveReload: false by default outside development).

3. 🟡 Unbounded A2UI activity broadcast and state retention enables memory/CPU denial of service
Property Value
Severity Medium
CWE CWE-400
Location src/gateway/a2ui-activity.ts:240-244

Description

The A2UI activity hub broadcasts arbitrary JSONL/JSON messages to every connected WebSocket client and retains the last payload in memory without any size limits or backpressure handling.

  • broadcastPush() stores lastJsonl = jsonl with no maximum length check, so a single oversized message can consume large memory.
  • The message is then sent to all connected clients via ws.send(JSON.stringify(payload)) with no per-connection backpressure/queue checks, potentially causing event loop stalls and high memory usage when many clients are connected or clients are slow.
  • node.invoke can trigger broadcasts (canvas.a2ui.pushJSONL, canvas.a2ui.push) and will JSON.stringify(message) on an arbitrary object, allowing very large payload generation.

Vulnerable code:

​// a2ui-activity.ts
broadcastPush: (jsonl: string) => {
  lastJsonl = jsonl;
  lastUpdatedAt = Date.now();
  broadcast({ type: "a2ui.push", jsonl, updatedAt: lastUpdatedAt });
}

​// nodes.ts
if (message && typeof message === "object") {
  context.a2uiActivityHub.broadcastPush(JSON.stringify(message));
}

Recommendation

Add explicit limits and backpressure handling:

  • Enforce a maximum payload size (e.g., 64KB/256KB) for jsonl and for canvas.a2ui.push messages before stringifying/sending.
  • Consider truncating stored lastJsonl or storing only a bounded ring buffer rather than the full last payload.
  • Implement per-client backpressure checks (ws.bufferedAmount) and drop/terminate slow clients.
  • Add rate limiting on broadcast-triggering commands.

Example size + backpressure guard:

const MAX_ACTIVITY_BYTES = 256 * 1024;

function safeSend(ws: WebSocket, data: string) {
  if (ws.readyState !== ws.OPEN) return;
  if (ws.bufferedAmount > MAX_ACTIVITY_BYTES) {
    ws.terminate();
    return;
  }
  ws.send(data);
}

broadcastPush: (jsonl: string) => {
  if (Buffer.byteLength(jsonl, 'utf8') > MAX_ACTIVITY_BYTES) return;
  lastJsonl = jsonl;
  lastUpdatedAt = Date.now();
  const data = JSON.stringify({ type: 'a2ui.push', jsonl, updatedAt: lastUpdatedAt });
  for (const ws of clients) safeSend(ws, data);
}

Also apply similar checks in nodes.ts before JSON.stringify(message) (e.g., validate schema and size).

4. 🟡 Activity token exposed over non-TLS WebSocket when page served via HTTP
Property Value
Severity Medium
CWE CWE-319
Location src/canvas-host/a2ui/index.html:325-330

Description

The A2UI activity bridge in a2ui/index.html builds the WebSocket URL using ws:// whenever the page is loaded over HTTP, and includes activityToken in the query string:

  • If the Canvas/A2UI page is served over plain HTTP (misconfiguration, local network, reverse-proxy mistake), the token is transmitted in cleartext over the network via ws://.../?activityToken=....
  • Query-string tokens are also prone to leakage via logs, intermediaries, and browser history.

Vulnerable code:

const proto = window.location.protocol === "https:" ? "wss" : "ws";
const query = activityToken ? `?activityToken=${encodeURIComponent(activityToken)}` : "";
const wsUrl = `${proto}://${window.location.host}/__openclaw__/a2ui/ws${query}`;

Recommendation

Require TLS for any authenticated activity bridge and avoid putting tokens in the URL.

  • Fail closed on HTTP (do not connect):
if (window.location.protocol !== "https:") {
  console.warn("A2UI activity bridge requires HTTPS/WSS");
  return;
}
const wsUrl = `wss://${window.location.host}/__openclaw__/a2ui/ws`;
  • Pass the token via a more protected channel (e.g., Sec-WebSocket-Protocol, an Authorization header via a fetch-based token exchange, or an HTTP-only secure cookie set server-side).

  • Ensure the server enforces HTTPS and sets Strict-Transport-Security (HSTS) when applicable.


Analyzed PR: #65205 at commit 89b8977

Last updated on: 2026-04-12T06:54:20Z

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: discord Channel integration: discord gateway Gateway runtime scripts Repository scripts agents Agent runtime and tooling size: XL maintainer Maintainer-authored PR labels Apr 12, 2026
@blacksmith-sh

blacksmith-sh Bot commented Apr 12, 2026 •

Copy link
Copy Markdown
Contributor

Found 1 test failure on Blacksmith runners:

Failure

Test View Logs
gateway-watch-regression invalid local run: dirty watched source tree would force a reb
uild inside the watch window/
gateway-watch-regression invalid local run: dirty watched source tree would force a reb
uild inside the watch window
View Logs

Fix in Cursor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 64ee279552

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +39 to +42
return DISCORD_ACTIVITY_LAUNCH_QUERY_KEYS.some((key) => {
const raw = url.searchParams.get(key);
return typeof raw === "string" && raw.trim().length > 0;
});

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Reject spoofed launch markers before granting activity auth bypass

hasDiscordActivityLaunchContext treats any non-empty instance_id, frame_id, or platform query param as trusted launch context, and authorizeCanvasRequest uses that result to allow unauthenticated canvas access when activity mode is enabled. In deployments without an activity.token (the documented optional default), an external caller can bypass gateway auth by appending one of these parameters to /__openclaw__/canvas or /__openclaw__/ws, so launch-context enforcement is trivially spoofable.

Useful? React with 👍 / 👎.

Comment thread src/canvas-host/a2ui.ts
Comment on lines +202 to +206
} catch (error) {
state.error = error instanceof Error ? error.message : String(error);
state.ready = false;
state.sdk = undefined;
throw error;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reset failed Discord SDK load promise to permit retries

When OpenClaw.discord.load() fails once (for example a transient CDN failure or ready() timeout), the rejected promise is kept in state._loadPromise and never cleared. Subsequent calls re-await the same rejected promise, so the helper cannot recover without a full page reload even if connectivity returns.

Useful? React with 👍 / 👎.

@greptile-apps

greptile-apps Bot commented Apr 12, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds canvas-first Discord Activities support: an activityLaunchButton shorthand for the Discord message tool, launch-activity button action handling in the component dispatch layer, automatic Entry Point command retention during bulk deploys (preventing Discord 50240 errors), a new A2uiActivityHub WebSocket broadcast layer, Discord launch-context + activity-token auth gating for canvas routes (default-on), and a window.OpenClaw.discord SDK helper injected into canvas pages. System prompt guidance for Activity canvas is conditionally shown only when canvasHost.activity.enabled is true.

All P2 findings; the two substantive ones are the === token comparison (should use safeEqualSecret for consistency with other gateway token checks) and unconditional empty strings in buildDiscordActivityCanvasSection that produce extra blank lines in the prompt.

Confidence Score: 5/5

Safe to merge; all findings are P2 style/hardening suggestions that do not affect correctness or security in a blocking way.

The auth flow (launch-context cookies, activity token gating, Entry Point retention) is logically correct and well-tested. Both open findings are best-practice improvements (constant-time comparison, filtering empty prompt strings) rather than bugs. Test coverage across the key seams is solid.

src/gateway/a2ui-activity.ts (token comparison) and src/agents/system-prompt.ts (empty strings in section builder).

Security Review

  • Timing side-channel on activity token comparison (src/gateway/a2ui-activity.ts line 154, src/gateway/server-http.ts cookie-setting block): the activity token is compared with === rather than safeEqualSecret. Low practical risk given network jitter, but inconsistent with how gateway bearer tokens are compared.
  • Activity token readable from Referer header (src/gateway/a2ui-activity.ts resolveActivityToken): the token lookup falls back to parsing the Referer URL. Intended for Discord iframe sub-requests, but means a token that has leaked into a URL could be forwarded to the gateway by the browser automatically. Risk is bounded because an attacker already needs to know the token value.
  • No new secrets stored insecurely; activity token is marked sensitive in the Zod schema and the cookie is set HttpOnly; SameSite=Lax.
  • No injection or XSS vectors introduced in the canvas host or system prompt sections.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: src/gateway/a2ui-activity.ts
Line: 154

Comment:
**Activity token compared with `===` instead of `safeEqualSecret`**

`isCanvasActivityAccessAllowed` compares the activity token with `===`, which is vulnerable to timing side-channels. `safeEqualSecret` is already imported and used in the surrounding gateway auth code for the bearer token — using it here too would keep the token-comparison surface consistent and safe.

```suggestion
  return safeEqualSecret(resolveActivityToken(req) ?? "", configuredToken);
```

(You'll also need to import `safeEqualSecret` into `a2ui-activity.ts`, or expose the comparison through the existing `http-auth.ts` call-site that already imports it.) The same plain `===` appears in the cookie-setting block in `server-http.ts` (`queryActivityToken?.trim() === configuredActivityToken`) and is worth fixing there too.

How can I resolve this? If you propose a fix, please make it concise.

---

This is a comment left during a code review.
Path: src/agents/system-prompt.ts
Line: 367-373

Comment:
**Unconditional empty strings add spurious blank lines to the prompt**

When `discordActivityTokenRequired` and/or `discordActivityRequireLaunchContext` are falsy, the array gets empty-string entries that, combined with the intentional trailing `""`, produce two or three consecutive blank lines in the assembled system prompt (extra wasted tokens). Filtering them out keeps the section clean:

```suggestion
    ...(params.runtimeInfo.discordActivityTokenRequired
      ? ["- Activity token auth is enabled; direct opens without the configured token are rejected."]
      : []),
    ...(params.runtimeInfo.discordActivityRequireLaunchContext
      ? ["- Launch-context enforcement is enabled; direct opens outside Discord Activity launch context are rejected."]
      : []),
    "",
```

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "feat(discord): add canvas-first Discord ..." | Re-trigger Greptile

if (!configuredToken) {
return true;
}
return resolveActivityToken(req) === configuredToken;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 security Activity token compared with === instead of safeEqualSecret

isCanvasActivityAccessAllowed compares the activity token with ===, which is vulnerable to timing side-channels. safeEqualSecret is already imported and used in the surrounding gateway auth code for the bearer token — using it here too would keep the token-comparison surface consistent and safe.

Suggested change
return resolveActivityToken(req) === configuredToken;
return safeEqualSecret(resolveActivityToken(req) ?? "", configuredToken);

(You'll also need to import safeEqualSecret into a2ui-activity.ts, or expose the comparison through the existing http-auth.ts call-site that already imports it.) The same plain === appears in the cookie-setting block in server-http.ts (queryActivityToken?.trim() === configuredActivityToken) and is worth fixing there too.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/gateway/a2ui-activity.ts
Line: 154

Comment:
**Activity token compared with `===` instead of `safeEqualSecret`**

`isCanvasActivityAccessAllowed` compares the activity token with `===`, which is vulnerable to timing side-channels. `safeEqualSecret` is already imported and used in the surrounding gateway auth code for the bearer token — using it here too would keep the token-comparison surface consistent and safe.

```suggestion
  return safeEqualSecret(resolveActivityToken(req) ?? "", configuredToken);
```

(You'll also need to import `safeEqualSecret` into `a2ui-activity.ts`, or expose the comparison through the existing `http-auth.ts` call-site that already imports it.) The same plain `===` appears in the cookie-setting block in `server-http.ts` (`queryActivityToken?.trim() === configuredActivityToken`) and is worth fixing there too.

How can I resolve this? If you propose a fix, please make it concise.

Comment on lines +367 to +373
params.runtimeInfo.discordActivityTokenRequired
? "- Activity token auth is enabled; direct opens without the configured token are rejected."
: "",
params.runtimeInfo.discordActivityRequireLaunchContext
? "- Launch-context enforcement is enabled; direct opens outside Discord Activity launch context are rejected."
: "",
"",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Unconditional empty strings add spurious blank lines to the prompt

When discordActivityTokenRequired and/or discordActivityRequireLaunchContext are falsy, the array gets empty-string entries that, combined with the intentional trailing "", produce two or three consecutive blank lines in the assembled system prompt (extra wasted tokens). Filtering them out keeps the section clean:

Suggested change
params.runtimeInfo.discordActivityTokenRequired
? "- Activity token auth is enabled; direct opens without the configured token are rejected."
: "",
params.runtimeInfo.discordActivityRequireLaunchContext
? "- Launch-context enforcement is enabled; direct opens outside Discord Activity launch context are rejected."
: "",
"",
...(params.runtimeInfo.discordActivityTokenRequired
? ["- Activity token auth is enabled; direct opens without the configured token are rejected."]
: []),
...(params.runtimeInfo.discordActivityRequireLaunchContext
? ["- Launch-context enforcement is enabled; direct opens outside Discord Activity launch context are rejected."]
: []),
"",
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/agents/system-prompt.ts
Line: 367-373

Comment:
**Unconditional empty strings add spurious blank lines to the prompt**

When `discordActivityTokenRequired` and/or `discordActivityRequireLaunchContext` are falsy, the array gets empty-string entries that, combined with the intentional trailing `""`, produce two or three consecutive blank lines in the assembled system prompt (extra wasted tokens). Filtering them out keeps the section clean:

```suggestion
    ...(params.runtimeInfo.discordActivityTokenRequired
      ? ["- Activity token auth is enabled; direct opens without the configured token are rejected."]
      : []),
    ...(params.runtimeInfo.discordActivityRequireLaunchContext
      ? ["- Launch-context enforcement is enabled; direct opens outside Discord Activity launch context are rejected."]
      : []),
    "",
```

How can I resolve this? If you propose a fix, please make it concise.

@openclaw-barnacle openclaw-barnacle Bot removed the scripts Repository scripts label Apr 12, 2026
@clawsweeper clawsweeper Bot mentioned this pull request May 22, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Jun 14, 2026
@clawsweeper

clawsweeper Bot commented Jun 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed July 31, 2026, 7:14 AM ET / 11:14 UTC.

ClawSweeper review

What this changes

The branch adds Discord Activity launch buttons, a Canvas/A2UI Activity bridge and authorization path, Discord command-deploy handling, configuration, tests, and Discord Activities documentation.

Merge readiness

⛔ Blocked by patch quality or review findings - 19 items remain

Keep this maintainer-authored, maintainer-labeled PR open for explicit owner review. Current main does not implement Discord Activity support, but the branch still bypasses the Gateway’s existing Canvas authentication using spoofable request markers, adds Discord-specific policy to core, loads executable SDK code from public CDNs, exposes tokens in URLs, and fans unbounded A2UI payloads out to WebSocket clients.

Priority: P1
Reviewed head: 89b897744353f2f89428fd61b8b60830c20f1044
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) The idea has useful Discord UX intent, but the current patch is not merge-ready because it changes a Gateway security boundary and core/plugin ownership model with blocking defects.
Proof confidence 🌊 off-meta tidepool Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; nevertheless, the PR body supplies no inspectable redacted live Discord Activity run, and that proof is still needed for this security-sensitive feature decision.
Patch quality 🧂 unranked krab (1/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; nevertheless, the PR body supplies no inspectable redacted live Discord Activity run, and that proof is still needed for this security-sensitive feature decision.
Evidence reviewed 7 items Current main preserves Gateway authentication for Canvas: At current main, Canvas and A2UI requests accept a bearer token or an existing authorized Canvas capability; there is no Discord Activity bypass. The PR adds an early allow result before those checks.
Current main has no proposed Activity bridge: Current main defines only the Canvas, Canvas WebSocket, and A2UI paths; it has no Activity WebSocket path or injected Discord SDK helper. The central requested capability therefore remains unimplemented rather than obsolete.
Security baseline conflicts with unauthenticated public Activity access: The current security documentation describes Canvas and A2UI as arbitrary HTML/JS content, requires Gateway authentication for non-loopback exposure, and warns not to expose the surface to untrusted networks. The branch’s optional token plus marker-only allow path weakens that baseline.
Findings 6 actionable findings [P1] Keep Discord Activity policy out of core Canvas config
[P1] Reject spoofed launch markers before granting Canvas access
[P1] Bundle the Discord SDK instead of importing it from public CDNs
Security Needs attention Spoofable Activity markers bypass Gateway authentication: The proposed authorization path treats request-controlled launch markers as sufficient when no Activity token is configured, allowing access before bearer or Canvas-capability checks.
Activity token is transmitted in request URLs: The embedded client reads and appends the Activity token in query strings, exposing a reusable credential to normal URL logging and propagation surfaces.
Remote CDN module executes in the Canvas page: The injected helper dynamically imports the Discord SDK from public CDNs with a fallback host instead of a locally reviewed dependency.

How this fits together

Discord messages can trigger a Discord Activity that loads the Gateway-hosted Canvas page. The branch would authorize that embedded page separately from normal Gateway authentication and relay node-produced A2UI updates to connected Activity clients.

flowchart LR
  A[Discord message action] --> B[Discord Activity launch]
  B --> C[Gateway Canvas route]
  C --> D[Activity authorization]
  D --> E[Embedded Canvas page]
  F[Node A2UI update] --> G[Activity WebSocket hub]
  G --> E
Loading

Decision needed

Question Recommendation
Should OpenClaw support Discord Activities through a new plugin-owned Gateway seam, and if so, which credentialed authorization contract may grant an embedded Activity access to Canvas/A2UI without normal operator Gateway credentials? Define a plugin-owned authenticated seam: Recommended: design a narrow Discord plugin descriptor plus a credentialed, non-URL Activity assertion before rebuilding the feature around that contract.

Why: The current branch changes the security boundary and core/plugin ownership model; source review cannot safely choose the permanent access model or approve a public-facing auth bypass without maintainer intent.

Before merge

  • Keep Discord Activity policy out of core Canvas config (P1) - CanvasHostActivityConfig makes Discord-specific launch, token, and authorization policy a generic core Canvas setting. This conflicts with the plugin boundary and leaves Gateway core owning a channel-specific auth bypass; add a narrow plugin-owned descriptor/API first, then have core consume only generic access facts.
  • Reject spoofed launch markers before granting Canvas access (P1) - This early return grants Canvas and A2UI access before normal Gateway authentication when Activity mode is enabled and the request merely carries launch-looking markers. Those query parameters are attacker-controlled, and the branch’s optional token means the documented no-token configuration is an unauthenticated bypass.
  • Bundle the Discord SDK instead of importing it from public CDNs (P1) - The injected helper executes an unpinned module from cdn.jsdelivr.net with an esm.sh fallback on the Gateway-served Canvas origin. Ship a reviewed local/pinned dependency through the owning Discord package instead; a runtime CDN fallback creates an executable supply-chain dependency that operators cannot audit or lock.
  • Do not carry Activity credentials in URL query strings (P1) - The Activity page reads activityToken from the location and appends it to the WebSocket URL. URLs can persist in browser history, reverse-proxy logs, diagnostics, and referrers; issue and transport the credential through a non-URL mechanism with explicit expiry instead.
  • Bound retained Activity updates and slow-client fanout (P1) - broadcastPush retains arbitrary JSONL and sends it to every WebSocket client without a payload cap, connection limit, or backpressure policy. A large node update or slow clients can retain growing buffers and stall the event loop; enforce bounded message/state sizes and close or skip slow consumers.
  • Clear a failed Discord SDK load promise before retrying (P2) - A rejected SDK-load promise remains in state._loadPromise, so every later load() call reuses the failure until the page reloads. Clear the cached promise on failure so transient CDN/network errors can recover. This concern was visible on the prior reviewed head and is raised now for continuity.
  • Resolve security concern: Spoofable Activity markers bypass Gateway authentication - The proposed authorization path treats request-controlled launch markers as sufficient when no Activity token is configured, allowing access before bearer or Canvas-capability checks.
  • Resolve security concern: Activity token is transmitted in request URLs - The embedded client reads and appends the Activity token in query strings, exposing a reusable credential to normal URL logging and propagation surfaces.
  • Resolve security concern: Remote CDN module executes in the Canvas page - The injected helper dynamically imports the Discord SDK from public CDNs with a fallback host instead of a locally reviewed dependency.
  • Resolve security concern: Unbounded WebSocket state and broadcast path - The hub retains arbitrary payloads and broadcasts them to all clients without demonstrated bounds or backpressure handling.
  • Resolve merge risk (P1) - Merging the current branch can let a remote caller obtain Canvas/A2UI access by supplying Activity-looking query markers whenever Activity mode is enabled without a token, bypassing the normal Gateway auth boundary.
  • Resolve merge risk (P1) - The new optional token is transported and recovered through URL query/referrer paths, which can leak it through browser history, logs, proxies, or referrer propagation.
  • Resolve merge risk (P1) - The injected Canvas helper executes a remote Discord SDK from public CDNs at runtime, adding an unpinned third-party executable supply-chain dependency to a Gateway-served page.
  • Resolve merge risk (P1) - A single large A2UI message is retained and broadcast to every Activity WebSocket without a size bound or slow-client policy, creating avoidable memory and event-loop availability risk.
  • Resolve merge risk (P1) - The branch changes a compatibility-sensitive core config/default surface and routes Discord-specific authorization behavior through generic Canvas/Gateway code without an approved plugin-owned contract or upgrade plan.
  • Improve patch quality - Get an owner decision on the plugin seam and credentialed Activity authorization contract.
  • Improve patch quality - Remove the spoofable bypass, URL-token transport, CDN execution, and unbounded fanout path.
  • Improve patch quality - Attach a redacted live Discord Activity recording plus Gateway/network diagnostics after the redesign.

Findings

  • [P1] Keep Discord Activity policy out of core Canvas config — src/config/types.gateway.ts:41-52
  • [P1] Reject spoofed launch markers before granting Canvas access — src/gateway/server/http-auth.ts:75-87
  • [P1] Bundle the Discord SDK instead of importing it from public CDNs — src/canvas-host/a2ui.ts:169-176
  • [high] Spoofable Activity markers bypass Gateway authentication — src/gateway/server/http-auth.ts:75
  • [high] Activity token is transmitted in request URLs — src/canvas-host/a2ui/index.html:321
  • [high] Remote CDN module executes in the Canvas page — src/canvas-host/a2ui.ts:169
Agent review details

Security

Needs attention: The diff adds a new Gateway authorization exception, URL-borne credential handling, remote executable SDK loading, and unbounded WebSocket fanout without sufficient boundary proof.

PR surface

Source +1039, Tests +406, Docs +233, Generated 0. Total +1678 across 41 files.

View PR surface stats
Area Files Added Removed Net
Source 26 1053 14 +1039
Tests 10 408 2 +406
Docs 4 235 2 +233
Config 0 0 0 0
Generated 1 2 2 0
Other 0 0 0 0
Total 41 1698 20 +1678

Review metrics

Metric Value Why it matters
New core config surface 1 added canvasHost.activity subtree with 3 settings The added default and credential-bearing configuration governs a new access path and needs fresh-install and upgrade contract review.
Security-sensitive paths 4 new/changed paths: HTTP auth, Activity WebSocket, injected Canvas script, A2UI client The change spans request authorization, token transport, executable dependency loading, and fanout behavior rather than a single Discord adapter.

Stored data model

Persistent data-model change detected: serialized state: src/canvas-host/a2ui/index.html, serialized state: src/gateway/server-methods/nodes.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Redesign the authenticated Activity boundary (recommended)
    Move Discord-specific policy behind a plugin-owned seam and require a credentialed, non-URL authorization mechanism before merge.
  2. Accept a documented public-access model
    Maintainers may intentionally accept a public Activity access model only after documenting the threat model and replacing spoofable launch markers with a verifiable assertion.
  3. Pause this implementation
    Close or pause the branch if an approved ownership and authentication contract is not desired for core Canvas.

Technical review

Best possible solution:

First decide the owner boundary: add a narrow, plugin-owned Discord Activity descriptor/API only if core must recognize Activity access. Then require a credentialed, non-URL authorization mechanism for every Activity request, bundle or locally serve a pinned SDK, bound retained/broadcast payloads and slow clients, and prove the complete Discord launch path with redacted diagnostics before reconsidering merge.

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

Yes, from source: enable canvasHost.activity.enabled without a token and request a Canvas or A2UI path with a non-empty Activity marker; the added early authorization path returns success before current Gateway bearer/capability checks. A live public-host reproduction should still be performed before any security claim is finalized.

Is this the best way to solve the issue?

No: Discord-specific Activity policy, credentials, and launch handling should not be embedded as a generic core Canvas exception. A plugin-owned descriptor plus a credentialed, non-URL access contract is the narrower maintainable solution.

Full review comments:

  • [P1] Keep Discord Activity policy out of core Canvas config — src/config/types.gateway.ts:41-52
    CanvasHostActivityConfig makes Discord-specific launch, token, and authorization policy a generic core Canvas setting. This conflicts with the plugin boundary and leaves Gateway core owning a channel-specific auth bypass; add a narrow plugin-owned descriptor/API first, then have core consume only generic access facts.
    Confidence: 0.93
    Late finding: first raised on code an earlier review cycle already covered.
  • [P1] Reject spoofed launch markers before granting Canvas access — src/gateway/server/http-auth.ts:75-87
    This early return grants Canvas and A2UI access before normal Gateway authentication when Activity mode is enabled and the request merely carries launch-looking markers. Those query parameters are attacker-controlled, and the branch’s optional token means the documented no-token configuration is an unauthenticated bypass.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.
  • [P1] Bundle the Discord SDK instead of importing it from public CDNs — src/canvas-host/a2ui.ts:169-176
    The injected helper executes an unpinned module from cdn.jsdelivr.net with an esm.sh fallback on the Gateway-served Canvas origin. Ship a reviewed local/pinned dependency through the owning Discord package instead; a runtime CDN fallback creates an executable supply-chain dependency that operators cannot audit or lock.
    Confidence: 0.97
    Late finding: first raised on code an earlier review cycle already covered.
  • [P1] Do not carry Activity credentials in URL query strings — src/canvas-host/a2ui/index.html:321-328
    The Activity page reads activityToken from the location and appends it to the WebSocket URL. URLs can persist in browser history, reverse-proxy logs, diagnostics, and referrers; issue and transport the credential through a non-URL mechanism with explicit expiry instead.
    Confidence: 0.96
    Late finding: first raised on code an earlier review cycle already covered.
  • [P1] Bound retained Activity updates and slow-client fanout — src/gateway/a2ui-activity.ts:240-250
    broadcastPush retains arbitrary JSONL and sends it to every WebSocket client without a payload cap, connection limit, or backpressure policy. A large node update or slow clients can retain growing buffers and stall the event loop; enforce bounded message/state sizes and close or skip slow consumers.
    Confidence: 0.95
    Late finding: first raised on code an earlier review cycle already covered.
  • [P2] Clear a failed Discord SDK load promise before retrying — src/canvas-host/a2ui.ts:189-212
    A rejected SDK-load promise remains in state._loadPromise, so every later load() call reuses the failure until the page reloads. Clear the cached promise on failure so transient CDN/network errors can recover. This concern was visible on the prior reviewed head and is raised now for continuity.
    Confidence: 0.93
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P1: The branch introduces a plausible remote authentication bypass and availability exposure on a Gateway-served Canvas path.
  • remove P2: Current review triage priority is P1, so this older priority label is no longer current.

Label justifications:

  • P1: The branch introduces a plausible remote authentication bypass and availability exposure on a Gateway-served Canvas path.
  • merge-risk: 🚨 compatibility: It adds a new core Canvas configuration subtree and default behavior affecting existing Gateway deployments and Canvas access paths.
  • merge-risk: 🚨 security-boundary: Spoofable launch markers can grant Activity-mode access before normal Gateway authentication, while the optional token is carried in URL-based paths.
  • merge-risk: 🚨 availability: The Activity hub retains and broadcasts arbitrary A2UI payloads without demonstrated limits or slow-client handling.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🌊 off-meta tidepool and patch quality is 🧂 unranked krab.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The author is a repository MEMBER, so the external-contributor proof gate does not apply; nevertheless, the PR body supplies no inspectable redacted live Discord Activity run, and that proof is still needed for this security-sensitive feature decision.

Evidence

Security concerns:

  • [high] Spoofable Activity markers bypass Gateway authentication — src/gateway/server/http-auth.ts:75
    The proposed authorization path treats request-controlled launch markers as sufficient when no Activity token is configured, allowing access before bearer or Canvas-capability checks.
    Confidence: 0.99
  • [high] Activity token is transmitted in request URLs — src/canvas-host/a2ui/index.html:321
    The embedded client reads and appends the Activity token in query strings, exposing a reusable credential to normal URL logging and propagation surfaces.
    Confidence: 0.96
  • [high] Remote CDN module executes in the Canvas page — src/canvas-host/a2ui.ts:169
    The injected helper dynamically imports the Discord SDK from public CDNs with a fallback host instead of a locally reviewed dependency.
    Confidence: 0.97
  • [medium] Unbounded WebSocket state and broadcast path — src/gateway/a2ui-activity.ts:240
    The hub retains arbitrary payloads and broadcasts them to all clients without demonstrated bounds or backpressure handling.
    Confidence: 0.95

What I checked:

  • Current main preserves Gateway authentication for Canvas: At current main, Canvas and A2UI requests accept a bearer token or an existing authorized Canvas capability; there is no Discord Activity bypass. The PR adds an early allow result before those checks. (src/gateway/server/http-auth.ts:1, 22911713e511)
  • Current main has no proposed Activity bridge: Current main defines only the Canvas, Canvas WebSocket, and A2UI paths; it has no Activity WebSocket path or injected Discord SDK helper. The central requested capability therefore remains unimplemented rather than obsolete. (src/canvas-host/a2ui.ts:1, 22911713e511)
  • Security baseline conflicts with unauthenticated public Activity access: The current security documentation describes Canvas and A2UI as arbitrary HTML/JS content, requires Gateway authentication for non-loopback exposure, and warns not to expose the surface to untrusted networks. The branch’s optional token plus marker-only allow path weakens that baseline. Public docs: docs/gateway/security/index.md. (docs/gateway/security/index.md:1, 22911713e511)
  • Plugin and Gateway ownership policy: The checked scoped guidance says plugin-owned Gateway auth behavior should use a lightweight public artifact backed by the plugin-owned helper, while bundled extension code must not reach into core internals. The PR instead places Discord Activity config and request policy directly in generic core Canvas and Gateway code. (src/gateway/AGENTS.md:1, 22911713e511)
  • Vision fit for the implementation boundary: VISION.md prioritizes security and safe defaults, and says optional capability should generally ship through plugins or a deliberate SDK seam rather than one-off core behavior. (VISION.md:19, 22911713e511)
  • Prior review blockers remain on the reviewed head: The previous ClawSweeper review at 89b8977 identified the same core-boundary, auth-bypass, remote-SDK, fanout, URL-token, and retry issues. The GitHub context shows no later head commit after that reviewed SHA. (src/gateway/a2ui-activity.ts:1, 89b897744353)

Likely related people:

  • coygeek: Release history credits the shipped Canvas/A2UI Gateway-auth hardening to this contributor, making them a relevant reviewer for any new bypass of that boundary. (role: related Canvas authentication hardening contributor; confidence: medium; files: src/gateway/server/http-auth.ts, docs/gateway/security/index.md)
  • steipete: The PR discussion explicitly notified this person, and the unresolved question is whether Discord Activities should enter core plus what public-access contract is acceptable. (role: likely product and security decision owner; confidence: medium; files: VISION.md, src/gateway/server/http-auth.ts, src/config/types.gateway.ts)
  • vincentkoc: Current architecture documentation for the Gateway-owned Canvas and A2UI surface identifies this subsystem and is attributed to this contributor in current repository history metadata. (role: adjacent Gateway and Canvas architecture contributor; confidence: medium; files: docs/concepts/architecture.md, src/canvas-host/a2ui.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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-07-03T06:29:46.379Z sha 89b8977 :: found issues before merge. :: [P1] Move Activity config under the Canvas plugin contract | [P1] Require credentialed Activity auth before bypassing Gateway auth | [P1] Stop loading the Discord SDK from public CDNs | [P1] Bound Activity broadcasts before fanning out | [P1] Stop carrying Activity tokens in URLs | [P2] Clear the failed Discord SDK load promise

@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 15, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 20, 2026
@clawsweeper clawsweeper Bot added status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 29, 2026
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. and removed P2 Normal backlog priority with limited blast radius. labels Jul 31, 2026

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

agents Agent runtime and tooling channel: discord Channel integration: discord docs Improvements or additions to documentation gateway Gateway runtime maintainer Maintainer-authored PR merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant