#21481: ClarityOS: restore/stabilize tab + add update/smoke scripts
app: web-ui
gateway
scripts
size: XL
Cluster:
Gateway and System Fixes
Focused PR for ClarityOS restoration and maintenance workflow.\n\nIncludes:\n- Restore ClarityOS tab wiring (UI + gateway handlers)\n- Stabilize polling/rendering behavior\n- Resolve gateway handler integration cleanly\n- Add scripts/local/update-custom.sh\n- Add scripts/local/smoke-clarityos.sh
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
This PR restores the ClarityOS tab to the Control UI and adds maintenance scripts for local development workflows.
**Key changes:**
- Added new ClarityOS tab with comprehensive dashboard showing status, timeline, proposals, and nightly improvements
- Integrated 16 new gateway RPC handlers (`clarityos.*`) that invoke Python scripts for orchestration data
- Added polling (60s interval) with visibility/connection checks to prevent aggressive requests
- Added two bash maintenance scripts: `update-custom.sh` (branch syncing) and `smoke-clarityos.sh` (validation checks)
- Removed i18n dependency from UI rendering (hardcoded English strings)
**Critical issues:**
- `ui/src/ui/app.ts` imports and calls `resolveInjectedAssistantIdentity()` which does not exist in `assistant-identity.ts`. This will cause a runtime error on app initialization.
- Sessions tab behavior changed: clicking delete no longer auto-refreshes the list, requiring manual refresh
**Minor concerns:**
- The ClarityOS handlers spawn Python subprocesses synchronously via `spawnSync` which blocks the event loop during execution
- Type definitions for ClarityOS responses use optional properties extensively (`status?.extra?.watchdog?.state`) making the view logic brittle
<h3>Confidence Score: 1/5</h3>
- This PR has critical runtime errors that will break the application on startup
- The missing `resolveInjectedAssistantIdentity` function will cause immediate runtime failure when the app initializes. This is a blocking issue that must be fixed before merge. Additionally, the session deletion behavior change removes auto-refresh functionality.
- Pay close attention to `ui/src/ui/app.ts` (missing function will cause crash) and `ui/src/ui/assistant-identity.ts` (needs to export the missing function)
<sub>Last reviewed commit: 90736c7</sub>
<!-- greptile_other_comments_section -->
<sub>(3/5) Reply to the agent's comments like "Can you suggest a fix for this @greptileai?" or ask follow-up questions!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#18676: feat: add patch-ui.sh
by jasonkneen · 2026-02-16
77.8%
#7316: fix: /chat dashboard performance
by felipcsousa · 2026-02-02
76.9%
#12168: feat: integrate Mission Control dashboard into Control UI
by riftagent-git · 2026-02-08
76.2%
#21679: fix: Mission Control dashboard issues for agent status, stale sessi...
by thejawdoc · 2026-02-20
75.6%
#10367: CLI/Ops: resilient browser fill + failover hardening + operations t...
by cluster2600 · 2026-02-06
75.3%
#11788: feat: inter-agent communication via CLI scripts
by jingkang0822 · 2026-02-08
74.4%
#8713: feat: gateway memory monitor, install linger, docs and failover
by quratus · 2026-02-04
74.4%
#13838: UI: fix config panel CI failures and modularize rendering
by fresed05 · 2026-02-11
74.1%
#9218: Fix Control UI chat resync on gaps and terminal events
by figitaki · 2026-02-05
74.0%
#6888: feat: PowerShell completion install/uninstall + templates script + ...
by ThinkIbrokeIt · 2026-02-02
73.9%