Skip to content

fix(tui): subscribe to live session transcript updates - #73402

Closed
vincentkoc wants to merge 1 commit into
mainfrom
clownfish/ghcrawl-156978-autonomous-smoke
Closed

vincentkoc wants to merge 1 commit into
mainfrom
clownfish/ghcrawl-156978-autonomous-smoke

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Summary

Plan

  • Add subscribe/unsubscribe support in the TUI gateway client/backend for the active session transcript stream.
  • Subscribe after connect and after session switches, unsubscribe stale sessions on switch/stop, and ignore events for non-active sessions.
  • Handle session.message updates by appending or reloading history in a way that does not disrupt an active local stream.
  • Add focused regression tests for cross-surface delivery, active-run deferral/history reload semantics, session switching/unsubscribe, and session filtering.

Validation

  • pnpm check:changed

Credit

Thanks @galen2017 for #38829 and @baiyiyuni for #43341. Their reports define the canonical and duplicate reproduction paths for this fix.

ProjectClownfish replacement details:

@aisle-research-bot

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

Copy link
Copy Markdown

🔒 Aisle Security Analysis

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

# Severity Title
1 🟠 High Missing authorization on sessions.messages.subscribe/unsubscribe allows subscribing to arbitrary session transcripts
2 🟡 Medium Client-side DoS via unthrottled session.message events triggering repeated loadHistory()
3 🟡 Medium Terminal control-sequence injection via unsanitized error text in TUI system messages
4 🔵 Low Subscription confusion via trusting server-returned session key for unsubscribe operations
1. 🟠 Missing authorization on sessions.messages.subscribe/unsubscribe allows subscribing to arbitrary session transcripts
Property Value
Severity High
CWE CWE-639
Location src/gateway/server-methods/sessions.ts:636-659

Description

The gateway RPC handlers for live session message subscriptions accept a caller-supplied key and register the websocket connection for message events without verifying that the requesting client is authorized to access that session.

  • Input: params.key from the RPC request
  • Processing: requireSessionKey only checks non-empty string, then loadSessionEntry(key) is used only to canonicalize the key
  • Sink: context.subscribeSessionMessageEvents(connId, canonicalKey) subscribes the connection to transcript/message events for that session

As a result, any client with access to these RPC methods can subscribe to message events for any session key they can guess/obtain, potentially receiving other users’/tenants’ conversation data.

Vulnerable code:

const key = requireSessionKey((params as { key?: unknown }).key, respond);
...
const { canonicalKey } = loadSessionEntry(key);
if (connId) {
  context.subscribeSessionMessageEvents(connId, canonicalKey);
  respond(true, { subscribed: true, key: canonicalKey }, undefined);
  return;
}

Recommendation

Enforce per-session authorization before subscribing/unsubscribing.

At minimum, verify that the authenticated client identity (operator/user/plugin) is allowed to access the target session. For example, if sessions have an owner field (e.g. entry.pluginOwnerId) or can be mapped to an allowed agent/user, check it and reject otherwise.

Example (sketch):

const { entry, canonicalKey } = loadSessionEntry(key);
if (!entry) {
  respond(false, undefined, errorShape(ErrorCodes.INVALID_REQUEST, "unknown session"));
  return;
}

const pluginOwnerId = normalizeOptionalString(client?.internal?.pluginRuntimeOwnerId);
if (pluginOwnerId && normalizeOptionalString(entry.pluginOwnerId) !== pluginOwnerId) {
  respond(false, undefined, errorShape(ErrorCodes.FORBIDDEN, "not authorized for session"));
  return;
}

context.subscribeSessionMessageEvents(connId, canonicalKey);

Additionally:

  • Avoid returning key for unauthorized requests.
  • Consider tying subscriptions to server-side session resolution (e.g., only allow subscribing to the currently-selected/created session for that authenticated principal) rather than arbitrary keys.
2. 🟡 Client-side DoS via unthrottled `session.message` events triggering repeated `loadHistory()`
Property Value
Severity Medium
CWE CWE-400
Location src/tui/tui-event-handlers.ts:517-538

Description

handleSessionMessageEvent reacts to every incoming session.message event for the active session by calling refreshSessionInfo() and, when not streaming, loadHistory().

  • The event payload is accepted from the backend/gateway (potentially untrusted or compromiseable).
  • There is no debouncing/throttling/coalescing of events.
  • loadHistory() performs a network call (client.loadHistory) and rebuilds the entire UI history, so frequent events can cause excessive CPU/network usage and UI churn.
  • While streaming it sets pendingHistoryRefresh = true, but once idle, subsequent events still trigger repeated reloads.

Vulnerable code:

void refreshSessionInfo?.();
if (state.activeChatRunId) {
  pendingHistoryRefresh = true;
  return;
}
pendingHistoryRefresh = false;
void loadHistory?.();

Recommendation

Debounce/coalesce session.message handling so multiple events in a short window result in at most one history refresh.

Example (simple debounce with in-flight guard):

let historyRefreshTimer: NodeJS.Timeout | null = null;
let historyRefreshInFlight = false;

const scheduleHistoryRefresh = () => {
  if (historyRefreshTimer) clearTimeout(historyRefreshTimer);
  historyRefreshTimer = setTimeout(async () => {
    if (historyRefreshInFlight) return;
    historyRefreshInFlight = true;
    try {
      await refreshSessionInfo?.();
      if (!state.activeChatRunId) {
        await loadHistory?.();
      } else {
        pendingHistoryRefresh = true;
      }
    } finally {
      historyRefreshInFlight = false;
    }
  }, 250); // tune window
};

Also consider:

  • Enforcing a maximum refresh rate (e.g., 1 refresh/sec).
  • Having the backend send a single "session updated" signal with versioning so the client can ignore duplicates.
  • Avoiding full loadHistory() on every message; instead apply incremental patches/deltas.
3. 🟡 Terminal control-sequence injection via unsanitized error text in TUI system messages
Property Value
Severity Medium
CWE CWE-117
Location src/tui/tui.ts:87-89

Description

The TUI surfaces subscription errors directly into the chat log without sanitizing control characters:

  • createTuiSessionMessageSubscriptionController().report() builds a user-visible system message that includes key and String(err).
  • runTui() wires onError to chatLog.addSystem(message) which renders the text into the terminal UI.
  • String(err) may include attacker-controlled content (e.g., gateway/server error messages) including ANSI escape sequences and newlines.

This can allow terminal/control-sequence injection (e.g., screen clearing, cursor movement, deceptive prompts) and also risks leaking sensitive internal error details into the UI.

Vulnerable code:

const report = (action: string, key: string, err: unknown) => {
  params.onError?.(`session message ${action} failed for ${key}: ${String(err)}`);
};

and the sink:

onError: (message) => {
  chatLog.addSystem(message);
  tui.requestRender();
},

Recommendation

Sanitize/escape untrusted strings before rendering them in the terminal, and avoid echoing raw error objects.

  • Strip ANSI escape sequences and other C0 control characters (except safe whitespace) from key and error text.
  • Consider logging full error details to a debug log, while showing a generic user-facing message.

Example fix:

function stripTerminalControls(input: string): string {
  ​// Remove ANSI escape codes
  const noAnsi = input.replace(/\x1b\[[0-9;]*[A-Za-z]/g, "");
  ​// Remove other control chars except tab/newline if you want to keep them
  return noAnsi.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F]/g, "");
}

const report = (action: string, key: string, err: unknown) => {
  const safeKey = stripTerminalControls(String(key));
  const safeErr = stripTerminalControls(err instanceof Error ? (err.message ?? String(err)) : String(err));
  params.onError?.(`session message ${action} failed for ${safeKey}: ${safeErr}`);
};

Optionally, replace safeErr with a generic message (e.g., "see logs") and log err separately.

4. 🔵 Subscription confusion via trusting server-returned session key for unsubscribe operations
Property Value
Severity Low
CWE CWE-345
Location src/tui/tui.ts:113-117

Description

The session message subscription controller stores the server-returned result.key as the active subscription key without verifying it matches the requested session key or is well-formed.

  • Input: key comes from getSessionKey() and is used to subscribe.
  • Response: result.key is accepted if it is non-empty after trim().
  • State: activeKey is overwritten with this unvalidated result.key.
  • Sink: later unsubscribeSessionMessages({ key: activeKey }) uses this value.

If the gateway/server is buggy, malicious, or compromised, it can return an arbitrary key (including keys for other sessions or keys containing control characters). This can cause the client to send unsubscribe requests for a different session than intended (subscription confusion / confused-deputy style behavior). In systems where server-side authorization checks are imperfect, this could impact other sessions’ message streams. Even with correct server auth, allowing arbitrary keys may lead to log/UI injection if the key is ever surfaced elsewhere.

Vulnerable code:

const result = await params.client.subscribeSessionMessages({ key });
if (syncGeneration === generation && result.key.trim()) {
  activeKey = result.key;
}

Recommendation

Do not trust result.key unless it is validated.

  • Prefer: treat the subscription key as client-chosen state and keep activeKey = key.
  • If the server may canonicalize keys, only accept canonical values that are equivalent to the requested key and meet a strict format (e.g., allowlist of [A-Za-z0-9:_-], max length).

Example fix (strict equality):

const result = await params.client.subscribeSessionMessages({ key });
if (syncGeneration === generation) {
  if (typeof result.key === "string" && result.key.trim() === key) {
    activeKey = key;
  } else {
    ​// ignore/raise error; keep activeKey as the requested key or null
    activeKey = key;
    params.onError?.(`Unexpected subscription key returned by server`);
  }
}

If canonicalization is required, implement a normalizeSessionKey() and compare normalized forms; additionally reject keys containing control characters (e.g. /[\x00-\x1F\x7F]/).


Analyzed PR: #73402 at commit 9421edb

Last updated on: 2026-04-28T08:00:40Z

@vincentkoc vincentkoc added clownfish:merge-ready clawsweeper Tracked by ClawSweeper automation labels Apr 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: M maintainer Maintainer-authored PR labels Apr 28, 2026
@greptile-apps

greptile-apps Bot commented Apr 28, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR adds live transcript subscription support to the bundled TUI gateway client, fixing the real-time message delivery gap reported in #38829. It introduces a generation-based createTuiSessionMessageSubscriptionController for safe concurrent subscribe/unsubscribe lifecycle management, wires handleSessionMessageEvent into the event loop, and defers history reloads while a local stream is active to avoid clobbering in-flight output.

Confidence Score: 4/5

Safe to merge; two minor P2 issues that do not affect correctness on the happy path.

No P0 or P1 issues found. Two P2 findings: (1) activeKey stored without trimming while the dedup guard uses a trimmed comparison, which could cause spurious resubscription cycles if the server returns keys with whitespace; (2) handleSessionMessageEvent omits the conventional tui.requestRender() call present in all other handlers, risking a stale paint in the deferred-refresh path. Logic for session filtering, concurrency safety, and deferred reloads is sound and well-covered by new tests.

src/tui/tui.ts (key trimming in subscription controller) and src/tui/tui-event-handlers.ts (missing render call).

Prompt To Fix All With AI
This is a comment left during a code review.
Path: src/tui/tui-event-handlers.ts
Line: 517-538

Comment:
**Missing `tui.requestRender()` breaks the handler convention**

Every other handler (`handleChatEvent`, `handleAgentEvent`, `handleBtwEvent`) ends with `tui.requestRender()`. `handleSessionMessageEvent` never calls it. When a live message arrives and `state.activeChatRunId` is set, the function sets `pendingHistoryRefresh = true` and returns without scheduling a render; `refreshSessionInfo` is fire-and-forget (`void`). If the session-info callback doesn't internally call `requestRender`, the activity-status update from that call won't be painted until the next unrelated event triggers a render cycle.

```suggestion
    void refreshSessionInfo?.();
    if (state.activeChatRunId) {
      pendingHistoryRefresh = true;
      tui.requestRender();
      return;
    }
    pendingHistoryRefresh = false;
    void loadHistory?.();
    tui.requestRender();
```

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/tui/tui.ts
Line: 113-117

Comment:
**Inconsistent key trimming may cause repeated resubscription**

`activeKey` is stored directly as `result.key` without trimming, but the early-exit guard compares the trimmed `getSessionKey()` output against `activeKey`. If the server echoes back the key with surrounding whitespace, `"session:A" === " session:A "` is false, so every subsequent `syncActiveSessionSubscription` call bypasses the dedup check and issues a fresh unsubscribe + subscribe without ever converging.

Consider storing `result.key.trim()` into `activeKey` to match the trimmed comparison used in the guard condition.

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

Reviews (1): Last reviewed commit: "fix(tui): subscribe to live session tran..." | Re-trigger Greptile

Comment on lines +517 to +538
const handleSessionMessageEvent = (payload: unknown) => {
if (!payload || typeof payload !== "object") {
return;
}
const evt = payload as { sessionKey?: unknown };
syncSessionKey();
if (
!isSameSessionKey(
typeof evt.sessionKey === "string" ? evt.sessionKey : undefined,
state.currentSessionKey,
)
) {
return;
}
void refreshSessionInfo?.();
if (state.activeChatRunId) {
pendingHistoryRefresh = true;
return;
}
pendingHistoryRefresh = false;
void loadHistory?.();
};

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 Missing tui.requestRender() breaks the handler convention

Every other handler (handleChatEvent, handleAgentEvent, handleBtwEvent) ends with tui.requestRender(). handleSessionMessageEvent never calls it. When a live message arrives and state.activeChatRunId is set, the function sets pendingHistoryRefresh = true and returns without scheduling a render; refreshSessionInfo is fire-and-forget (void). If the session-info callback doesn't internally call requestRender, the activity-status update from that call won't be painted until the next unrelated event triggers a render cycle.

Suggested change
const handleSessionMessageEvent = (payload: unknown) => {
if (!payload || typeof payload !== "object") {
return;
}
const evt = payload as { sessionKey?: unknown };
syncSessionKey();
if (
!isSameSessionKey(
typeof evt.sessionKey === "string" ? evt.sessionKey : undefined,
state.currentSessionKey,
)
) {
return;
}
void refreshSessionInfo?.();
if (state.activeChatRunId) {
pendingHistoryRefresh = true;
return;
}
pendingHistoryRefresh = false;
void loadHistory?.();
};
void refreshSessionInfo?.();
if (state.activeChatRunId) {
pendingHistoryRefresh = true;
tui.requestRender();
return;
}
pendingHistoryRefresh = false;
void loadHistory?.();
tui.requestRender();
Prompt To Fix With AI
This is a comment left during a code review.
Path: src/tui/tui-event-handlers.ts
Line: 517-538

Comment:
**Missing `tui.requestRender()` breaks the handler convention**

Every other handler (`handleChatEvent`, `handleAgentEvent`, `handleBtwEvent`) ends with `tui.requestRender()`. `handleSessionMessageEvent` never calls it. When a live message arrives and `state.activeChatRunId` is set, the function sets `pendingHistoryRefresh = true` and returns without scheduling a render; `refreshSessionInfo` is fire-and-forget (`void`). If the session-info callback doesn't internally call `requestRender`, the activity-status update from that call won't be painted until the next unrelated event triggers a render cycle.

```suggestion
    void refreshSessionInfo?.();
    if (state.activeChatRunId) {
      pendingHistoryRefresh = true;
      tui.requestRender();
      return;
    }
    pendingHistoryRefresh = false;
    void loadHistory?.();
    tui.requestRender();
```

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

Comment thread src/tui/tui.ts
Comment on lines +113 to +117
try {
const result = await params.client.subscribeSessionMessages({ key });
if (syncGeneration === generation && result.key.trim()) {
activeKey = result.key;
}

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 key trimming may cause repeated resubscription

activeKey is stored directly as result.key without trimming, but the early-exit guard compares the trimmed getSessionKey() output against activeKey. If the server echoes back the key with surrounding whitespace, "session:A" === " session:A " is false, so every subsequent syncActiveSessionSubscription call bypasses the dedup check and issues a fresh unsubscribe + subscribe without ever converging.

Consider storing result.key.trim() into activeKey to match the trimmed comparison used in the guard condition.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/tui/tui.ts
Line: 113-117

Comment:
**Inconsistent key trimming may cause repeated resubscription**

`activeKey` is stored directly as `result.key` without trimming, but the early-exit guard compares the trimmed `getSessionKey()` output against `activeKey`. If the server echoes back the key with surrounding whitespace, `"session:A" === " session:A "` is false, so every subsequent `syncActiveSessionSubscription` call bypasses the dedup check and issues a fresh unsubscribe + subscribe without ever converging.

Consider storing `result.key.trim()` into `activeKey` to match the trimmed comparison used in the guard condition.

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

@clawsweeper

clawsweeper Bot commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed June 15, 2026, 1:17 PM ET / 17:17 UTC.

Summary
The branch adds TUI backend subscribe/unsubscribe calls, a Gateway client request path, a session-message subscription controller, session.message event handling, and focused TUI regression tests.

PR surface: Source +159, Tests +152, Docs +1. Total +312 across 9 files.

Reproducibility: yes. at source level: current main exposes session.message subscriptions, but the TUI does not subscribe to or dispatch that event. I did not run a live Gateway/TUI reproduction in this read-only review.

Review metrics: none identified.

Merge readiness
Overall: 🦪 silver shellfish
Proof: 🌊 off-meta tidepool
Patch quality: 🦪 silver shellfish
Result: blocked by patch quality or review findings.

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

Rank-up moves:

  • Refresh the branch against current main.
  • Sanitize or replace subscription error text before it reaches chatLog.addSystem(...).
  • [P2] Add or link redacted live Gateway-to-TUI proof for the transcript update path.

Mantis proof suggestion
A short visible terminal proof would show whether the TUI updates live after another surface appends to the active session. 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 the TUI shows a live transcript update for the active session after another OpenClaw surface sends a message.

Risk before merge

  • [P1] The branch is currently conflicting with main, so maintainers cannot trust a merge result until it is refreshed against the newer TUI event-handler and shutdown code.
  • [P1] The new subscription error path can render raw session keys and backend error strings in the terminal, creating a concrete terminal control-sequence and sensitive-detail exposure risk.
  • [P1] No live Gateway-to-TUI terminal proof was found for the after-fix behavior; the maintainer proof gate does not apply, but this is still a user-visible live transport change.

Maintainer options:

  1. Sanitize And Refresh Before Merge (recommended)
    Refresh the branch on current main and sanitize or replace the raw subscription key/error text before another merge review.
  2. Accept Raw Terminal Error Text
    Maintainers could explicitly accept rendering backend error details in the TUI, but that should be a deliberate security-boundary decision.
  3. Replace The Conflicting Branch
    If the rebase is larger than the useful fix, open a narrow replacement that adds only the TUI subscription path, sanitized errors, and focused tests.

Next step before merge

  • [P2] The PR remains necessary but is protected by maintainer labeling, currently conflicts with main, and needs a security-boundary fix before merge.

Security
Needs attention: The diff introduces a terminal-visible subscription error path that renders untrusted key and error strings without sanitization.

Review findings

  • [P1] Sanitize subscription errors before rendering — src/tui/tui.ts:88
  • [P3] Drop the normal PR changelog edit — CHANGELOG.md:16
Review details

Best possible solution:

Carry the TUI subscription behavior onto current main, integrate it with the newer handler lifecycle, sanitize terminal-visible subscription errors, and verify a real Gateway-to-TUI live transcript update before merge.

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

Yes, at source level: current main exposes session.message subscriptions, but the TUI does not subscribe to or dispatch that event. I did not run a live Gateway/TUI reproduction in this read-only review.

Is this the best way to solve the issue?

No, not as submitted: using the existing Gateway session-message subscription is the right owner-boundary direction, but the branch needs a main refresh and sanitized terminal error handling before it is the best mergeable fix.

Full review comments:

  • [P1] Sanitize subscription errors before rendering — src/tui/tui.ts:88
    report() sends the raw session key and String(err) into chatLog.addSystem(...). Gateway/backend errors can contain ANSI/control characters or sensitive details, so sanitize or replace those values before rendering them in the TUI.
    Confidence: 0.89
  • [P3] Drop the normal PR changelog edit — CHANGELOG.md:16
    The repository policy makes CHANGELOG.md release-owned. Keep this release-note context in the PR body or squash commit instead of editing the changelog from this normal fix PR.
    Confidence: 0.81

Overall correctness: patch is incorrect
Overall confidence: 0.86

AGENTS.md: found and applied where relevant.

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

Label changes

Label justifications:

  • P2: This targets a normal-priority TUI live transcript regression with a restart/reload workaround and limited blast radius.
  • merge-risk: 🚨 security-boundary: The diff adds a terminal-visible error path that can surface raw session keys and backend error strings.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🌊 off-meta tidepool and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: This is a member-authored maintainer-labeled PR, so the external-contributor proof gate does not apply; live terminal proof would still materially help review.
Evidence reviewed

PR surface:

Source +159, Tests +152, Docs +1. Total +312 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 6 185 26 +159
Tests 2 152 0 +152
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 9 338 26 +312

Security concerns:

  • [medium] Raw subscription errors reach terminal UI — src/tui/tui.ts:88
    The controller formats key and String(err) directly, and runTui sends that text to chatLog.addSystem(...); this can expose control characters or sensitive backend detail in the terminal.
    Confidence: 0.89

What I checked:

  • Root policy read and applied: Root AGENTS.md was read fully; its ClawSweeper PR review, protected-label, proof, changelog, TUI, and security-boundary guidance affected this review. (AGENTS.md:1, 8ded75628437)
  • Scoped TUI policy read and applied: The scoped TUI guide says fake-backend PTY tests do not prove Gateway transport or live streaming, so unit tests are not enough for live behavior confidence. (src/tui/AGENTS.md:1, 8ded75628437)
  • Current main TUI event dispatch misses transcript updates: Current main dispatches chat, chat.side_result, and agent events, with no session.message branch for live transcript updates. (src/tui/tui.ts:1513, 8ded75628437)
  • Current main TUI backend has no subscription methods: The current TuiBackend interface exposes history/session methods but no subscribeSessionMessages or unsubscribeSessionMessages contract. (src/tui/tui-backend.ts:130, 8ded75628437)
  • Gateway subscription API exists on main: Current main already has sessions.messages.subscribe and sessions.messages.unsubscribe handlers that register per-session message event subscribers. (src/gateway/server-methods/sessions.ts:1093, 8ded75628437)
  • Protocol docs describe the intended subscription surface: Gateway protocol docs list sessions.messages.subscribe and sessions.messages.unsubscribe as transcript/message event subscriptions for one session. Public docs: docs/gateway/protocol.md. (docs/gateway/protocol.md:432, 8ded75628437)

Likely related people:

  • vincentkoc: Authored this PR and has recent current-main commits on gateway session notifications and optional model catalog loading near the affected runtime surface. (role: likely follow-up owner; confidence: high; commits: 9421edb6e689, c68291980880, dd8d52c7d9c6; files: src/tui/tui.ts, src/tui/gateway-chat.ts, src/gateway/server-methods/sessions.ts)
  • RomneyDa: Recent merged TUI history includes optimistic-message and event-handler stabilization across history reloads and runId reassignment. (role: recent TUI session-event contributor; confidence: medium; commits: ac9a219692aa, b79effefee92, d91ef6bb171d; files: src/tui/tui.ts, src/tui/tui-event-handlers.ts)
  • steipete: Recent history shows substantial TUI session refresh/performance work plus gateway protocol/session documentation and session-goal changes around the same live state surface. (role: adjacent TUI and gateway session owner; confidence: medium; commits: 18dc6e5cd4f8, 2682c027746b, a6ecc4bd89f4; files: src/tui/tui.ts, src/tui/tui-session-actions.ts, docs/gateway/protocol.md)
  • jalehman: Current main is a transcript reader seam refactor touching the gateway session event/transcript path that the TUI subscription would consume. (role: recent gateway transcript contributor; confidence: medium; commits: 8ded75628437, ef47dd610c87; files: src/gateway/server-session-events.ts, src/gateway/server-methods/sessions.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.

@vincentkoc

Copy link
Copy Markdown
Member Author

Closing this generated ProjectClownfish fix attempt.

The refreshed cluster result from https://github.com/openclaw/clownfish/actions/runs/27594977909 routes #73402 and its linked live refs through central security handling, not autonomous merge/repair. The branch is also conflicting and still lacks passing real-behavior proof, so keeping this PR open only blocks queue cleanup for ghcrawl-156978-autonomous-smoke.

@vincentkoc vincentkoc closed this Jun 16, 2026
@shakkernerd
shakkernerd deleted the clownfish/ghcrawl-156978-autonomous-smoke branch October 19, 2026 23:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper Tracked by ClawSweeper automation maintainer Maintainer-authored PR merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. size: M 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.

openclaw tui terminal cannot receive real-time messages

1 participant