← Back to Pull requests

feat(workhub): show provider icons consistently with regular conversations #6100

Open
unknown opened this pull request with 229 lines diff across 2 files
View on GitHub
unknown unknown commented on Oct 14, 2026 07:54 UTC
Author

Summary

Regular chat supplies renderProviderMark to the shared Composer, so its model switcher shows each provider's brand mark; WorkHub never passed it, so the same configured models lost their visual identifier on the WorkHub surface (the compact wheel stays as #5444 designed).

The injector is threaded from the renderer entry (app.tsx, which already owns the provider SVG library) through the composition root into WorkHubRoot — the SVG dependency stays in the legacy root zone, out of the main-process test build, the same principle that keeps it out of @maka/ui. renderer-architecture.json is re-priced for app.tsx's one added import via the checker's --write.

A WorkHubComposer render test pins the mark beside the model switcher so the passthrough cannot be narrowed away silently. The root-level wiring itself has no headless harness (the root is controller-bound), so the on-screen consistency on the docked/expanded WorkHub would merit a maintainer's visual spot-check, as with #5522.

Verification

| Check | Result |
| --- | --- |
| New render test (workhub-composer-provider-mark) | green: the injected mark renders beside the model switcher |
| Adjacent suites (workhub-composer-restore, workhub-linked-work) | green |
| @maka/desktop typecheck (4 configs) | exit 0 |
| Renderer architecture check (ledger re-priced via --write, then plain) | passed |
| biome on the four touched files | clean |
| check:asf-headers | passed |

AI use

Commits carry a Generated-by: GLM-5.3-Flash (ZCode) trailer; this PR description was written with AI assistance.

Checklist

  • No copy changes (no locale keys touched)

  • No new dependencies

  • Compact WorkHub wheel untouched (#5444 scope preserved)

  • Visual consistency on the live surface flagged for maintainer spot-check
  • Diff: 229 lines (+171 / -58) across 2 files Reviewer: Astro-Han Review duration: 4483m
    All Vouch review confidence checks passed
    Residual risk 0.20 = Change Risk (0.37) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 229 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.325
    Real PR Conversation Timeline
    1 comments
    "Review active on #6100"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 37.0% (MEDIUM) · Higher = larger blast radius
    37.0%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 19.7% · Safe to merge
    19.7%
    Repository