← Back to Pull requests

fix(PS-1236): wait for a cold isolated stack while its container runs #2136

Merged
au-re merged 2 files (120 lines) on Nov 17, 2026 16:00 UTC
View on GitHub
au-re au-re commented on Nov 17, 2026 15:27 UTC
Author

What changes

waitForSeededProject in scripts/dev/dev-isolated.ts polls the API for as long as the stack's container runs, instead of 90 times. If the container stops, the error includes its last logs. Both the Vite and desktop flows now share one compose monitor.

Why

A cold bun run dev:isolated -- --large always failed with Timed out waiting for the isolated demo project. The container was still installing and validating extensions (one harness alone took 20 s to validate). Rerunning didn't help: each run reserves new ports and a new API token, so compose recreates the container and the cold start begins again.

Tests

No automated test; scripts/dev has no harness. Verified by a cold dev:isolated --name ps1207 --large start that took over 90 s and reached Dashboard:. Biome and typecheck pass.

Ticket: PS-1236

Diff: 120 lines (+89 / -31) across 2 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 33m
All Vouch review confidence checks passed
Residual risk 0.08 = Change Risk (0.33) × (1 − Review Confidence (0.76)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 120 lines diff across 2 files
0.33
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.56 · 2 substantive comment(s)
0.56
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
75%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.287
Real PR Conversation Timeline
4 items
coderabbitai[bot] coderabbitai[bot] commented on Nov 17, 2026 15:27 UTC
Bot

<!-- coderabbit-ai-generated:v1 -->

<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- This is an auto-generated comment: rate limited by coderabbit.ai -->

[!WARNING]

## Review limit reached

> You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

> Next included review available in 43 minutes.

> Check out review usage here.

> <details>

<summary><strong>View limit details</strong></summary>

<dl>

<dd>

<br>

> Limit details: You’ve used the included review currently available.

> Learn how review limits work.

> Review configuration:

> <details>

<summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/cog.svg" width="16" height="16" align="absmiddle" alt=""></picture> Run configuration</strong></summary>

<dl>

<dd>

<br>

> - 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: 31ca5184-139d-4fb7-b433-13f48b2b10d5

> </dd>

</dl>

</details>

> <details>

<summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/git-commit-horizontal.svg" width="16" height="16" align="absmiddle" alt=""></picture> Commits</strong></summary>

<dl>

<dd>

<br>

> Reviewing files that changed from the base of the PR and between 026d606486158b4accdb0d1b7efa934873f9a209 and 07752590920f50dad2516f4341ffe7650cfc6d7a.

> </dd>

</dl>

</details>

> <details>

<summary><strong><picture><source media="(prefers-color-scheme: dark)" srcset="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner-dark.svg"><img src="https://storage.googleapis.com/coderabbit_public_assets/review-comment-icons-v1/file-plus-corner.svg" width="16" height="16" align="absmiddle" alt=""></picture> Files selected for processing: 2</strong></summary>

<dl>

<dd>

<br>

> scripts/dev/desktop-runtime-startup.ts

scripts/dev/dev-isolated.ts

> </dd>

</dl>

</details>

> </dd>

</dl>

</details>

<!-- end of auto-generated comment: rate limited by coderabbit.ai -->

<!-- autopilot:start -->

  • <!-- {"checkboxId":"2708ad07-9f24-4260-9c11-7dc76a49f2e3"} --> <strong title="Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts">Autofix</strong> · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

  • <!-- autopilot:end -->
    <!-- tips_start -->

    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.

    <details>
    <summary><strong>Share</strong></summary>
    <dl>
    <dd>
    <br>

  • X

  • Mastodon

  • Reddit

  • LinkedIn
  • </dd>
    </dl>
    </details>

    <!-- tips_end -->

    copilot-pull-request-reviewer[bot] copilot-pull-request-reviewer[bot] commented on Nov 17, 2026 15:28 UTC
    Reviewer

    Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

    An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

    au-re au-re commented on Nov 17, 2026 15:34 UTC
    Author

    Addressed the independent review's findings (b2dfc8c71f): the desktop runtime token is re-read on every attempt so a stale descriptor can't stall the wait; 30 consecutive 401/403s stop it; no project within 5 minutes of the API answering stops it with container logs; up to 5 failed docker compose ps checks in a row are tolerated; a progress line prints every 30 s. Verified with a cold dev:isolated --name ps1236check start: progress at 31/61/92 s, then Dashboard:, exit 0.

    Assignees
    au-re au-re
    Labels
    risk: low confidence: 75.8% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 33.1% (LOW) · Higher = larger blast radius
    33.1%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 75.8% · Lower = rushed or shallow review
    75.8%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 8% · Safe to merge
    8%