Skip to content

feat(ui): show what an idle chat is waiting on - #198891

Merged
obviyus merged 3 commits into
mainfrom
feat/ui-session-waiters
Nov 14, 2026
Merged

obviyus merged 3 commits into
mainfrom
feat/ui-session-waiters

Conversation

@obviyus

@obviyus obviyus commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

An agent can end its turn and wait for a background command whose exit continues the chat (tools.exec.notifyOnExit, on by default). Nothing in the conversation says that work is pending. The only signal is a quiet ring in the sidebar, and raw completion notices are hidden from chat history, so the chat looks finished until the agent suddenly replies.

User Impact

While the chat is idle and a background command will continue it, a card above the composer reads Waiting on <command> with its elapsed time. Selecting it opens that command's live output in Processes, where Stop already lives. Two or more waiters collapse to Waiting on N processes; expanding it lists each one.

The card hides while a turn runs and disappears when the command exits, as its completion starts the next turn. A requested Stop removes it at once, because a stopped command does not continue the chat. Chats with no background work load nothing new.

Why This Change Was Made

  • Data: sessions.processes.list rows gain an optional wakesSession: true. The existing process observation sets it for running, backgrounded commands that still have a captured chat destination and no requested Stop, matching the completion owner's guards. It reuses hasExitWake, the exit-wake check that fix(agents): stop agents polling background waits that will wake them #198908 added beside the exec result formatter, so the card and the agent's guidance read the same fact. The additive protocol field has no version bump; protocol outputs and validators were regenerated (no generated diff).
  • UI: the card shares the composer stack's card rules with the goal and progress cards (selector lists in composer-progress.css, no new stylesheet), plus the shared session spinner, ElapsedTime and the scroll-state name fade. It reads the existing ProcessesPanelData observation, the same owner Processes and Details use, so reads, sessions.processes.changed refreshes and access errors behave identically. It mounts only while the session row reports backgroundProcessCount; session keying and run-state checks live in the lazy chunk.
  • Opening output: selecting a command reuses the existing Details → Processes action, so Back returns to Details, which lists the running commands.
  • Not Labs: like the sidebar background-work ring (feat: show background work in the sidebar #188433), this presents existing state without new cost or config.

Evidence

Real Gateway, real agent (gpt-5.5 through the OpenAI Responses API), isolated state and port. The agent started sh wait-for-deploy.sh and later sh watch-ci.sh itself as background exec calls, then ended its turn. Before: main at 18892937f802 (dist fixture). After: this branch, Gateway from source with the branch's production Control UI build. Avatars are blurred in every capture.

Scenario Before After
Idle, waiting on one command · 1440×900 · dark Before: idle chat waiting on one command, desktop dark After: Waiting on sh wait-for-deploy.sh card above the composer, desktop dark
Idle, waiting on one command · 1440×900 · light Before: idle chat waiting on one command, desktop light After: waiting card, desktop light
Idle, waiting on one command · 390×844 · dark Before: phone dark After: waiting card above the phone composer, dark
Idle, waiting on one command · 390×844 · light Before: phone light After: waiting card above the phone composer, light

New states:

State Screenshot
Card selected: live output and Stop in Processes · 1440×900 · dark Processes detail opened from the waiting card, desktop dark
Card selected · 1440×900 · light Processes detail opened from the waiting card, desktop light
Card selected · 390×844 · dark Processes sheet opened from the waiting card, phone dark
Two waiters, collapsed · 1440×900 · dark Waiting on 2 processes, collapsed, desktop dark
Two waiters, expanded · 1440×900 · dark Waiting on 2 processes, expanded, desktop dark
Two waiters, expanded · 1440×900 · light Waiting on 2 processes, expanded, desktop light
Two waiters, expanded · 390×844 · dark Waiting on 2 processes, expanded, phone dark
Two waiters, expanded · 390×844 · light Waiting on 2 processes, expanded, phone light

The video (real time, ~98 s) starts with two waiters. The first command exits: the card hides while the woken turn runs, the agent reports the deploy, and the card returns for the remaining command. The second exit ends with no card.

waiters-wake-final.mp4

Also exercised on the same Gateway: selecting Stop in the opened detail removed the card within one refresh and started no turn; a fresh page load showed the card within 0.5 s.

  • ocx test: bash-process-observation.test.ts 8 passed (new case: only running, destination-captured, unstopped processes are marked; exit clears it) and chat-composer-waiters.test.tsx 1 passed (filters non-waiters, opens the selected output, collapses two waiters and expands them).
  • UI typecheck, scoped oxlint/oxfmt, stylelint, Control UI controller guard, ui:i18n:verify and baseline (no change), test-lines ratchet (+92 of 400) passed. protocol:gen and ui:validators:gen produced no diff.
  • Control UI budgets vs the 18892937f802 base build (ui:check-performance --base-dist): chat boot JS +202 B gzip (the lazy gate), total CSS +114 B gzip / +871 B raw, startup and New Session +10 B. The first revision added +449 B JS and +848 B CSS gzip; sharing the composer stack rules and moving logic into the lazy chunk removed most of it. Because the base already exceeds these caps, the gate allows 64 B, so control-ui-performance still fails on this growth.

CI

Rebased onto main after #198908 landed (head 05a3083e); CI for this head is running. Known reds on the previous head:

  • control-ui-performance: caused by this PR (chat boot JS +220 B gzip, total CSS +114 B gzip). main is already over these caps, so the gate allows 64 B. Maintainer-approved in feat(ui): show what an idle chat is waiting on #198891 (comment).
  • check-test-types: inherited (scripts/perf/state-read-worker-bench.ts, not touched here).
  • A local ocx build --dts of this head stops at the absolute Control UI budget check, as current main commits (e741fd0d, d98f18ff) do; the packed tarball integrity check, openclaw --version and gateway --help pass.

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: M labels Nov 14, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR adds an idle-chat waiting card that names background commands and opens their output in Processes.

Example: The agent starts sh wait-for-deploy.sh in the background and ends its turn.

  • Before: The conversation looks finished, with only a sidebar ring indicating background work.
  • After: A Waiting on sh wait-for-deploy.sh card shows elapsed time and opens the command’s Processes detail.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful, focused implementation with strong visual proof and no actionable findings; CI remains failed for an accepted budget delta and independently attributed failures.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected real-Gateway screenshots show the new desktop and mobile waiting card, multiple-process disclosure, and the selected process detail; the body also records completion, Stop, and reload exercises.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: An idle conversation gives little indication that a background command may continue the chat.
Reason: The maintainer-authored direction adds useful visibility without new configuration, execution policy, or persistent state.

Merge readiness

✅ Ready for maintainer review

Keep this PR open: it adds useful, maintainer-approved visibility into pending background work, with no actionable code findings; the earlier asset-budget finding is resolved by recorded acceptance.

Priority: P2
Reviewed head: 05a3083e6b5e234333e6dffdfb6ef38c8725a947

Before merge

None.

Findings

None.

Agent review details

How this fits together

The process registry supplies session-scoped observations to the Gateway; the Control UI derives waiting cards from the shared process observation and uses existing panel navigation.

flowchart LR
  A[Background exec registry] --> B[Process observation]
  B --> C[Gateway process list]
  C --> D[Shared UI process observation]
  D --> E[Idle composer waiting card]
  E --> F[Processes output panel]
Loading

Technical review

Best possible solution:

Retain the focused waiting-card implementation and handle the attributed CI failures through the existing landing workflow.

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

Current-main source and the supplied before captures establish the missing composer indication; no target code was executed during this review.

Is this the best way to solve the issue?

The change uses the existing completion fact, shared process observation, lazy composer boundary, and panel navigation, providing the smallest coherent implementation of the requested feature.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5ee546414080.

Provenance checked

  • Process observation and completion keeps the original intent (fix: restore subagent and background process side panels #164061: Restore non-consuming background-process inspection with existing process and session owners.)
  • Composer lazy loading keeps the original intent (96dc080: Keep optional presentation modules outside ordinary text-chat boot until needed.)
  • Composer card styling keeps the original intent (50c7400: Preserve the mobile composer’s compact grouping and visual hierarchy; the patch extends existing selectors without changing their declarations.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 96dc080 adds ui/src/pages/chat/components/chat-composer-regions.tsx:6 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 96dc080717c3; files: ui/src/pages/chat/components/chat-composer-regions.tsx)
  • Ayaan Zaidi: Raw commit 2a8e0b3 adds src/agents/bash-tools.exec-output.ts:64 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2a8e0b3c6ed6; files: src/agents/bash-tools.exec-output.ts)
  • Vyctor H. Brzezowski: Raw commit 294cce9 adds ui/src/i18n/locales/en-processes.ts:14 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 294cce90a1e4; files: ui/src/i18n/locales/en-processes.ts)

PR surface

Source +256, Tests +89, Docs +2. Total +347 across 12 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 8 262 6 +256
Tests 2 89 0 +89
Docs 2 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 353 6 +347

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The card improves visibility and navigation for background waits without changing execution or delivery behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-14T14:18:16.635Z sha 1560152 :: needs changes before merge. :: [P2] Remove the waiter UI’s over-budget asset growth

Reviewed November 14, 2026, 1:39 PM ET / 18:39 UTC (Revision 2).

@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 14, 2026
@obviyus

obviyus commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator Author

Maintainer decision on the control-ui-performance finding: the measured growth of this PR (chat boot JS +220 B gzip, total CSS +114 B gzip / +871 B raw) is approved. main is already over these fixed caps, so the gate allows only 64 B of build variance; the remaining delta is the minimum lazy-load gate for the card, after cutting the first revision's +449 B JS / +848 B CSS. The inherited overage on main stays as is and is not absorbed here.

obviyus and others added 3 commits November 14, 2026 21:16
When the agent ends its turn and a background command will continue the
chat on exit, a calm card above the composer names the command and its
elapsed time. Selecting it opens that command's live output in Processes,
where Stop is available. Several waiters collapse to one summary row.

sessions.processes.list marks those running rows with wakesSession, from
the existing process registry and completion guards.

Co-authored-by: obviyus <[email protected]>
Share the composer stack card rules instead of shipping a separate
stylesheet, move session keying and run-state checks into the lazy card,
and open output through the existing Processes action.

Co-authored-by: obviyus <[email protected]>
…tion

Process observation reads the exit-wake fact from the exec result
formatter that now owns it, instead of a second copy in the registry.

Co-authored-by: obviyus <[email protected]>
@obviyus
obviyus force-pushed the feat/ui-session-waiters branch from 7d52a6c to 05a3083 Compare November 14, 2026 16:05
@obviyus

obviyus commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator Author

Rebased onto main after #198908 landed; the exit-wake check is now shared with the exec formatter instead of duplicated in the registry. Size growth is maintainer-approved (see earlier comment). @clawsweeper re-review

@obviyus

obviyus commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 14, 2026
@obviyus

obviyus commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator Author

Maintainer override for exact head 05a3083 (ClawSweeper ready on this head):

  • control-ui-performance: maintainer-approved growth of this PR (chat boot JS +220 B gzip, total CSS +114 B gzip), see feat(ui): show what an idle chat is waiting on #198891 (comment). main is already over these fixed caps (base chat boot JS 1,313,818 B vs cap 1,303,711 B; total CSS 338,095 B vs 326,575 B), so only 64 B of variance is allowed; the inherited overage is not absorbed here.
  • Intersect shared OpenClawKit dead code: inherited. It flags struct OpenClawIDDiscoveryAccountError in apps/shared/OpenClawKit/Sources/OpenClawKit/OpenClawIDDiscoveryAccount.swift, added on main by feat(macos): sign in with OpenClaw ID and approve this Mac as your device #197630; this PR changes no Swift files (it ran here only because the gateway protocol schema changed).
  • openclaw/ci-gate: aggregate of the two above.

All other required jobs are green on this head (checks-ui (1/3) passed on rerun after an unrelated WebKit model-picker layout flake).

@obviyus
obviyus merged commit a519dcf into main Nov 14, 2026
227 of 236 checks passed
@obviyus
obviyus deleted the feat/ui-session-waiters branch November 14, 2026 18:42
@obviyus

obviyus commented Nov 14, 2026

Copy link
Copy Markdown
Collaborator Author

Landed as a519dcf. When the chat is idle and a background command will wake it, a card above the composer now shows what it is waiting on, with elapsed time and a link to the live output and Stop. Verified with a real agent on an isolated Gateway (screenshots and video above).

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 15, 2026
## What Problem This Solves

An agent can end its turn and wait for a background command whose exit continues the chat (`tools.exec.notifyOnExit`, on by default). Nothing in the conversation says that work is pending. The only signal is a quiet ring in the sidebar, and raw completion notices are hidden from chat history, so the chat looks finished until the agent suddenly replies.

## User Impact

While the chat is idle and a background command will continue it, a card above the composer reads **Waiting on `<command>`** with its elapsed time. Selecting it opens that command's live output in **Processes**, where **Stop** already lives. Two or more waiters collapse to **Waiting on N processes**; expanding it lists each one.

The card hides while a turn runs and disappears when the command exits, as its completion starts the next turn. A requested Stop removes it at once, because a stopped command does not continue the chat. Chats with no background work load nothing new.

## Why This Change Was Made

- **Data:** `sessions.processes.list` rows gain an optional `wakesSession: true`. The existing process observation sets it for running, backgrounded commands that still have a captured chat destination and no requested Stop, matching the completion owner's guards. It reuses `hasExitWake`, the exit-wake check that openclaw#198908 added beside the exec result formatter, so the card and the agent's guidance read the same fact. The additive protocol field has no version bump; protocol outputs and validators were regenerated (no generated diff).
- **UI:** the card shares the composer stack's card rules with the goal and progress cards (selector lists in `composer-progress.css`, no new stylesheet), plus the shared session spinner, `ElapsedTime` and the scroll-state name fade. It reads the existing `ProcessesPanelData` observation, the same owner Processes and Details use, so reads, `sessions.processes.changed` refreshes and access errors behave identically. It mounts only while the session row reports `backgroundProcessCount`; session keying and run-state checks live in the lazy chunk.
- **Opening output:** selecting a command reuses the existing Details → Processes action, so **Back** returns to Details, which lists the running commands.
- **Not Labs:** like the sidebar background-work ring (openclaw#188433), this presents existing state without new cost or config.

## Evidence

Real Gateway, real agent (`gpt-5.5` through the OpenAI Responses API), isolated state and port. The agent started `sh wait-for-deploy.sh` and later `sh watch-ci.sh` itself as background exec calls, then ended its turn. Before: `main` at `39efe6fb1cd8` (dist fixture). After: this branch, Gateway from source with the branch's production Control UI build. Avatars are blurred in every capture.

| Scenario | Before | After |
| --- | --- | --- |
| Idle, waiting on one command · 1440×900 · dark | ![Before: idle chat waiting on one command, desktop dark](https://github.com/user-attachments/assets/d95bae30-c24e-4334-8c52-923ff87a9f9d) | ![After: Waiting on sh wait-for-deploy.sh card above the composer, desktop dark](https://github.com/user-attachments/assets/1e6301b4-093f-44ed-922b-a0d5b3e46bbf) |
| Idle, waiting on one command · 1440×900 · light | ![Before: idle chat waiting on one command, desktop light](https://github.com/user-attachments/assets/473758cd-504d-4445-b9e0-83032c3f5067) | ![After: waiting card, desktop light](https://github.com/user-attachments/assets/e618e94d-e62c-4f83-9e5c-7f75fd5ff212) |
| Idle, waiting on one command · 390×844 · dark | ![Before: phone dark](https://github.com/user-attachments/assets/0827c741-921b-4154-b0a4-a7fbcdf567d5) | ![After: waiting card above the phone composer, dark](https://github.com/user-attachments/assets/26c9c966-3652-4f2b-a40e-9013715c6bd1) |
| Idle, waiting on one command · 390×844 · light | ![Before: phone light](https://github.com/user-attachments/assets/94c009b6-761c-40e1-9a22-a5d1cd225cda) | ![After: waiting card above the phone composer, light](https://github.com/user-attachments/assets/c67aa929-984c-4e5f-bd39-591ffcd347ff) |

New states:

| State | Screenshot |
| --- | --- |
| Card selected: live output and Stop in Processes · 1440×900 · dark | ![Processes detail opened from the waiting card, desktop dark](https://github.com/user-attachments/assets/74fde24e-740d-4a0d-aab0-19b1454cb9fa) |
| Card selected · 1440×900 · light | ![Processes detail opened from the waiting card, desktop light](https://github.com/user-attachments/assets/96e181ee-2e01-4e15-97ea-b0a183f5b6da) |
| Card selected · 390×844 · dark | ![Processes sheet opened from the waiting card, phone dark](https://github.com/user-attachments/assets/ca2f907d-fc44-43f5-ab8a-f04f46d8083d) |
| Two waiters, collapsed · 1440×900 · dark | ![Waiting on 2 processes, collapsed, desktop dark](https://github.com/user-attachments/assets/06bc227e-663c-4236-af4a-6947fc528fc7) |
| Two waiters, expanded · 1440×900 · dark | ![Waiting on 2 processes, expanded, desktop dark](https://github.com/user-attachments/assets/75b56dcf-42e4-4dcb-a94b-153a2c7e5f15) |
| Two waiters, expanded · 1440×900 · light | ![Waiting on 2 processes, expanded, desktop light](https://github.com/user-attachments/assets/5856391a-4dc8-4e30-8034-dc2f770e2f87) |
| Two waiters, expanded · 390×844 · dark | ![Waiting on 2 processes, expanded, phone dark](https://github.com/user-attachments/assets/aacc8304-6912-4689-9394-086527e9c60b) |
| Two waiters, expanded · 390×844 · light | ![Waiting on 2 processes, expanded, phone light](https://github.com/user-attachments/assets/770ce3c2-2f7b-4d72-ba7f-f34c6d1e15dc) |

The video (real time, ~98 s) starts with two waiters. The first command exits: the card hides while the woken turn runs, the agent reports the deploy, and the card returns for the remaining command. The second exit ends with no card.

https://github.com/user-attachments/assets/a1c1a505-a49b-40f8-bc37-44d22956c264

Also exercised on the same Gateway: selecting **Stop** in the opened detail removed the card within one refresh and started no turn; a fresh page load showed the card within 0.5 s.

- `ocx test`: `bash-process-observation.test.ts` 8 passed (new case: only running, destination-captured, unstopped processes are marked; exit clears it) and `chat-composer-waiters.test.tsx` 1 passed (filters non-waiters, opens the selected output, collapses two waiters and expands them).
- UI typecheck, scoped oxlint/oxfmt, stylelint, Control UI controller guard, `ui:i18n:verify` and baseline (no change), test-lines ratchet (+92 of 400) passed. `protocol:gen` and `ui:validators:gen` produced no diff.
- Control UI budgets vs the `39efe6fb1cd8` base build (`ui:check-performance --base-dist`): chat boot JS +202 B gzip (the lazy gate), total CSS +114 B gzip / +871 B raw, startup and New Session +10 B. The first revision added +449 B JS and +848 B CSS gzip; sharing the composer stack rules and moving logic into the lazy chunk removed most of it. Because the base already exceeds these caps, the gate allows 64 B, so `control-ui-performance` still fails on this growth.

## CI

Rebased onto `main` after openclaw#198908 landed (head `05a3083e`); CI for this head is running. Known reds on the previous head:

- `control-ui-performance`: caused by this PR (chat boot JS +220 B gzip, total CSS +114 B gzip). `main` is already over these caps, so the gate allows 64 B. Maintainer-approved in openclaw#198891 (comment).
- `check-test-types`: inherited (`scripts/perf/state-read-worker-bench.ts`, not touched here).
- A local `ocx build --dts` of this head stops at the absolute Control UI budget check, as current `main` commits (`b160df89`, `0212c217`) do; the packed tarball integrity check, `openclaw --version` and `gateway --help` pass.

Co-authored-by: Ayaan Zaidi <[email protected]>
obviyus added a commit that referenced this pull request Nov 15, 2026
…199456)

## What Problem This Solves

The composer **Waiting on `<command>`** card added in #198891 shows the same running commands that the session **Details** panel already lists under **Processes**, next to **View all processes** and **Subagents**. Two places now report the same background work.

## User Impact

The card above the composer is gone. The running background command still appears in **Details → Processes**, where it opens its output and **Stop** is available. Exec completion wakes are unchanged: the agent still continues the chat when the command exits.

## Why This Change Was Made

- Removes the card component, its test, its lazy mount in the composer, its selectors in `composer-progress.css`, its three English strings and its docs sentences (`docs/web/control-ui/chat.md`, `docs/gateway/background-process.md`, including the adopted-process mention added later in #199222).
- Removes the optional `wakesSession` field from `sessions.processes.list` rows. Only the card read it: no other reference exists in `ui`, `apps/macos`, `apps/ios`, `apps/android`, `extensions` or `src`, and the Swift and Kotlin protocol models never included it. It is not in any release: `git tag --contains a519dcf` lists no `v*` tag (`v2026.11.5-beta.3` does not contain it). Main and beta are not shipped contracts.
- Keeps `hasExitWake`: exec notifications, `process poll` guidance and durable adoption use it.
- `protocol:gen`, `ui:validators:gen`, `protocol:gen:swift` and `protocol:gen:kotlin` produce no diff.

Net change: 11 insertions, 358 deletions, 12 files.

## Evidence

Real isolated Gateway from source with its own port and state, real agent (`gpt-6-astra` through the OpenAI Responses API). The agent itself started `sh wait-for-deploy.sh` as a background exec whose exit wakes the chat, then ended its turn. Before: `main` at `5fbdf6989130`. After: this branch. Desktop 1440×900, dark theme. The avatar is blurred.

| State | Before (`main`) | After (this branch) |
| --- | --- | --- |
| Idle, waiting on the command | ![Before: Waiting on sh wait-for-deploy.sh card above the composer, desktop dark](https://github.com/user-attachments/assets/87b78165-ebf2-4c44-8ce2-9b69ef12bd00) | ![After: no card above the composer, desktop dark](https://github.com/user-attachments/assets/9763ee4f-475d-4bb0-84b5-87a09e94db3f) |
| Details open | ![Before: Details lists sh wait-for-deploy.sh while the composer card repeats it, desktop dark](https://github.com/user-attachments/assets/ea2e334b-0c78-4fc5-aac4-e2be8d2a17dc) | ![After: Details lists sh wait-for-deploy.sh and View all processes; no composer card, desktop dark](https://github.com/user-attachments/assets/521d2c17-c0a5-4838-8a0d-36efe67a7977) |

- Before: `.chat-waiters` count 1. After: count 0.
- Details → Processes lists `sh wait-for-deploy.sh` and **View all processes** on both sides.
- `sessions.processes.list` on the same running command: before `{status: "running", wakesSession: true, …}`; after `{status: "running", …}` with no `wakesSession`.
- After the command exited on the branch Gateway, the wake turn ran and the agent replied: "The script completed successfully and reported that deployment finished: v2 is live."

Checks:

- `ocx test`: `bash-process-observation.test.ts`, `chat-composer-content.test.tsx`, `chat-composer-status.test.tsx`, `chat-pane-side-panels.test.ts`, `chat-processes-panel.test.ts` pass.
- `tsgo:ui`, `tsgo:core`, scoped oxlint and oxfmt, `lint:ui:styles` (stylelint), `check:control-ui-controllers`, `ui:i18n:verify` pass.
- Control UI budget, `ui:check-performance --base-dist` against the `5fbdf6989130` build:
  - chat boot CSS gzip −112 B (139439 → 139327); total CSS −112 B gzip / −871 B raw.
  - chat boot JS: `control-ui-boot-chat` is 506 B smaller raw, but its hash-normalized gzip is +81 B, so chat boot JS reads +54 B gzip (1310823 → 1310877), inside the 64 B build-variance allowance. `gzip -9` of the same chunk is −127 B. Startup JS −21 B, New Session JS −21 B.
- `ocx build --dts` passes; the packed tarball integrity check, `openclaw --version` and `openclaw gateway --help` from the packed tarball pass.

Co-authored-by: Ayaan Zaidi <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…penclaw#199456)

## What Problem This Solves

The composer **Waiting on `<command>`** card added in openclaw#198891 shows the same running commands that the session **Details** panel already lists under **Processes**, next to **View all processes** and **Subagents**. Two places now report the same background work.

## User Impact

The card above the composer is gone. The running background command still appears in **Details → Processes**, where it opens its output and **Stop** is available. Exec completion wakes are unchanged: the agent still continues the chat when the command exits.

## Why This Change Was Made

- Removes the card component, its test, its lazy mount in the composer, its selectors in `composer-progress.css`, its three English strings and its docs sentences (`docs/web/control-ui/chat.md`, `docs/gateway/background-process.md`, including the adopted-process mention added later in openclaw#199222).
- Removes the optional `wakesSession` field from `sessions.processes.list` rows. Only the card read it: no other reference exists in `ui`, `apps/macos`, `apps/ios`, `apps/android`, `extensions` or `src`, and the Swift and Kotlin protocol models never included it. It is not in any release: `git tag --contains 7f84512` lists no `v*` tag (`v2026.11.5-beta.3` does not contain it). Main and beta are not shipped contracts.
- Keeps `hasExitWake`: exec notifications, `process poll` guidance and durable adoption use it.
- `protocol:gen`, `ui:validators:gen`, `protocol:gen:swift` and `protocol:gen:kotlin` produce no diff.

Net change: 11 insertions, 358 deletions, 12 files.

## Evidence

Real isolated Gateway from source with its own port and state, real agent (`gpt-6-astra` through the OpenAI Responses API). The agent itself started `sh wait-for-deploy.sh` as a background exec whose exit wakes the chat, then ended its turn. Before: `main` at `66e7ae55558c`. After: this branch. Desktop 1440×900, dark theme. The avatar is blurred.

| State | Before (`main`) | After (this branch) |
| --- | --- | --- |
| Idle, waiting on the command | ![Before: Waiting on sh wait-for-deploy.sh card above the composer, desktop dark](https://github.com/user-attachments/assets/87b78165-ebf2-4c44-8ce2-9b69ef12bd00) | ![After: no card above the composer, desktop dark](https://github.com/user-attachments/assets/9763ee4f-475d-4bb0-84b5-87a09e94db3f) |
| Details open | ![Before: Details lists sh wait-for-deploy.sh while the composer card repeats it, desktop dark](https://github.com/user-attachments/assets/ea2e334b-0c78-4fc5-aac4-e2be8d2a17dc) | ![After: Details lists sh wait-for-deploy.sh and View all processes; no composer card, desktop dark](https://github.com/user-attachments/assets/521d2c17-c0a5-4838-8a0d-36efe67a7977) |

- Before: `.chat-waiters` count 1. After: count 0.
- Details → Processes lists `sh wait-for-deploy.sh` and **View all processes** on both sides.
- `sessions.processes.list` on the same running command: before `{status: "running", wakesSession: true, …}`; after `{status: "running", …}` with no `wakesSession`.
- After the command exited on the branch Gateway, the wake turn ran and the agent replied: "The script completed successfully and reported that deployment finished: v2 is live."

Checks:

- `ocx test`: `bash-process-observation.test.ts`, `chat-composer-content.test.tsx`, `chat-composer-status.test.tsx`, `chat-pane-side-panels.test.ts`, `chat-processes-panel.test.ts` pass.
- `tsgo:ui`, `tsgo:core`, scoped oxlint and oxfmt, `lint:ui:styles` (stylelint), `check:control-ui-controllers`, `ui:i18n:verify` pass.
- Control UI budget, `ui:check-performance --base-dist` against the `66e7ae55558c` build:
  - chat boot CSS gzip −112 B (139439 → 139327); total CSS −112 B gzip / −871 B raw.
  - chat boot JS: `control-ui-boot-chat` is 506 B smaller raw, but its hash-normalized gzip is +81 B, so chat boot JS reads +54 B gzip (1310823 → 1310877), inside the 64 B build-variance allowance. `gzip -9` of the same chunk is −127 B. Startup JS −21 B, New Session JS −21 B.
- `ocx build --dts` passes; the packed tarball integrity check, `openclaw --version` and `openclaw gateway --help` from the packed tarball pass.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant