Skip to content

Control UI + auto-reply: strip leaked agent scaffolding and metadata - #68045

Closed
miyago9267 wants to merge 5 commits into
openclaw:mainfrom
miyago9267:fix/control-ui-final-tags-strip
Closed

miyago9267 wants to merge 5 commits into
openclaw:mainfrom
miyago9267:fix/control-ui-final-tags-strip

Conversation

@miyago9267

Copy link
Copy Markdown

Summary

Three related bugs where Control UI (and any user-facing surface that shares stripInboundMetadata) leaks message internals that should already have been stripped:

  1. renderGroupedMessage was extracting text directly from normalizedMessage.content instead of going through extractText/processMessageText, so <think>/<final> scaffolding from Gemini-family models and inbound metadata sentinels were rendered verbatim in the chat bubble.
  2. stripInboundMetadata only handled the structured JSON-block sentinels. Per-line System: / System (untrusted): event prefixes emitted by session-system-events.ts, and the paired "An async command you ran earlier has completed." / "Current time: …" internal agent instructions, still leaked into user-visible text.
  3. With (1) and (2) fixed, user turns whose text consisted entirely of now-stripped metadata still rendered an orphan "You · 12:34" bubble (avatar + sender label + timestamp + delete button, no content) because renderMessageGroup had no group-level suppression analogous to the per-message check inside renderGroupedMessage.

Changes

  • ui/src/ui/chat/message-extract.ts: export processMessageText so other renderers can share the same per-role strip contract.
  • ui/src/ui/chat/grouped-render.ts:
    • route renderGroupedMessage's text extraction through processMessageText (assistant → stripThinkingTags, user → stripInboundMetadata(stripEnvelope(...)), other → stripEnvelope).
    • add a group-level emptiness precheck in renderMessageGroup so a group whose inner messages all render empty returns nothing instead of leaving an orphan avatar/footer behind.
  • src/auto-reply/reply/strip-inbound-meta.ts:
    • add SYSTEM_EVENT_LINE_RE and an INTERNAL_INSTRUCTION_LINE_PREFIXES list.
    • extend the fast-path SENTINEL_FAST_RE to include System: / System (untrusted): and the instruction prefixes so these variants still trigger the slow parse.
    • in the main loop, drop lines matching either pattern. Only line-anchored matches are stripped so prose like "Operating System: Linux" is preserved.

Test plan

  • pnpm test ui/src/ui/chat/message-extract.test.ts — new processMessageText suite covers the empty-<think></think> + <final> variant I actually hit with gemini-3-flash-preview, plus the standard paired shape and plain pass-through for assistant/user roles.
  • pnpm test src/auto-reply/reply/strip-inbound-meta.test.ts — new per-line system events and internal instructions suite covers consecutive System (untrusted): exec lines, trusted System: lines, the async-command / current-time instruction pair, and guards against stripping the inline "Operating System: Linux" prose variant.
  • pnpm tsgo, pnpm check, pnpm check:import-cycles, pnpm check:madge-import-cycles — all green on the PR branch (run via scripts/committer pre-commit).
  • Manual smoke on a live self-hosted OpenClaw instance with Gemini 3 Flash Preview: <final>…</final> segments no longer render verbatim, System (untrusted): / async-command lines no longer surface in user bubbles, and orphan "You · HH:MM" empty groups no longer appear after metadata-only turns. Existing <think> reasoning blocks still surface correctly in the dedicated reasoning panel.

No config schema, plugin-SDK surface, or build output shape was changed.

Copilot AI review requested due to automatic review settings April 17, 2026 08:38

@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: bbca5dc88f

ℹ️ 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".

* — each continuation line re-uses the same prefix for safety, so a simple
* consecutive-line sweep is sufficient to remove them.
*/
const SYSTEM_EVENT_LINE_RE = /^System(?: \(untrusted\))?:/;

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 Restrict system-line stripping to trusted metadata shapes

The new SYSTEM_EVENT_LINE_RE/instruction-prefix checks remove any user line that begins with System: or Current time:, even when it is legitimate user content (for example pasted logs, YAML headers, or prompts that intentionally start with those labels). Because stripInboundMetadata is used beyond chat rendering (for example command detection and session sanitization paths), this overbroad match can silently delete real user input and change downstream behavior. Please gate these removals on a stronger signature (for example the emitted event timestamp format) instead of raw line prefixes.

Useful? React with 👍 / 👎.

Comment thread ui/src/ui/chat/grouped-render.ts Outdated
// inbound metadata sentinels are stripped before render. Previously the
// reduced text was rendered verbatim, leaking <final>…</final> tags and
// injected "Sender (untrusted metadata):" blocks into the Control UI.
const extractedText = rawExtractedText ? processMessageText(rawExtractedText, role) : "";

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 Preserve reasoning-only assistant turns after text stripping

Routing grouped assistant text through processMessageText strips <think>...</think> scaffolding before visibility checks, so an assistant turn that contains reasoning tags but no <final> content now produces empty markdown and is suppressed by the existing empty-bubble guard. In that scenario the entire message disappears (including the reasoning panel path), which is a regression from prior behavior where the turn was still visible. Consider treating extracted reasoning as visible content when deciding whether to render the bubble/group.

Useful? React with 👍 / 👎.

@greptile-apps

greptile-apps Bot commented Apr 17, 2026 •

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes three related bugs where Control UI leaks AI-facing scaffolding and injected metadata into user-visible chat: renderGroupedMessage now routes text through processMessageText instead of rendering raw content, stripInboundMetadata is extended to strip per-line System:/System (untrusted): prefixes and internal agent instruction lines, and renderMessageGroup adds a group-level emptiness guard to suppress orphan avatar/footer bubbles when all inner messages render empty after stripping. The changes are well-scoped and test coverage is solid.

Confidence Score: 5/5

Safe to merge — all remaining findings are P2 style/consistency suggestions that do not affect current runtime behaviour.

The three bugs are correctly identified and fixed, tests cover the key variants including edge cases (inline "Operating System: Linux" prose preservation, empty-think tag, orphan group suppression), and the changes are tightly scoped. The inline comments are minor inconsistencies and a performance observation.

src/auto-reply/reply/strip-inbound-meta.ts — stripLeadingInboundMetadata is not updated to match the new stripping logic; worth confirming whether any rendering path calls it.

Comments Outside Diff (1)

  1. src/auto-reply/reply/strip-inbound-meta.ts, line 286-332 (link)

    P2 stripLeadingInboundMetadata not updated for new system-event / instruction lines

    SENTINEL_FAST_RE now includes "System:", "System (untrusted):", and the internal instruction prefixes, so stripLeadingInboundMetadata will enter its slow path for messages containing those patterns — but it has no call to isSystemEventLine or isInternalInstructionLine, so those lines are returned as-is. Any UI surface or history view that calls this function instead of stripInboundMetadata would still leak the event lines this PR intends to strip. If stripLeadingInboundMetadata is used on user-visible surfaces, the two functions should handle the same set of patterns.

    Prompt To Fix With AI
    This is a comment left during a code review.
    Path: src/auto-reply/reply/strip-inbound-meta.ts
    Line: 286-332
    
    Comment:
    **`stripLeadingInboundMetadata` not updated for new system-event / instruction lines**
    
    `SENTINEL_FAST_RE` now includes `"System:"`, `"System (untrusted):"`, and the internal instruction prefixes, so `stripLeadingInboundMetadata` will enter its slow path for messages containing those patterns — but it has no call to `isSystemEventLine` or `isInternalInstructionLine`, so those lines are returned as-is. Any UI surface or history view that calls this function instead of `stripInboundMetadata` would still leak the event lines this PR intends to strip. If `stripLeadingInboundMetadata` is used on user-visible surfaces, the two functions should handle the same set of patterns.
    
    How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix All With AI
This is a comment left during a code review.
Path: ui/src/ui/chat/message-extract.ts
Line: 11-13

Comment:
**Inconsistent role comparison — assistant branch is case-sensitive, user branch is not**

`role === "assistant"` is a strict equality check, but `normalizeLowercaseStringOrEmpty(role) === "user"` normalises to lowercase first. A message with `role: "Assistant"` would skip the thinking-tag strip path and fall through to `stripEnvelope` only. Both branches should use the same normalisation strategy for consistency.

```suggestion
  const normalizedRole = normalizeLowercaseStringOrEmpty(role);
  if (normalizedRole === "assistant") {
    return stripThinkingTags(text);
  }
  return normalizedRole === "user"
```

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/auto-reply/reply/strip-inbound-meta.ts
Line: 286-332

Comment:
**`stripLeadingInboundMetadata` not updated for new system-event / instruction lines**

`SENTINEL_FAST_RE` now includes `"System:"`, `"System (untrusted):"`, and the internal instruction prefixes, so `stripLeadingInboundMetadata` will enter its slow path for messages containing those patterns — but it has no call to `isSystemEventLine` or `isInternalInstructionLine`, so those lines are returned as-is. Any UI surface or history view that calls this function instead of `stripInboundMetadata` would still leak the event lines this PR intends to strip. If `stripLeadingInboundMetadata` is used on user-visible surfaces, the two functions should handle the same set of patterns.

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

---

This is a comment left during a code review.
Path: ui/src/ui/chat/grouped-render.ts
Line: 172-204

Comment:
**Precheck duplicates work already done inside `renderGroupedMessage`**

`groupHasVisibleContent` calls `normalizeMessage`, `processMessageText`, `extractImages`, and `extractToolCards` for every message in the group. `renderGroupedMessage` performs the same calls immediately after. For groups with many messages or in chat histories with many groups this doubles the computation on every render cycle. Consider memoising the precheck result or restructuring so that each message renders itself and the group-level suppression is inferred from the `nothing` returns.

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

Reviews (1): Last reviewed commit: "Control UI/chat: suppress empty message ..." | Re-trigger Greptile

Comment thread ui/src/ui/chat/message-extract.ts Outdated
Comment on lines 11 to 13
const shouldStripInboundMetadata = normalizeLowercaseStringOrEmpty(role) === "user";
if (role === "assistant") {
return stripThinkingTags(text);

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 Inconsistent role comparison — assistant branch is case-sensitive, user branch is not

role === "assistant" is a strict equality check, but normalizeLowercaseStringOrEmpty(role) === "user" normalises to lowercase first. A message with role: "Assistant" would skip the thinking-tag strip path and fall through to stripEnvelope only. Both branches should use the same normalisation strategy for consistency.

Suggested change
const shouldStripInboundMetadata = normalizeLowercaseStringOrEmpty(role) === "user";
if (role === "assistant") {
return stripThinkingTags(text);
const normalizedRole = normalizeLowercaseStringOrEmpty(role);
if (normalizedRole === "assistant") {
return stripThinkingTags(text);
}
return normalizedRole === "user"
Prompt To Fix With AI
This is a comment left during a code review.
Path: ui/src/ui/chat/message-extract.ts
Line: 11-13

Comment:
**Inconsistent role comparison — assistant branch is case-sensitive, user branch is not**

`role === "assistant"` is a strict equality check, but `normalizeLowercaseStringOrEmpty(role) === "user"` normalises to lowercase first. A message with `role: "Assistant"` would skip the thinking-tag strip path and fall through to `stripEnvelope` only. Both branches should use the same normalisation strategy for consistency.

```suggestion
  const normalizedRole = normalizeLowercaseStringOrEmpty(role);
  if (normalizedRole === "assistant") {
    return stripThinkingTags(text);
  }
  return normalizedRole === "user"
```

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

Comment on lines +172 to +204
const groupHasVisibleContent = group.messages.some(({ message }) => {
const m = message as Record<string, unknown>;
const role = typeof m.role === "string" ? m.role : "";
const normalized = normalizeMessage(message);
const rawText = normalized.content
.reduce<string[]>((acc, item) => {
if (item.type === "text" && typeof item.text === "string") {
acc.push(item.text);
}
return acc;
}, [])
.join("\n")
.trim();
if (rawText && processMessageText(rawText, role).trim()) {
return true;
}
if (extractImages(message).length > 0) {
return true;
}
if (normalized.replyTarget) {
return true;
}
if (normalized.content.some((item) => item.type === "attachment" || item.type === "canvas")) {
return true;
}
// Only count tool cards when the user has tool-call display enabled.
if ((opts.showToolCalls ?? true) && extractToolCards(message, "group-precheck").length > 0) {
return true;
}
return false;
});
if (!groupHasVisibleContent) {
return nothing;

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 Precheck duplicates work already done inside renderGroupedMessage

groupHasVisibleContent calls normalizeMessage, processMessageText, extractImages, and extractToolCards for every message in the group. renderGroupedMessage performs the same calls immediately after. For groups with many messages or in chat histories with many groups this doubles the computation on every render cycle. Consider memoising the precheck result or restructuring so that each message renders itself and the group-level suppression is inferred from the nothing returns.

Prompt To Fix With AI
This is a comment left during a code review.
Path: ui/src/ui/chat/grouped-render.ts
Line: 172-204

Comment:
**Precheck duplicates work already done inside `renderGroupedMessage`**

`groupHasVisibleContent` calls `normalizeMessage`, `processMessageText`, `extractImages`, and `extractToolCards` for every message in the group. `renderGroupedMessage` performs the same calls immediately after. For groups with many messages or in chat histories with many groups this doubles the computation on every render cycle. Consider memoising the precheck result or restructuring so that each message renders itself and the group-level suppression is inferred from the `nothing` returns.

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

Copilot AI 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.

Pull request overview

This PR fixes user-facing text leaks in Control UI (and other surfaces using stripInboundMetadata) by ensuring assistant/user message text is consistently processed to remove model scaffolding (<think>/<final>) and injected inbound metadata, and by suppressing empty message groups after stripping.

Changes:

  • Export processMessageText and add tests covering assistant scaffolding stripping and user metadata stripping.
  • Update Control UI grouped rendering to run extracted text through processMessageText and suppress groups that would render empty.
  • Extend stripInboundMetadata to also strip per-line System: / System (untrusted): prefixes and certain internal instruction lines, with new test coverage.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
ui/src/ui/chat/message-extract.ts Exports processMessageText for reuse across renderers.
ui/src/ui/chat/message-extract.test.ts Adds unit tests for processMessageText behavior across roles.
ui/src/ui/chat/grouped-render.ts Uses processMessageText for grouped message rendering and adds group-level suppression for empty groups.
src/auto-reply/reply/strip-inbound-meta.ts Expands inbound stripping to include system-event line prefixes and internal instruction lines.
src/auto-reply/reply/strip-inbound-meta.test.ts Adds tests for the new per-line stripping behavior and a formatting tweak to an existing assertion.
CHANGELOG.md Documents the UI and auto-reply stripping fixes.

Comment thread ui/src/ui/chat/grouped-render.ts Outdated
Comment on lines +173 to +185
const m = message as Record<string, unknown>;
const role = typeof m.role === "string" ? m.role : "";
const normalized = normalizeMessage(message);
const rawText = normalized.content
.reduce<string[]>((acc, item) => {
if (item.type === "text" && typeof item.text === "string") {
acc.push(item.text);
}
return acc;
}, [])
.join("\n")
.trim();
if (rawText && processMessageText(rawText, role).trim()) {

Copilot AI Apr 17, 2026

Copy link

Choose a reason for hiding this comment

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

renderMessageGroup’s new groupHasVisibleContent precheck rebuilds text from normalizeMessage(...).content and runs it through processMessageText. For assistant messages this loses phase information (textSignature is discarded by normalizeMessage), so commentary-only blocks / non-final_answer text can be treated as visible and prevent group suppression (and may later render) even though extractTextCached would hide them. Prefer using extractTextCached(message) (and checking .trim()) for the text visibility check so the precheck matches the established assistant-visible-text contract (final_answer preference, no commentary-only fallback).

Suggested change
const m = message as Record<string, unknown>;
const role = typeof m.role === "string" ? m.role : "";
const normalized = normalizeMessage(message);
const rawText = normalized.content
.reduce<string[]>((acc, item) => {
if (item.type === "text" && typeof item.text === "string") {
acc.push(item.text);
}
return acc;
}, [])
.join("\n")
.trim();
if (rawText && processMessageText(rawText, role).trim()) {
const normalized = normalizeMessage(message);
const visibleText = extractTextCached(message).trim();
if (visibleText) {

Copilot uses AI. Check for mistakes.
Comment thread ui/src/ui/chat/grouped-render.ts Outdated
Comment on lines +1108 to +1122
@@ -1075,6 +1115,11 @@ function renderGroupedMessage(
}, [])
.join("\n")
.trim();
// Route through processMessageText so <think>/<final> scaffolding and
// inbound metadata sentinels are stripped before render. Previously the
// reduced text was rendered verbatim, leaking <final>…</final> tags and
// injected "Sender (untrusted metadata):" blocks into the Control UI.
const extractedText = rawExtractedText ? processMessageText(rawExtractedText, role) : "";

Copilot AI Apr 17, 2026

Copy link

Choose a reason for hiding this comment

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

renderGroupedMessage still derives its text by joining normalizeMessage(message).content items and then calling processMessageText. Because normalizeMessage expands assistant text blocks and drops textSignature, this path can re-introduce internal assistant scaffolding that extractTextCached intentionally hides (e.g. commentary vs final_answer selection). Consider using extractTextCached(message) as the source for markdownBase (while still using normalizeMessage for attachments/replyTarget) to ensure Control UI text rendering matches the shared assistant-visible-text extraction rules.

Copilot uses AI. Check for mistakes.
Comment on lines +236 to +242
// Per-line system-event prefix (`System:` / `System (untrusted):`) and
// agent-facing internal instructions must never appear in user-visible
// chat text. Every continuation line re-applies the prefix upstream, so
// a simple per-line filter is sufficient and cannot strand stray prose.
if (!inMetaBlock && (isSystemEventLine(line) || isInternalInstructionLine(line))) {
continue;
}

Copilot AI Apr 17, 2026

Copy link

Choose a reason for hiding this comment

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

stripInboundMetadata now drops any non-meta-block line that begins with System: / System (untrusted): or the internal-instruction prefixes. This will also strip user-authored content that gets rewritten by sanitizeInboundSystemTags() (which intentionally turns a line-leading System: into System (untrusted):), potentially making a legitimate user message render as empty. If the intent is to remove only injected system-event blocks, consider narrowing the match (e.g. only strip these prefixes when they appear in an injected prelude section, or when they match the exact session-system-events formatting) so sanitized-but-user-authored lines aren’t lost.

Copilot uses AI. Check for mistakes.
…ng-only stripper

`stripLeadingInboundMetadata` is the variant used by the TUI history
formatter at `src/tui/tui-formatters.ts:354` for user-role and command
turns. The previous commit extended `stripInboundMetadata` to also drop
per-line `System:` / `System (untrusted):` event prefixes and the
"An async command you ran earlier has completed." /
"Current time: …" internal-instruction leaks, but the TUI leading-only
stripper still emitted them verbatim.

Apply the same line-anchored filter after the active-memory prompt
prefix pass. `SENTINEL_FAST_RE` already includes these patterns, so
the fast-path short-circuit keeps its zero-allocation guarantee for
clean user text. Whitespace-only prose like "Operating System: Linux"
stays intact because `isSystemEventLine` is anchored at the start of
the line (not trimmed) and `isInternalInstructionLine` requires a
known prefix after trim.

When the filter has left leading blank lines in front of non-metadata
content, trim them from the no-sentinel return branch as well so a
lone `System (untrusted):` line at the start of a TUI message does
not leave an empty leading line in the rendered history entry.

@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: 5ba2f4824f

ℹ️ 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 +291 to +293
const lines = stripActiveMemoryPromptPrefixBlocks(text.split("\n")).filter(
(line) => !isSystemEventLine(line) && !isInternalInstructionLine(line),
);

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 Limit line filtering to leading metadata in history stripper

stripLeadingInboundMetadata now filters System:/Current time: instruction prefixes across the entire message before any leading-sentinel scan, so non-metadata content lines with those prefixes are removed even when they are legitimate user or command output text. This function is used by the TUI formatter for user and command turns (src/tui/tui-formatters.ts), so a command transcript that includes lines like System: ... in the body will be silently truncated; the filtering should be constrained to the leading injected metadata region (or to a stricter event signature) instead of global line removal.

Useful? React with 👍 / 👎.

…ata strip

Five review points across Codex, Copilot, and Greptile on the Control UI
cleanup PR and its TUI symmetry follow-up:

1. Narrow System-event line signature (Codex P1, Copilot P1)
   The original per-line sweep stripped any line starting with `System:` or
   `System (untrusted):`. Two practical problems:

   - `sanitizeInboundSystemTags()` deliberately rewrites a user line-leading
     `System:` to `System (untrusted):`, so any legitimate user message
     whose first line happens to start with `System:` (pasted logs, exec
     output, YAML snippets, notes) was getting silently deleted after
     sanitization.
   - `stripInboundMetadata` is used beyond Control UI rendering
     (`command-detection.ts`, `send-policy.ts`, `chat-sanitize.ts`,
     `cli-session-history.merge.ts`, `session-cost-usage.ts`), so
     over-stripping here corrupts downstream command detection and
     session/cost accounting, not just UI.

   Tighten `SYSTEM_EVENT_LINE_RE` to require the bracketed timestamp
   marker `[Weekday YYYY-MM-DD HH:MM:SS TZ]` that
   `session-system-events.ts` always emits on the first sub-line of each
   injected event. User-authored `System:` prefixes without the
   timestamp signature stay intact. Continuation sub-lines of a single
   injected event may still leak, but that is strictly better than
   silently deleting real user input.

2. Narrow internal-instruction prefix matches (Codex P1, Copilot P1)
   Replaced `INTERNAL_INSTRUCTION_LINE_PREFIXES` with anchored regexes.
   - `Current time: ` was too generic — a user note like
     "Current time: I'll be free after lunch" matched. Require the
     injected shape `Current time: … / YYYY-MM-DD HH:MM UTC` emitted by
     `resolveCronStyleNow`.
   - `An async command you ran earlier has completed.` kept, since the
     full sentence emitted by `heartbeat-events-filter.ts` is long and
     specific enough.

3. Constrain stripLeadingInboundMetadata to leading metadata region
   (Codex P1 on commit 5ba2f48)
   The TUI formatter uses `stripLeadingInboundMetadata` for `user` and
   `command` turns. The previous follow-up applied the System/instruction
   filter globally, which silently truncated command transcript bodies
   containing `System: …` lines. Move the filter into the leading-metadata
   skip loop: drop timestamped System-event and injected-instruction lines
   only while we are still in the leading prelude (alongside leading blank
   lines); the moment we hit the first real user/command content line,
   filtering stops. Added tests for mid-body `System:` preservation.

4. Preserve reasoning-only assistant turns (Codex P2)
   Routing grouped assistant text through `processMessageText` stripped
   `<think>…</think>` scaffolding before the bubble-visibility check, so
   an assistant turn that produced only a reasoning block and no visible
   final answer was suppressed by the empty-group guard — the reasoning
   panel itself disappeared too. Include `reasoningMarkdown` in the
   visibility check in `renderGroupedMessage` and also treat reasoning
   content as visible in `groupHasVisibleContent`, so reasoning-only
   turns still render with the reasoning panel intact.

5. Use extractTextCached + normalize role (Copilot P2 x2, Greptile P2)
   - `renderGroupedMessage` and `groupHasVisibleContent` now read visible
     text through `extractTextCached(message)` instead of rebuilding it
     from `normalizeMessage(...).content`. `normalizeMessage` drops each
     block's `textSignature`, so the rebuilt path lost the assistant
     phase contract — `final_answer` preference and commentary-only
     suppression — and could re-introduce scaffolding that
     `extractTextCached` already handles. Routing both surfaces through
     the shared extractor also collapses the duplicated precheck work.
   - `processMessageText` and `extractText` now consistently normalise
     the role to lowercase before dispatching, so a `role: "Assistant"`
     message no longer skips the thinking-tag strip path.

New tests cover:
- User-authored `System:` prefix without timestamp stays intact.
- User-authored `Current time: …` prose without the injected UTC suffix
  stays intact.
- Mid-body `System: …` line in TUI command transcript is preserved.

@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: e84ec68d6c

ℹ️ 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".

// suppress commentary-only blocks) and runs `processMessageText`, so
// Control UI rendering stays aligned with the other surfaces and cannot
// re-introduce scaffolding that `normalizeMessage` drops the signature of.
const extractedText = extractTextCached(message) ?? "";

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 Keep normalized assistant text path in grouped bubbles

Switching grouped message rendering to extractTextCached(message) bypasses normalizeMessage’s assistant text expansion/cleanup path, so assistant directives like [[reply_to_current]], [[audio_as_voice]], and MEDIA:... can now be rendered verbatim in the bubble while attachments/reply pills are also rendered from normalized content. This regresses prior behavior (clean prose only) and leaks internal scaffolding to end users on assistant turns that include inline media/reply directives.

Useful? React with 👍 / 👎.

Comment on lines +35 to +36
const SYSTEM_EVENT_LINE_RE =
/^System(?: \(untrusted\))?: \[[A-Z][a-z]{2} \d{4}-\d{2}-\d{2} \d{2}:\d{2}(?::\d{2})?[^\]]*\] /;

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 Strip non-timestamped continuation system-event lines

The new SYSTEM_EVENT_LINE_RE only matches System... lines that contain the bracketed timestamp, but drainFormattedSystemEvents prefixes every subline with System: and adds the timestamp only on subline index 0. For multiline events (for example exec.finished where output is appended on a new line), stripInboundMetadata now removes only the first line and leaves continuation lines like System (untrusted): <output> visible, so system-event leakage still reaches user-facing text as dangling fragments.

Useful? React with 👍 / 👎.

@clawsweeper

clawsweeper Bot commented Apr 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed June 14, 2026, 8:46 AM ET / 12:46 UTC.

Summary
This PR exports the chat text post-processor, updates Control UI grouped rendering to strip assistant/user scaffolding and suppress empty groups, extends inbound metadata stripping for system-event/internal-instruction lines, and adds tests plus changelog entries.

PR surface: Source +119, Tests +125, Docs +4. Total +248 across 6 files.

Reproducibility: yes. by source inspection: current main still renders grouped Control UI text from normalized content, lacks group-level empty suppression, and does not strip System/internal-instruction lines in stripInboundMetadata. I did not run a live UI reproduction because this review is read-only and no artifact proof was provided.

Review metrics: 1 noteworthy metric.

  • Release-owned changelog entries: 4 added. Normal PRs should keep release-note context in the PR body or squash message because CHANGELOG.md is generated during releases.

Stored data model
Persistent data-model change detected: vector/embedding metadata: CHANGELOG.md, vector/embedding metadata: ui/src/ui/chat/message-extract.test.ts. Confirm migration or upgrade compatibility proof before merge.

Merge readiness
Overall: 🧂 unranked krab
Proof: 🧂 unranked krab
Patch quality: 🦪 silver shellfish
Result: blocked until real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • [P1] Add redacted real Control UI/TUI proof showing scaffolding, system-event/internal-instruction text, and orphan empty groups are gone after the patch.
  • Refresh the branch against current main and preserve normalizeMessage assistant directive/media cleanup while applying shared text stripping.
  • Update the sanitizer for current multiline system-event and two-line current-time prompt shapes, then remove CHANGELOG.md edits.

Proof guidance:

  • [P1] Needs real behavior proof before merge: The PR body claims a live self-hosted smoke but includes no inspectable screenshot, recording, terminal output, copied live output, linked artifact, or redacted logs; the contributor should add redacted proof and update the PR body to trigger review, or ask a maintainer for @clawsweeper re-review if needed.

Mantis proof suggestion
A short visual Control UI proof would materially help because the change is visible chat rendering and empty-bubble behavior. A maintainer can ask Mantis to capture proof by posting a new PR comment that starts with the OpenClaw Mantis account mention, followed by:

visual task: verify Control UI no longer shows <think>/<final> scaffolding, system-event/internal-instruction text, or orphan empty user groups after metadata-only turns.

Risk before merge

  • [P1] The shared sanitizer is used beyond Control UI, including TUI, command detection, send policy, session history/cost paths, memory helpers, and agent-boundary code; over-stripping can delete real user text while under-stripping keeps internal metadata visible.
  • [P1] The branch is currently conflicting against main and the touched UI/sanitizer files have changed substantially, so the final merged code needs a refresh before review can trust behavior.
  • [P1] The PR body claims a live self-hosted smoke, but there is no inspectable after-fix proof artifact showing the Control UI/TUI behavior.
  • [P1] The PR edits CHANGELOG.md even though repository policy reserves that file for release generation.

Maintainer options:

  1. Refresh and repair before merge (recommended)
    Rebase or recreate the branch on current main, keep normalizeMessage directive/media cleanup in grouped bubbles, update the sanitizer for current multiline event and current-time shapes, remove CHANGELOG.md edits, and add inspectable real behavior proof.
  2. Accept partial sanitizer coverage
    Maintainers could knowingly accept that some continuation or current-time instruction text remains visible, but that leaves the stated metadata-leak bug only partially fixed.
  3. Ask for a narrow replacement
    If the contributor branch cannot be refreshed cleanly, pause or close it after a replacement PR preserves the useful sanitizer/rendering direction against current main.

Next step before merge

  • [P1] This should stay in maintainer/contributor review because it needs branch conflict resolution, contributor-visible proof, and correctness repairs that should be reviewed against the refreshed merge result rather than auto-closed or auto-repaired blindly.

Security
Needs attention: The diff tightens a user-visible metadata boundary, but the proposed sanitizer still leaves concrete internal-event/current-time leak paths in current-main shapes.

Review findings

  • [P1] Preserve normalized assistant directive cleanup — ui/src/ui/chat/grouped-render.ts:1114
  • [P2] Strip all event continuation lines — src/auto-reply/reply/strip-inbound-meta.ts:35-36
  • [P2] Match the current-time prompt shape — src/auto-reply/reply/strip-inbound-meta.ts:53
Review details

Best possible solution:

Land a refreshed branch that keeps normalized assistant directive/media cleanup, strips full current-main system-event and current-time/internal-instruction shapes without deleting user-authored System text, removes CHANGELOG.md edits, and includes redacted real Control UI/TUI proof.

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

Yes by source inspection: current main still renders grouped Control UI text from normalized content, lacks group-level empty suppression, and does not strip System/internal-instruction lines in stripInboundMetadata. I did not run a live UI reproduction because this review is read-only and no artifact proof was provided.

Is this the best way to solve the issue?

No, not yet. The shared extraction/sanitizer direction is appropriate, but the PR must preserve normalized assistant media/directive cleanup, match current-main injected text shapes, remove release-owned changelog edits, refresh against main, and add real behavior proof.

Full review comments:

  • [P1] Preserve normalized assistant directive cleanup — ui/src/ui/chat/grouped-render.ts:1114
    Using extractTextCached(message) as the rendered markdown source bypasses normalizeMessage's inline directive cleanup for assistant strings, so content like [[reply_to_current]] or MEDIA:... can be shown as raw text while the normalized reply pill/attachment also renders. Keep the text source aligned with normalized assistant rendering while still applying the shared stripping contract.
    Confidence: 0.87
  • [P2] Strip all event continuation lines — src/auto-reply/reply/strip-inbound-meta.ts:35-36
    drainFormattedSystemEvents prefixes every subline with System:, but only the first subline has the timestamp this regex requires. Multiline events therefore still leave System: <continuation> text visible in the same user-facing paths this PR is trying to clean up.
    Confidence: 0.9
  • [P2] Match the current-time prompt shape — src/auto-reply/reply/strip-inbound-meta.ts:53
    Current main emits current-time instructions as Current time: ... followed by Reference UTC: ..., but this pattern only matches an older one-line Current time: ... / YYYY-MM-DD HH:MM UTC shape. The claimed current-time leak will still pass through after rebase unless the sanitizer handles the current two-line prompt form.
    Confidence: 0.82
  • [P3] Remove release-owned changelog edits — CHANGELOG.md:21-24
    This PR adds normal unreleased entries to CHANGELOG.md, but repository policy reserves that file for release generation. Keep release-note context in the PR body or squash message instead.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.88

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • remove rating: 🦪 silver shellfish: Current PR rating is rating: 🧂 unranked krab, so this older rating label is no longer current.

Label justifications:

  • P2: The PR addresses a normal-priority user-visible metadata/scaffolding leak with limited blast radius, but it is not an outage or emergency.
  • merge-risk: 🚨 compatibility: The shared stripping helper affects existing user text and multiple runtime consumers, so incorrect filtering can break existing commands, history, and display behavior.
  • merge-risk: 🚨 security-boundary: The diff changes the boundary that keeps internal system events and agent-facing instructions out of user-visible chat surfaces.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: The PR body claims a live self-hosted smoke but includes no inspectable screenshot, recording, terminal output, copied live output, linked artifact, or redacted logs; the contributor should add redacted proof and update the PR body to trigger review, or ask a maintainer for @clawsweeper re-review if needed.
Evidence reviewed

PR surface:

Source +119, Tests +125, Docs +4. Total +248 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 3 139 20 +119
Tests 2 126 1 +125
Docs 1 4 0 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 6 269 21 +248

Security concerns:

  • [medium] Incomplete internal metadata stripping — src/auto-reply/reply/strip-inbound-meta.ts:35
    The PR strips timestamped first system-event lines but not continuation lines, and its current-time matcher no longer matches current main's two-line prompt shape, leaving internal agent/system text visible in user-facing sanitizer consumers.
    Confidence: 0.86

What I checked:

  • Repository policy read and applied: Root and scoped UI review policy were read fully; the changelog rule, full-context PR review rule, real behavior proof gate, and compatibility/security-boundary review guidance affected this decision. (AGENTS.md:1, 4644e0c10256)
  • Live PR state: The PR is open at head e84ec68, is maintainer-editable, but GitHub reports mergeable=CONFLICTING and mergeStateStatus=DIRTY; its labels still include needs-real-behavior-proof plus compatibility and security-boundary merge risk. (e84ec68d6c2f)
  • Current main still lacks grouped-render stripping: Current main's grouped renderer still derives bubble text from normalizedMessage.content and has no group-level visible-content suppression before rendering the group shell, so the central Control UI behavior is not already implemented on main. (ui/src/ui/chat/grouped-render.ts:1653, 4644e0c10256)
  • Current main still lacks system-event/internal-instruction stripping: Current main's inbound metadata fast path and strip loop only cover metadata sentinels, delivery hints, and untrusted context, not System/System (untrusted), async-command, or current-time instruction lines. (src/auto-reply/reply/strip-inbound-meta.ts:42, 4644e0c10256)
  • Emitter contract for multiline system events: Current main's drainFormattedSystemEvents prefixes every subline with System:, but only index 0 receives the timestamp, so a timestamp-only regex leaves continuation sublines visible. (src/auto-reply/reply/session-system-events.ts:127, 4644e0c10256)
  • Current-time contract drift: Current main emits current-time prompts as a two-line Current time plus Reference UTC block, while the PR head only matches an older one-line slash-UTC shape. (src/agents/current-time.ts:35, 4644e0c10256)

Likely related people:

  • steipete: Peter Steinberger authored recent commits splitting chat strip helpers, unifying chat display projection, and hardening inbound metadata stripping across the same shared display/sanitizer surfaces. (role: recent shared display and sanitizer contributor; confidence: high; commits: d6e9ae53fee5, 5f2273e81efc, b99666a47aef; files: ui/src/ui/chat/message-extract.ts, src/shared/chat-message-content.ts, src/auto-reply/reply/strip-inbound-meta.ts)
  • BunsDev: Val Alexander's recent Control UI commits touched grouped chat identity, context details, and Talk/UI behavior adjacent to the grouped renderer side of this PR. (role: recent Control UI grouped chat contributor; confidence: medium; commits: 1cf68b9243aa, fc5920fb5134, 388270ffce55; files: ui/src/ui/chat/grouped-render.ts)
  • vincentkoc: Vincent Koc's history includes TUI leading-only inbound metadata stripping and inbound metadata hardening relevant to the stripLeadingInboundMetadata and TUI symmetry concerns. (role: TUI and inbound metadata adjacent contributor; confidence: medium; commits: 45fff13b1d60, 6437aa8532f6; files: src/tui/tui-formatters.ts, src/auto-reply/reply/strip-inbound-meta.ts)
  • jacobtomlinson: Jacob Tomlinson authored adjacent system-event trust-boundary hardening, which is relevant because this PR filters System/System (untrusted) event text emitted into user-visible surfaces. (role: system-event trust-boundary adjacent contributor; confidence: medium; commits: a77928b1087e; files: src/auto-reply/reply/session-system-events.ts)
  • Jason (Json): Current-line blame for the central files points to a recent broad refactor commit, making Jason a useful routing candidate for current-main drift even though older feature history is shared. (role: recent area refactor contributor; confidence: low; commits: 965fa05df38b; files: ui/src/ui/chat/grouped-render.ts, ui/src/ui/chat/message-extract.ts, src/auto-reply/reply/strip-inbound-meta.ts)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@clawsweeper

clawsweeper Bot commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes:

The PR exports the chat text post-processor, updates grouped Control UI message rendering to strip assistant/user scaffolding and suppress all-empty groups, extends inbound metadata stripping for system-event/internal-instruction lines including the TUI leading stripper, and adds focused tests plus changelog entries.

Maintainer follow-up before merge:

This is already an open implementation PR, and the remaining work is a rebase plus maintainer review of sanitizer correctness and grouped-render behavior rather than a separate automated replacement branch.

Review details

Best possible solution:

Revise the PR so Control UI grouped bubbles use the shared user/assistant stripping semantics while preserving normalizeMessage directive/media handling and phase-aware assistant visibility, suppress all-empty rendered groups, extend both inbound stripping functions with narrow system-event/internal-instruction filtering that handles continuation lines without deleting legitimate System: prose, and land with focused regression tests plus compliant changelog attribution.

Acceptance criteria:

  • pnpm test ui/src/ui/chat/grouped-render.test.ts ui/src/ui/chat/message-extract.test.ts src/auto-reply/reply/strip-inbound-meta.test.ts src/tui/tui-formatters.test.ts
  • pnpm exec oxfmt --check --threads=1 ui/src/ui/chat/grouped-render.ts ui/src/ui/chat/message-extract.ts ui/src/ui/chat/message-extract.test.ts src/auto-reply/reply/strip-inbound-meta.ts src/auto-reply/reply/strip-inbound-meta.test.ts src/tui/tui-formatters.test.ts
  • pnpm check:changed in Testbox after the branch is rebased

What I checked:

  • Grouped renderer still bypasses shared extraction: Current grouped bubbles derive markdown by joining normalizeMessage(message).content text items and do not call processMessageText or extractTextCached, so the grouped path can diverge from the shared assistant/user stripping contract. (ui/src/ui/chat/grouped-render.ts:1296, acae48b790fa)
  • Group shell has no all-empty suppression: renderMessageGroup always returns the outer .chat-group, avatar, mapped inner messages, and footer; there is no group-level visible-content precheck before rendering the shell. (ui/src/ui/chat/grouped-render.ts:421, acae48b790fa)
  • Shared processor is private to extraction path: processMessageText strips internal runtime context, assistant thinking/final tags, and user inbound metadata, but it is private in message-extract.ts; grouped rendering does not share it today. (ui/src/ui/chat/message-extract.ts:11, acae48b790fa)
  • System-event stripping is absent on main: SENTINEL_FAST_RE only includes structured inbound metadata sentinels and the untrusted-context header, and the stripping loop only recognizes those metadata blocks; there is no System: / System (untrusted):, async-command, or current-time line filter. (src/auto-reply/reply/strip-inbound-meta.ts:37, acae48b790fa)
  • Emitter confirms the reported line shape: drainFormattedSystemEvents emits System: or System (untrusted): for every subline, but only the first subline receives the bracketed timestamp, which supports both the leak report and the continuation-line review concern. (src/auto-reply/reply/session-system-events.ts:93, acae48b790fa)
  • TUI uses the leading-only stripper: The TUI formatter passes user and command turns through stripLeadingInboundMetadata, so any system-event/internal-instruction handling added only to the full stripper would leave this surface inconsistent. (src/tui/tui-formatters.ts:354, acae48b790fa)

Likely related people:

  • steipete: Recent history shows repeated work on chat display projection, phase-aware visible text, message-extract splitting, and inbound metadata hardening across the central files involved here. (role: recent maintainer and shared display/sanitizer owner; confidence: high; commits: d6e9ae53fee5, 5f2273e81efc, b99666a47aef; files: ui/src/ui/chat/message-extract.ts, src/shared/chat-message-content.ts, src/auto-reply/reply/strip-inbound-meta.ts)
  • BunsDev: Recent commits touch grouped-render.ts for Control UI chat identity, context details, Talk behavior, and UI polish, making this a likely routing candidate for the grouped renderer side. (role: recent Control UI grouped chat maintainer; confidence: medium; commits: 1cf68b9243aa, fc5920fb5134, 388270ffce55; files: ui/src/ui/chat/grouped-render.ts)
  • Mellowambience: Commit history for the metadata strip path shows the original user-visible inbound metadata stripping utility and UI normalizer integration in the same behavior family. (role: introduced the original inbound metadata display stripping; confidence: medium; commits: a4e7e952e143; files: src/auto-reply/reply/strip-inbound-meta.ts, ui/src/ui/chat/message-normalizer.ts)
  • vincentkoc: Recent history includes TUI leading-only inbound metadata stripping, command-message display cleanup, and inbound metadata hardening/performance work relevant to the TUI symmetry and shared-stripper concerns. (role: TUI and inbound metadata adjacent maintainer; confidence: medium; commits: 45fff13b1d60, 35be87b09b0c, 6437aa8532f6; files: src/tui/tui-formatters.ts, src/auto-reply/reply/strip-inbound-meta.ts)
  • jacobtomlinson: The system-event prefixing behavior appears adjacent to the trust-boundary work that preserved trusted summary prefixes and prefixed multiline channel summaries. (role: system-event trust-boundary adjacent owner; confidence: medium; commits: a77928b1087e; files: src/auto-reply/reply/session-system-events.ts)

Remaining risk / open question:

  • The PR branch is dirty against current main, so a rebase can accidentally drop newer stripInternalRuntimeContext, phase-aware assistant visible-text, or directive/media cleanup behavior.
  • stripInboundMetadata is shared by display, command detection, send policy, chat sanitization, session history merge, and session-cost paths; overbroad line filtering can delete legitimate user text while underbroad filtering leaves internal metadata visible.
  • The current PR changelog additions shown in the diff lack the required Thanks @... attribution and would need cleanup before merge.

Codex review notes: model gpt-5.5, reasoning high; reviewed against acae48b790fa.

@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels May 19, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup. label May 19, 2026
@clawsweeper clawsweeper Bot added 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. labels May 19, 2026
@clawsweeper

clawsweeper Bot commented May 19, 2026 •

Copy link
Copy Markdown
Contributor

ClawSweeper PR egg

🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat.

Where did the egg go?
  • The egg game starts only after the PR passes the real-behavior proof check.
  • Before that, no creature or rarity is rolled. The treat waits for real proof.
  • This is still just collectible flavor: proof affects review readiness, not creature quality.

@openclaw-barnacle

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.
Please add updates or it will be closed.

@openclaw-barnacle openclaw-barnacle Bot added the stale Marked as stale due to inactivity label Jun 6, 2026
@clawsweeper clawsweeper Bot removed the rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. label Jun 6, 2026
@clawsweeper clawsweeper Bot added rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Jun 6, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the stale Marked as stale due to inactivity label Jun 7, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed rating: 🌊 off-meta tidepool PR readiness rating does not apply to this item. labels Jun 7, 2026
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Jun 14, 2026
@miyago9267 miyago9267 closed this by deleting the head repository Jun 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui 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. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. size: M status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. triage: needs-real-behavior-proof Candidate: external PR needs after-fix proof from a real setup.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants