← Back to Pull requests

fix(runtime-host): silence assistant background turn notifications #6220

Closed
unknown closed this pull request without merging on Oct 22, 2026 08:21 UTC
View on GitHub
unknown unknown commented on Oct 21, 2026 10:02 UTC
Author

Summary

Assistant background Sessions could emit native system notifications whenever an internal turn completed, failed or waited for input. A durable task can span many such turns, and its coordinator already owns user-facing feedback.

Suppress catalog attention for Sessions carrying the durable personal-assistant-background label at the Host publication boundary. Keep catalog updates, terminal results and interaction state intact. This applies to Bot, delegated-task, index and discovery workers, independently of sidebar visibility, and covers both Owner and shared-session feeds without changing the wire protocol. Ordinary conversation attention and the existing incognito policy retain their behavior.

Fixes #6218

Verification

  • Runtime Host build/typecheck and prerequisite workspace builds pass.

  • Complete execution-host-message integration suite: 13 tests pass, using real temporary Host processes and protocol clients with the deterministic backend.

  • New cases cover completed and failed background turns, normal notifications after removing the background label, and background waiting-for-user state without attention. Existing ordinary completion, question, sandbox, privacy, steering and queued-message cases pass.

  • Removing the label gate makes the background notification regression cases fail; restoring it passes.

  • Biome check on both changed files and git diff --check pass.
  • OS toast rendering and packaged Desktop were not exercised. Existing installed Hosts and user tasks were not changed. User-facing task results and decisions continue through the coordinating assistant; this only silences worker turn notifications.

    AI use

  • No generative tool made a substantive contribution

  • Generative tooling made a substantive contribution
  • Tool(s) and scope: Codex inspected the notification flow, authored the filter and integration tests, and ran the local checks.

    Checklist

  • Tests cover the change and fail without it

  • Lint, format, typecheck and the affected suites pass locally
  • Does this PR entail a change in behavior?

  • Yes — described under Summary above

  • No
  • Diff: 268 lines (+201 / -67) across 3 files Reviewer: me2seeks Review duration: 1339m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.39) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 268 lines diff across 3 files
    0.39
    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%
    60%
    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.335
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #6220"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 39.4% (MEDIUM) · Higher = larger blast radius
    39.4%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 15.6% · Safe to merge
    15.6%
    Repository