← Back to Pull requests

KAN-234: Forward OSC 99 notification expiry hints #253

Open
unknown opened this pull request with 281 lines diff across 3 files
View on GitHub
unknown unknown commented on Nov 22, 2026 19:42 UTC
Author

Summary


Linux applications can now request persistent or time-limited desktop notifications with OSC 99. The desktop, not Trident, decides when to dismiss them.

Changes


  • Preserve the last valid signed 32-bit w= value for each in-progress notification. Invalid values leave the previous hint untouched.

  • Pass the hint to freedesktop Notify and advertise w=1 only on Linux. Other notification protocols and command completion still use the desktop default.
  • Testing


  • Added golden tests for defaults, signed boundaries, invalid values, duplicate hints, interleaved IDs and capability replies.

  • Local workspace checks, Linux D-Bus verification and serialized release timing pending.
  • Source documentation


  • Changed source comments follow the canonical standard.

  • Documented the expiry field and Linux desktop behavior.

  • Strict rustdoc, doctests and Clippy pass.
  • Ticket


    KAN-234: Pass OSC 99 notification expiry hints to Linux desktops

    <!-- devin-bot-banner-begin -->
    ---

    <p><picture><source srcset="https://app.devin.ai/api/presigned_proxy?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjpudWxsLCJidWNrZXRfbmFtZSI6ImRldmluYXR0YWNobWVudHMiLCJidWNrZXRfa2V5IjoiYXR0YWNobWVudHNfcHJpdmF0ZS9vcmctZmU4M2I4ZjhiNTgxNDg5ZDk0MTg0MWVmMDQ4MjBmODgvN2Q1NmI3YTQtMTI1OS00MzJjLThlNzgtYTBlOWU2OTk2OTcyIiwiaWF0IjoxNzk1Mzc2NTY2LCJvcmdfaWQiOiJvcmctZmU4M2I4ZjhiNTgxNDg5ZDk0MTg0MWVmMDQ4MjBmODgiLCJmaWxlbmFtZSI6ImJvdC1iYW5uZXIucG5nIn0._1GpaudZ3WZ88O4agkReEaO7L1aIbkOFi4cwiYulblo"><img height="63" alt="" align="left"></picture><strong><a href="https://app.devin.ai/bots/5b21d5df3912484b99ae453bb91bb19c">Product Engineer</a> opened this PR for Jarett</strong><br>
    Implemented in session <a href="https://app.devin.ai/sessions/876a27dd5d184c9abce7c645f4f5eb9a">Pass OSC 99 expiry hints to Linux desktops</a><br>
    <a href="https://app.devin.ai/review/amagomori/trident/pull/253">Review&nbsp;with&nbsp;Devin</a> · <a href="https://app.devin.ai/desktop/session/876a27dd5d184c9abce7c645f4f5eb9a?variant=devin">Open&nbsp;in&nbsp;Devin&nbsp;Desktop</a></p>
    <br clear="left">
    <!-- devin-bot-banner-end -->

    Diff: 281 lines (+210 / -71) across 3 files Reviewer: devin-ai-integration[bot] Review duration: 1m
    All Vouch review confidence checks passed
    Residual risk 0.32 = Change Risk (0.40) × (1 − Review Confidence (0.19)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 281 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 25% · Reviewer familiarity: 35%
    19%
    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.338
    Real PR Conversation Timeline
    1 comments
    "Review active on #253"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 19.2% 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.7% (MEDIUM) · Higher = larger blast radius
    39.7%
    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: 19.2% · Lower = rushed or shallow review
    19.2%
    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: 32% · Safe to merge
    32%