Skip to content

fix(nova): keep large repository baseline creation within output limits - #364

Merged
yashdev9274 merged 1 commit into
mainfrom
capy/nova-quiet-git-baseline
Nov 19, 2026
Merged

yashdev9274 merged 1 commit into
mainfrom
capy/nova-quiet-git-baseline

Conversation

@yashdev9274

@yashdev9274 yashdev9274 commented Nov 19, 2026 •

Copy link
Copy Markdown
Owner

Git's initial commit prints every added path. On Supercli, that exceeds Nova's 20 KB command-output limit, aborting setup during initializing Git baseline even though archive extraction succeeds.

Use quiet Git initialization and commit for this control-plane baseline operation. Keep command-output limits, error handling, and repository isolation unchanged. Add a 600-file regression that fails with the previous implementation and verifies a clean, complete baseline with bounded output.

Verified the failure with an archive of yashdev9274/supercli at main, then verified the fix on Default, 1 CPU / 4 GB, and 2 CPU / 8 GB E2B templates. Each completed checkout with zero baseline stdout/stderr, preserved an edit across filesystem-only pause/reboot, and exported the edit as a patch. Tests used a local Git archive of the actual repository, not production GitHub credentials; all disposable sandboxes were deleted.

Validation: 47 sandbox tests, web TypeScript check, scoped ESLint, and git diff --check pass. After deployment, use a new Nova thread for sessions whose initial setup already failed; existing retained workspaces are not reset.

Open in Capy

Summary by CodeRabbit

  • Bug Fixes
    • Reduced setup output when preparing a repository, helping large checkouts stay within output limits while preserving tracked files and a clean working tree.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@vercel

vercel Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
supercli Ready Ready Preview Nov 19, 2026 1:54pm UTC
supercli-client Ready Ready Preview Nov 19, 2026 1:54pm UTC
supercli-docs Ready Ready Preview Nov 19, 2026 1:54pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
vercel-supercodeai-integration Skipped Skipped Nov 19, 2026 1:54pm UTC

@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The E2B checkout now runs git init and the baseline git commit with --quiet. A new large-archive test checks captured output size, working-tree cleanliness, and tracking of all 600 files.

Changes

E2B Baseline Output

Layer / File(s) Summary
Baseline setup and output validation
apps/web/modules/nova/sandbox/e2b-checkout.ts, apps/web/modules/nova/sandbox/e2b-baseline.test.ts
The baseline git init and git commit commands use --quiet. The new test checks that combined stdout and stderr stay within MAX_OUTPUT_BYTES, the working tree is clean, and all 600 archive files are tracked.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Possibly related PRs

Merge Risk: Minimal · up to 37150

This change quiets Git's baseline output so that setup for large repositories no longer exceeds the command-output limit. No actionable merge-blocking risk was found. Sessions whose setup already failed still need a new thread after deployment.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the change accurately. The PR makes Git init and baseline commit quiet, so large repositories keep stdout and stderr within Nova's 20 KB command-output limit. The title uses the conven…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change accurately. The PR makes Git init and baseline commit quiet, so large repositories keep stdout and stderr within Nova's 20 KB command-output limit. The title uses the conventional fix(scope) form and names the affected area (nova) and the goal (output limits). The raw summary and PR objectives both describe the same change, and the 600-file regression test supports it.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
Fix failing CI checks

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint install timed out. The project may have too many dependencies for the sandbox.

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

A rabbit watched the Git lines hush,
As quiet flags replaced the rush.
Six hundred files came through the door,
Tracked and clean, then counted once more.
The rabbit thumped: “No noisy roar!”

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ccf464d7-f7d4-4db9-9f8e-92763bb4ec67
Commits

Reviewing files that changed from the base of the PR and between 33af3ee and 3715063.

Files selected for processing: 2

  • apps/web/modules/nova/sandbox/e2b-baseline.test.ts
  • apps/web/modules/nova/sandbox/e2b-checkout.ts

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@yashdev9274
yashdev9274 merged commit 7d09c77 into main Nov 19, 2026
7 of 10 checks passed

This branch was successfully deployed

3 active and 1 inactive deployments
Preview – supercli — 3715063d Deployed Nov 19, 2026 by vercel[bot]
Preview – supercli-client — 3715063d Deployed Nov 19, 2026 by vercel[bot]
Preview – supercli-docs — 3715063d Deployed Nov 19, 2026 by vercel[bot]
Preview – vercel-supercodeai-integration — 3715063d Deployed Nov 19, 2026 by vercel[bot]
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