← Back to Pull requests

feat(orchestration): a running subagent's progress in its hover card (W38, D1343–D1345) #246

Open
unknown opened this pull request with 263 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 23, 2026 11:06 UTC
Author

W38, slice 2 (docs/plans/t3-roadmap.md round 4): the subagent hover card's progress line, and a background subagent's text and progress, as T3 Code eb7b35ac has them.

Decisions (docs/plans/orchestration.md, "A subagent's progress (W38)")

  • D1343 — agent.runtime@1 1.12 (additive): the item subagent.progress { subagentId, progress }, in the turn or through afterwards for a backgrounded subagent. Claude Code's is T3's: the trimmed description of a task_progress frame of a task the turn's subagent call started (found by tool_use_id or by its task_started). The fake agent's /subagent-bg reports "Working on <task>".

  • D1344 — agent.registry 1.6 (additive): the threads plugin keeps it on the child thread's record as lastTurn.progress while that turn runs (at most 280 characters); the turn's end replaces lastTurn and drops it. The hover card (D1162) shows T3's detail line: running → progress, else result; ended → result, else progress.

  • D1345 — a subagent's text is not streamed, as in T3 (its adapter projects only stream frames without parent_tool_use_id); the Deferred item for streamed text is closed by that.
  • Deferred list updated: a delegated task still has no progress.

    Evidence

    !hover card with progress

    $ vp test run plugins/threads/test/subagents.test.ts plugins/agent-claude/test/turn.test.ts apps/web/test/subagent-group.test.ts
     Test Files  3 passed (3)
          Tests  46 passed (46)
    
    $ npx playwright test tests/delegation.spec.ts -g "D1164"
    [1/1] tests/delegation.spec.ts:171:1 › D1164–D1167: a subagent in the background works past its turn and stops from the panel
      1 passed (12.0s)
    
    $ vp run --filter <pkg> typecheck   # clean for @jhin/agent-api, plugin-threads, plugin-agent-claude,
                                        # plugin-agent-fake, plugin-agent-codex, plugin-agent-opencode, @jhin/web
    $ vp check <changed files>          # 0 errors
    

    🤖 Generated with Claude Code

    Diff: 263 lines (+197 / -66) across 3 files Reviewer: claude[bot] Review duration: 3m
    All Vouch review confidence checks passed
    Residual risk 0.31 = Change Risk (0.44) × (1 − Review Confidence (0.29)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.44 · 263 lines diff across 3 files
    0.44
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 46% · Reviewer familiarity: 35%
    28%
    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
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.334
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #246"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 28.9% 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: 44.3% (MEDIUM) · Higher = larger blast radius
    44.3%
    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: 28.9% · Lower = rushed or shallow review
    28.9%
    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: 31.5% · Safe to merge
    31.5%
    Repository