chore: rename studio → rocCLAW consistently, rename files to match functionality#6
Merged
simonCatBot merged 6 commits intomasterfrom Mar 30, 2026
Merged
Conversation
Naming consistency: "studio" was used internally for rocCLAW-specific
code. Replace throughout with "rocclaw" to match the project name.
Structural renames:
- src/lib/studio/ → src/lib/rocclaw/
- src/app/api/studio/ → src/app/api/rocclaw/
- server/studio-settings.js → server/rocclaw-settings.js
- server/install-context.js → server/rocclaw-install-context.js
- server/install-context.d.ts (import path updated)
- scripts/rocclaw-setup.js (require path updated)
- src/features/agents/operations/studioBootstrapOperation.ts → bootstrapOperation.ts
- src/features/agents/operations/studioBootstrapWorkflow.ts → bootstrapWorkflow.ts
- tests/e2e/helpers/studioRoute.ts → rocclawRoute.ts
User-facing text changes (OpenClaw Studio → rocCLAW):
- src/app/layout.tsx: page title stays "rocCLAW control"
- src/app/page.tsx: loading screen label, heartbeat error, disconnect text
- src/lib/gateway/agentConfig.ts: heartbeat trigger text
- src/features/agents/components/AgentInspectPanels.tsx: danger zone warning
- src/features/agents/components/GatewayConnectScreen.tsx: all UI strings
(status messages, scenario titles, helper text, button labels)
- src/features/agents/components/ConnectionPanel.tsx: token placeholder text
- AGENTS.md: agent instruction reference
Import path updates (all occurrences):
- "@/lib/studio/" → "@/lib/rocclaw/" in all .ts/.tsx files
- "@/app/api/studio/" → "@/app/api/rocclaw/" in all .ts/.tsx files
- server/require(".") references updated to new file names
- tests/ imports updated throughout
Files intentionally NOT renamed (correctly named for their domain):
- src/lib/gateway/gateway-frames.ts — gateway WebSocket protocol types
- src/lib/gateway/gateway-status.ts — gateway connection status
- src/lib/gateway/chatHistoryLimits.ts — gateway history limits
- src/app/api/runtime/disconnect/route.ts — correctly describes the action
Runtime state and CLI strings left as-is:
- "openclaw-studio" dir names (settings, runtime DB) — would break existing installs
- "openclaw-studio" CLI package name — external npm package
- "openclaw-studio-history" cache DB — would break existing cache
- "openclaw-studio CLI" UI string — references actual CLI package name
- Use strict null checks for GPU metrics - Keep 22-char truncation for GPU name (matches other labels) - Resolved rebase conflicts
…name - Fix import path in src/app/api/rocclaw/route.ts: server/install-context → server/rocclaw-install-context - Update heartbeatGatewayClient test expectation: 'OpenClaw Studio heartbeat trigger' → 'rocCLAW heartbeat trigger' - Fix setState-in-effect lint error in GatewayConnectScreen.tsx: Use useLayoutEffect with refs to avoid cascading render warning
Increase window duration from 50ms to 100ms and wait buffer from 10ms to 50ms to reduce timing sensitivity and prevent flaky failures.
- Fix type mismatch in server/rocclaw-install-context.js: ensure issues array is string[] - Refactor GatewayConnectScreen to fix setState-in-effect lint error properly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consistent naming throughout the codebase.
studiowas used internally for rocCLAW-specific code — it now matches the project name.Structural renames
src/lib/studio/src/lib/rocclaw/src/app/api/studio/src/app/api/rocclaw/server/studio-settings.jsserver/rocclaw-settings.jsserver/install-context.jsserver/rocclaw-install-context.jsstudioBootstrapOperation.tsbootstrapOperation.tsstudioBootstrapWorkflow.tsbootstrapWorkflow.tshelpers/studioRoute.tshelpers/rocclawRoute.tsUser-facing text
OpenClaw Studio→rocCLAWin all UI strings:page.tsxAGENTS.md— agent instruction referenceFiles intentionally NOT renamed
These are correctly named for what they actually are:
src/lib/gateway/gateway-frames.tssrc/lib/gateway/gateway-status.tssrc/lib/gateway/chatHistoryLimits.tssrc/app/api/runtime/disconnect/route.tssrc/app/api/runtime/agent-state/route.tsRuntime state / CLI strings left unchanged
"openclaw-studio"directory names — would break existing installs"openclaw-studio"npm CLI package name — external package reference"openclaw-studio-history"cache DB name — would break existing cache"openclaw-studio CLI"in UI strings — references actual CLI package nameTesting
npm run lintnpm run typechecknpm run testnpm run e2e