← Back to Pull requests

fix(cli): use the configured daemon proxy for workflow streams #4190

Closed
unknown closed this pull request without merging on Nov 29, 2026 22:24 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 19:45 UTC
Author

What a user gets

In a sandbox with a daemon proxy, rig workflow watch fetched the trace through the proxy but opened its event stream directly. The shared follow loop for watch and run now uses the daemon transport for the stream, including reconnects.

How you verified it

Ran a workflow against a loopback HTTP server and CONNECT proxy. Before the fix, the two requests produced just one tunnel. Now both the stream and the trace go through the proxy and the watcher exits on the streamed completion event.

On 1dba38bf9, vitest run packages/cli/test/daemon-proxy.test.ts packages/cli/test/workflow-follow.test.ts packages/cli/test/workflow-follow-connect-deadline.test.ts passed (62 tests). Build and lint passed with all five local changes applied together. I ran the focused suites locally and left the full npm test run to CI.

Anything you were unsure about

  • One concern per PR; no version bump; no CHANGELOG.md edit

  • Tests added or updated where the change is testable

  • I listed the checks I ran, their results, and any checks I could not run
  • <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

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

    Summary by CodeRabbit

    Bug Fixes
    Workflow following now uses the configured daemon connection for event and trace requests, allowing completion events to appear when operating through a proxy.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 185 lines (+138 / -47) across 2 files Reviewer: openrig-review Review duration: 158m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.59) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.59 · 185 lines diff across 2 files
    0.59
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    57%
    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.313
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.059
    Real PR Conversation Timeline
    1 comments
    "Review active on #4190"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% reviewed sensitive_module
    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: 58.9% (MEDIUM) · Higher = larger blast radius
    58.9%
    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: 58.0% · Lower = rushed or shallow review
    58.0%
    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: 24.7% · Safe to merge
    24.7%