openclaw-windows-node icon indicating copy to clipboard operation
openclaw-windows-node copied to clipboard

Add Windows Hub UI for gateway session maintenance settings

Open clawsweeper opened this issue 3 months ago • 1 comments

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.

clawsweeper avatar Aug 15 '26 12:08 clawsweeper

Codex review: this still needs some work. Reviewed September 22, 2026, 6:26 PM ET / 22:26 UTC.

Summary The dedicated maintenance editor remains unimplemented, and both implementation attempts closed unmerged. An explicit maintainer deferral remains unresolved by subsequent priority changes; this repository permits automated closure only for implemented work.

Reproducibility: not applicable. this requests a dedicated editing experience rather than reporting a regression; source inspection confirms the existing generic editor and absence of maintenance-specific controls.

Root-cause cluster Relationship: canonical Canonical: https://github.com/openclaw/openclaw-windows-node/issues/1161 Summary: This issue tracks the requested experience; both directly linked implementation attempts closed without merging.

Members:

  • fixed_by_candidate: https://github.com/openclaw/openclaw-windows-node/pull/1162 - Closed, unmerged implementation attempt for this request; it is not an active landing path.
  • fixed_by_candidate: https://github.com/openclaw/openclaw-windows-node/pull/1163 - Closed, unmerged implementation attempt with reported Windows proof and an explicit product deferral.

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Maintainer decision needed

Question Recommendation
Does the recorded deferral of dedicated session-maintenance controls still apply despite subsequent prioritization of this issue? Retain the existing editor: Keep the recorded deferral and use the gateway-schema editor until a concrete maintenance workflow gap justifies additional UI.

Why: The prior implementation was explicitly declined to limit settings UI, while later priority changes indicate renewed interest without defining an approved scope.

Next step Reconcile the recorded UI deferral with later prioritization before commissioning another implementation; no active fix PR was found.

Review details

Best possible solution:

Keep one schema-driven configuration path, adding maintenance-specific guidance or controls only for a demonstrated gap within a maintainer-approved scope.

Do we have a high-confidence way to reproduce the issue?

Not applicable: this requests a dedicated editing experience rather than reporting a regression; source inspection confirms the existing generic editor and absence of maintenance-specific controls.

Is this the best way to solve the issue?

Unclear: the existing schema-driven editor provides much of the requested infrastructure, so a separate fixed form needs an approved usability gap and gateway-compatibility rationale.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c7063081a2a5.

Label changes

Label changes:

  • add P2: This is a bounded configuration usability improvement; no broken session workflow or blocked first-use path is established.
  • remove P1: Current review triage priority is P2, so this older priority label is no longer current.

Label justifications:

  • P2: This is a bounded configuration usability improvement; no broken session workflow or blocked first-use path is established.
  • impact:ux-friction: Operators lack the requested guided maintenance experience and must understand gateway configuration fields.
Evidence reviewed

What I checked:

  • Current implementation boundary: Current main renders gateway configuration through SchemaConfigEditor. Searches across source, tests, and docs found no dedicated session-maintenance controls or implementations of the six requested field names. (src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:430, c7063081a2a5)
  • Existing reusable editing path: The schema editor renders nested objects, descriptions, defaults, enum choices, and numeric inputs. ConfigPage preserves its editing snapshot and sends updated configuration with the base hash; ConfigEditorModelTests cover nested edits and preservation of unrelated configuration. This supplies an existing foundation, but does not establish all requested maintenance-specific behavior. (src/OpenClaw.Tray.WinUI/Controls/SchemaConfigEditor.xaml.cs:109, c7063081a2a5)
  • Explicit product deferral: RomneyDa, identified by GitHub as MEMBER, closed https://github.com/openclaw/openclaw-windows-node/pull/1163 (feat: add gateway session maintenance settings UI), explaining that maintenance was enabled by default and additional settings UI was undesirable for now. Decision: https://github.com/openclaw/openclaw-windows-node/pull/1163#issuecomment-5365142878. Subsequent issue prioritization does not explicitly reverse that decision.
  • Prior implementation and proof retained: Both https://github.com/openclaw/openclaw-windows-node/pull/1162 and https://github.com/openclaw/openclaw-windows-node/pull/1163 (feat: add gateway session maintenance settings UI) are closed unmerged. The latter reports Windows build/tests and a real WinUI save/refresh round trip against a disposable protocol endpoint, explicitly distinguishing that evidence from production-Gateway compatibility. This is useful prior work, not evidence of implementation on main.
  • Canonical search: A repository-wide GitHub search for session maintenance returned this issue and the two closed implementation attempts, with no additional canonical implementation candidate.
  • Latest release comparison: The supplied latest release, v2026.9.4, also contains the generic schema editor and configuration patch path. This check does not establish a shipped dedicated maintenance editor. (src/OpenClaw.Tray.WinUI/Pages/ConfigPage.xaml.cs:430, 3c43751b2bac)

Likely related people:

  • RomneyDa: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Ranjesh: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
How this review workflow works
  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

clawsweeper[bot] avatar Aug 15 '26 12:08 clawsweeper[bot]