Retire Studio Copilot host; repair sticky empty workspace checkout - #190
Conversation
Delete defaultChatAgent/voiceWsUrl via overlay + patch 0003 null-checks, strip extensions/copilot, seed chat.disableAIFeatures, and reseed empty git-init volumes from WORKSPACE_REPO + THEOREM_GIT_TOKEN. Adds the theorem-chat-register plan board for the Studio+/chat register follow-through.
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR. |
|
Warning Review limit reached
Next review available in: 43 minutes You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (13)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR removes upstream GitHub Copilot product-host wiring from the Commonplace Studio web workbench build and hardens the Railway workspace container to recover from a “sticky empty” /workspace/repo that was previously git init’d without a HEAD. It also adds a new plan/spec/checklist set to drive the follow-on “Theorem chat register” work across Studio and console /chat.
Changes:
- Retire Copilot product-host plumbing in the Studio artifact (overlay null→delete, patch 0003 null-guards, strip
extensions/copilot, seedchat.disableAIFeatures). - Repair
/workspace/reposeeding by detecting “no HEAD” repos and composing a clone URL fromWORKSPACE_REPO+THEOREM_GIT_TOKENwhen needed. - Add planning/spec artifacts and checklist projection for
plan-theorem-chat-register-20260805a.
Reviewed changes
Copilot reviewed 13 out of 13 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packaging/workspace/railway.toml | Documents new env var options for composing clone URL. |
| packaging/workspace/entrypoint.sh | Adds sticky-empty repo repair + clone URL composition; seeds chat UI disable flag. |
| packaging/commonplace-studio/scripts/smoke-server.sh | Expands smoke checks to assert Copilot keys/endpoints and extensions/copilot absence. |
| packaging/commonplace-studio/scripts/ledger-gate.sh | Extends gate to fail if Copilot product keys survive in shipped product.json. |
| packaging/commonplace-studio/scripts/build.sh | Supports overlay-driven key deletion and strips built-in Copilot extension from server output. |
| packaging/commonplace-studio/product.overlay.json | Sets Copilot-related product keys to null (intended deletion) and clears related auto-update/auth grants. |
| packaging/commonplace-studio/patches/README.md | Updates patch queue docs to include new patch 0003. |
| packaging/commonplace-studio/patches/0003-retire-default-chat-agent-copilot.patch | Makes defaultChatAgent optional and adds null-checks/branding tweaks in upstream sources. |
| packaging/commonplace-studio/LEDGER.md | Adds rationale/retirement record for patch 0003. |
| docs/plans/theorem-chat-register/SPEC-THEOREM-CHAT-REGISTER-1.0.md | Adds draft spec skeleton for the register work (CR-003). |
| docs/plans/theorem-chat-register/PLAN.md | Adds the plan board describing sequencing and acceptance oracles. |
| docs/plans/ide-substrate-wire/FOLLOW-UP-CODE-SERVE-WEB.md | Links successor plan and updates follow-up status to reflect Copilot retirement work. |
| .harness/checklists/theorem-chat-register--plan-local-20260805a.json | Adds a local checklist projection for harness import later. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| if [ -z "${WORKSPACE_REPO_URL:-}" ] && [ -n "${WORKSPACE_REPO:-}" ] && [ -n "${THEOREM_GIT_TOKEN:-}" ]; then | ||
| WORKSPACE_REPO_URL="https://x-access-token:${THEOREM_GIT_TOKEN}@github.com/${WORKSPACE_REPO}.git" | ||
| echo "workspace: composed WORKSPACE_REPO_URL from WORKSPACE_REPO=${WORKSPACE_REPO}" | ||
| fi |
| if [ -d "${WORKSPACE_DIR}/.git" ]; then | ||
| echo "workspace: repairing sticky empty git init at ${WORKSPACE_DIR} from ${redacted_url}" | ||
| # Drop only the broken checkout contents; the parent volume keeps state/. | ||
| find "${WORKSPACE_DIR}" -mindepth 1 -maxdepth 1 -exec rm -rf {} + | ||
| else |
| // null means delete: used to retire upstream Copilot/Microsoft | ||
| // product keys (defaultChatAgent, voiceWsUrl, …) without leaving | ||
| // a `"key": null` the workbench still treats as present. | ||
| if (overlay[key] === null) { | ||
| delete base[key]; |
Summary
defaultChatAgent/voiceWsUrl, patch0003null-checks boot paths, stripextensions/copilot, seedchat.disableAIFeatures./workspace/repogit init: detect no HEAD, compose clone URL fromWORKSPACE_REPO+THEOREM_GIT_TOKEN, reclone.plan-theorem-chat-register-20260805aboard (Studio panel +/chatTheorem register; OpenWork retirement follow-through).Test plan
packaging/commonplace-studio/scripts/ledger-gate.shpasses (3 patches)defaultChatAgentkey removedcommonplace-workspaceredeploy SUCCESS after mergedefaultChatAgent, noextensions/copilot, walkthrough title Commonplace Studio/workspace/repohaspackage.json+git rev-parse HEAD/IDEsmoke (no Copilot sign-in wall)Plan:
docs/plans/theorem-chat-register/PLAN.md(CR-001 / CR-002)