Skip to content

Retire Studio Copilot host; repair sticky empty workspace checkout - #190

Merged
Travis-Gilbert merged 1 commit into
mainfrom
feat/studio-overlay-retire-copilot
Aug 5, 2026
Merged

Retire Studio Copilot host; repair sticky empty workspace checkout#190
Travis-Gilbert merged 1 commit into
mainfrom
feat/studio-overlay-retire-copilot

Conversation

@Travis-Gilbert

Copy link
Copy Markdown
Owner

Summary

  • Retire upstream GitHub Copilot from Commonplace Studio: overlay deletes defaultChatAgent/voiceWsUrl, patch 0003 null-checks boot paths, strip extensions/copilot, seed chat.disableAIFeatures.
  • Repair sticky empty /workspace/repo git init: detect no HEAD, compose clone URL from WORKSPACE_REPO + THEOREM_GIT_TOKEN, reclone.
  • Add plan-theorem-chat-register-20260805a board (Studio panel + /chat Theorem register; OpenWork retirement follow-through).

Test plan

  • packaging/commonplace-studio/scripts/ledger-gate.sh passes (3 patches)
  • Overlay merge unit: defaultChatAgent key removed
  • Railway commonplace-workspace redeploy SUCCESS after merge
  • Live: no defaultChatAgent, no extensions/copilot, walkthrough title Commonplace Studio
  • Live: /workspace/repo has package.json + git rev-parse HEAD
  • Signed-in /IDE smoke (no Copilot sign-in wall)

Plan: docs/plans/theorem-chat-register/PLAN.md (CR-001 / CR-002)

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.
Copilot AI lite review requested due to automatic review settings August 5, 2026 21:09
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@ecc-tools

ecc-tools Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

ECC bundle files are already tracked in this repository. Skipping generation of another bundle PR.

@coderabbitai

coderabbitai Bot commented Aug 5, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@Travis-Gilbert, you've reached your PR review limit, so we couldn't start this review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: eb39cc63-27e8-4875-85ac-0ab35c75666f

📥 Commits

Reviewing files that changed from the base of the PR and between 318cbf6 and b1d68a0.

📒 Files selected for processing (13)
  • .harness/checklists/theorem-chat-register--plan-local-20260805a.json
  • docs/plans/ide-substrate-wire/FOLLOW-UP-CODE-SERVE-WEB.md
  • docs/plans/theorem-chat-register/PLAN.md
  • docs/plans/theorem-chat-register/SPEC-THEOREM-CHAT-REGISTER-1.0.md
  • packaging/commonplace-studio/LEDGER.md
  • packaging/commonplace-studio/patches/0003-retire-default-chat-agent-copilot.patch
  • packaging/commonplace-studio/patches/README.md
  • packaging/commonplace-studio/product.overlay.json
  • packaging/commonplace-studio/scripts/build.sh
  • packaging/commonplace-studio/scripts/ledger-gate.sh
  • packaging/commonplace-studio/scripts/smoke-server.sh
  • packaging/workspace/entrypoint.sh
  • packaging/workspace/railway.toml

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Travis-Gilbert
Travis-Gilbert merged commit 644d1ba into main Aug 5, 2026
5 checks passed
@Travis-Gilbert
Travis-Gilbert deleted the feat/studio-overlay-retire-copilot branch August 5, 2026 21:09

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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, seed chat.disableAIFeatures).
  • Repair /workspace/repo seeding by detecting “no HEAD” repos and composing a clone URL from WORKSPACE_REPO + THEOREM_GIT_TOKEN when 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.

Comment on lines +42 to +45
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
Comment on lines +71 to +75
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
Comment on lines +246 to +250
// 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];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants