Skip to content

Add Windows Hub UI for gateway session maintenance settings #1161

Description

@clawsweeper

Problem

Windows Hub exposes the gateway's sessions list and a generic configuration editor, but it does not provide a dedicated UI for managing session.maintenance settings such as mode, pruneAfter, maxEntries, resetArchiveRetention, maxDiskBytes, and highWaterBytes.

Operators using Windows Hub should not need to edit raw gateway configuration to control session retention and disk usage.

Proposed UI

Add a Session maintenance section to the existing Gateway Configuration page that:

  • loads the current session.maintenance values from the connected gateway
  • exposes the supported settings with defaults and concise explanations
  • saves the full updated config through config.patch with optimistic concurrency
  • preserves unrelated gateway configuration
  • clearly handles disconnected, read-only, loading, validation, conflict, and save-result states

Acceptance criteria

  • Windows Hub can view and update all supported session.maintenance settings.
  • Omitted values display gateway defaults without unnecessarily materializing them until the user saves.
  • Numeric and duration/disk-size inputs are validated before saving.
  • Changes participate in the Configuration page's existing Save/Discard flow, preserve unrelated config, and refresh the gateway snapshot.
  • Focused model/UI contract tests cover parsing, validation, patch construction, and the Sessions page surface.
  • Current-head UI proof is attached, or an explicit Windows-host blocker is documented.

Upstream reference: docs/reference/session-management-compaction.md in openclaw/openclaw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low-risk cleanup, docs, polish, ergonomics, or speculative feature.clawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:ux-frictionUser-facing flow adds avoidable confusion or support burden without fully blocking progress.issue-rating: 🌊 off-meta tidepoolIssue quality rating does not apply to this item.status: 🚢 actively landingA maintainer or agent is actively driving this item through implementation, validation, or merge.

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    Status
    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions