Skip to content

fix(server): keep workspace reuse as the default - #171

Merged
Waishnav merged 3 commits into
mainfrom
fix/workspace-reuse-guidance
Aug 9, 2026
Merged

fix(server): keep workspace reuse as the default#171
Waishnav merged 3 commits into
mainfrom
fix/workspace-reuse-guidance

Conversation

@Waishnav

@Waishnav Waishnav commented Aug 9, 2026

Copy link
Copy Markdown
Owner

Long-running MCP sessions could repeatedly call open_workspace because normal tool descriptions presented it as a prerequisite, even while an existing workspaceId was still usable. That made reopening feel like the default action instead of continuing in the current workspace.\n\nThis makes the model-facing contract reuse-first: the server description is intentionally short, open_workspace is only for establishing a missing workspace, downstream tools simply consume the existing workspaceId, and unknown IDs provide the recovery path. The change is wording-only for workspace lifecycle behavior; existing checkout/worktree mechanics stay unchanged.

@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, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next review available in: 45 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: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 13538360-9aad-4df6-a91e-dd34926c4a6a

📥 Commits

Reviewing files that changed from the base of the PR and between 3bd0378 and 37ecf5c.

📒 Files selected for processing (4)
  • src/artifact-tools.ts
  • src/server.test.ts
  • src/server.ts
  • src/workspaces.ts

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.

@greptile-apps

greptile-apps Bot commented Aug 9, 2026

Copy link
Copy Markdown

Greptile Summary

The PR updates model-facing descriptions and instructions so existing workspace IDs are reused by default, while preserving the underlying workspace lifecycle behavior.

  • Reframes server and tool descriptions around workspace reuse.
  • Clarifies recovery when a workspace ID is rejected.
  • Updates workspace response wording and corresponding contract tests.

Confidence Score: 5/5

The PR appears safe to merge with no actionable defects identified in the wording-only workspace contract changes.

The revised descriptions consistently preserve initial workspace creation, continued ID reuse, and unknown-ID recovery while leaving checkout, worktree, registry, and context-loading mechanics unchanged.

Important Files Changed

Filename Overview
src/server.ts Updates MCP server, tool, and workspace-response wording to consistently promote reuse without changing execution behavior.
src/workspaces.ts Revises the unknown-workspace error to describe reopening the target and continuing with the replacement ID.
src/artifact-tools.ts Aligns artifact download metadata with the reuse-first workspace contract.
src/server.test.ts Adds contract coverage for reuse-first descriptions and updates assertions for the revised response wording.

Reviews (1): Last reviewed commit: "fix(workspace): make unknown id recovery..." | Re-trigger Greptile

@Waishnav
Waishnav merged commit 1def8ce into main Aug 9, 2026
4 checks passed
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.

1 participant