Repository navigation
fix(ui): restore terminal button in chat header - #120436
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 8, 2026, 4:49 AM ET / 08:49 UTC. ClawSweeper reviewWhat this changesThe PR makes the terminal toggle visible in the web chat header for eligible ordinary sessions while preserving the catalog session’s separate open-in-terminal behavior. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessNo patch defect was found: the change restores the ordinary-session action by reusing its existing availability-gated callback while retaining catalog eligibility. This protected maintainer PR is currently dirty against main, so it needs a rebase, exact-head validation, and human merge review. Priority: P2 Review scores
Verification
How this fits togetherThe Control UI builds chat-header actions from session state and workspace callbacks. A terminal action either opens the local terminal dock for an ordinary session or resumes an eligible catalog session in a terminal. flowchart LR
A[Chat session state] --> B[Chat header]
C[Workspace terminal callback] --> B
D[Catalog eligibility] --> E[Shared terminal action]
B --> E
E --> F[Terminal panel event]
F --> G[Terminal dock or catalog session]
Decision needed
Why: The reported dirty merge state overlaps a current-main change to the same header surface, and the exact post-rebase behavior cannot be established from the unavailable current-main blob. Before merge
Agent review detailsSecurityNone. PR surfaceSource +10, Tests +58. Total +68 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase onto current main, preserve the one callback/event path for ordinary sessions and catalog eligibility path, then obtain exact-head UI validation before maintainer merge review. Do we have a high-confidence way to reproduce the issue? Yes: source on the PR base shows that ordinary session keys always cause the catalog-only renderer to return no header action, while the existing workspace callback defines the intended terminal behavior. Is this the best way to solve the issue? Yes, subject to the rebase: sharing the existing availability-gated callback avoids a second event path while preserving the catalog-specific eligibility contract. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c5d00cb47ddb. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
Repair the exact red-main blockers required to land #120436.
808ddf8 to
c45e7ed
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
c45e7ed to
8493430
Compare
|
@clawsweeper re-review Exact head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
8493430 to
5a5f93d
Compare
|
@clawsweeper re-review Exact head: |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
1d98d51 to
bb36368
Compare
|
@clawsweeper re-review Exact head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
bb36368 to
1c50071
Compare
|
@clawsweeper re-review |
|
🦞👀 Command router queued. I will update this comment with the next step. |
Remove the callback option retired by #120463 so the terminal header regression test type-checks on current main.
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready proof for exact head
|
|
Merged via squash.
|
* fix(ui): restore terminal button in chat header * test(ui): follow background task props API Remove the callback option retired by openclaw#120463 so the terminal header regression test type-checks on current main.
Additional instructions
MUST: Keep Allow edits from maintainers enabled for this PR so maintainers
can help update the branch when needed.
AI-assisted: Yes. The implementation and PR preparation were AI-assisted, and the final UI-only branch autoreview was clean.
What Problem This Solves
Ordinary chat users lost the always-visible terminal action after collapsed workspace chrome was removed. The terminal became discoverable only after opening the workspace rail or using a shortcut.
Why This Change Was Made
This uses one shared chat-header terminal renderer. Ordinary sessions consume the existing availability-gated toggle callback, while catalog sessions retain their targeted eligibility checks.
User Impact
Terminal-capable sessions again show an accessible Toggle terminal button in the chat header. Unavailable sessions remain unchanged.
Evidence
91efbbec7efa859f118147da2f6af07d8031ff4b: four rename-aware diff records across five Control UI path names, counting both sides of the 59% component rename.git diff --check, and final branch autoreview are clean.