Skip to content

[Feature]: DSH Driver diagnostics log and resume of LoopX-driven Sessions after a host restart #9299

Open

Description

@xiaobaifly7

Request origin

Real use: DSH desktop sessions driven by LoopX on Windows.

Problem or unmet outcome

Two gaps in the DSH plugin Driver make an unattended LoopX Goal hard to keep running:

  1. No durable Driver diagnostics. When automatic continuation stalls, the only trace is a Cordis warn line. Nothing records which readiness blocker held a Session, what plan Core returned, or which Turn was queued, so a stall cannot be diagnosed after the fact.
  2. No resume after a host restart. After DSH restarts, a Goal that LoopX was driving stays idle until the user reopens its Session, because only reopened Sessions get a live Agent. The Driver's error pause is also rebuilt from Session history alone, so a pause without a matching Session event is lost on restart.

Use case

A long-running Goal bound to a DSH Session keeps working across machine or app restarts, and when it stops, the owner can see why from a log instead of reproducing it.

Proposed outcome

  • Write one JSON object per Driver event to <DSH home>/logs/dsh-loopx-driver.jsonl (DSH home resolved by @deepseek-ai/dsh-home-paths): driver start/dispose, observe, skipped request, readiness blockers, built plan (binding status and Core effective_action/state/reason), queued Turn id, host-job wait, and every existing warn line with its Session id.
  • On host start, inspect a bounded number of persisted Sessions and load only those that are LoopX-activated, not paused, have no active native DSH goal, are exactly bound, and whose Goal Core reports active, through sessionController.resolveAgent. Persist the error pause per Session so a restart keeps it until human input clears it. Write each skip reason to the diagnostics log.

LoopX area

Host or runtime integration

Alternatives considered

Keeping diagnostics in Cordis logs only (not per Session, not structured); asking users to reopen every Session after a restart (what happens today).

Scope and non-goals

DSH plugin only. No Core contract change, no change to admission or settlement rules. Restart resume relies on host services available in DSH 0.2.2-rc.3 and is skipped where they are absent.

Contribution

Implementations are ready as two stacked PRs (linked below in comments) for review; happy to adjust scope, defaults or the log format to whatever maintainers prefer.

🤖 Generated with Claude Code

Activity

  1. xiaobaifly7 commented on Nov 23, 2026

    @xiaobaifly7
    ContributorAuthor

    Implementations for review: #9302 (Driver diagnostics log) and #9303 (restart resume), stacked on #9301 and #9298.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions