Skip to content

feat(sessions): snooze sessions from the sidebar menu - #161960

Merged
steipete merged 8 commits into
mainfrom
steipete/session-snooze
Sep 30, 2026
Merged

steipete merged 8 commits into
mainfrom
steipete/session-snooze

Conversation

@steipete

@steipete steipete commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The sidebar has archive and pin, but no way to park a session until later without archiving it (which blocks work) or losing it in the list.

User Impact

Users can snooze a sidebar session from its context menu until a preset time. Sending it a message or letting its run finish wakes it early; a Snoozed filter lists parked sessions with a Wake action. Snooze never gates work, drains, Cron, or worktrees.

Native macOS/iOS clients ignore the new optional fields; native client parity is a follow-up. No database column or migration is added.

Why This Change Was Made

The Gateway owns a snooze overlay on the active lifecycle, with snoozedUntil and snoozedAt stored only inside the session entry JSON and projected raw into session rows. sessions.patch accepts snoozedUntil: integer | null with expectedSessionId, rejecting archived, child, and protected sessions and past times. Archive and pin clear a snooze; snoozing keeps a pin. Timer wakes are derived client-side without a server event. The Gateway clears snooze on a real inbound interaction and on a completed user-facing run, including a snooze set while that run was in flight.

The Control UI adds a Snooze submenu with In 1 hour, In 3 hours, This evening (18:00), Tomorrow (09:00), and Next week (Monday 09:00) presets; a Wake session item carrying the wake time; an Undo toast; a Snoozed status filter; and a wake-time trail in Snoozed/All views. One deadline timer lives in the existing attention controller. The shared Control UI mock fixture follows the same snooze rules so the mocked dev server and e2e harness reflect the feature.

The line-cap ratchet required coherent, behavior-identical sibling extractions: sessions-patch-lifecycle-flags.ts, session-menu-snooze.ts, app-sidebar-session-snooze-visibility.ts, session-entry-lifecycle-carry.ts, and *.snooze.test.ts.

Documentation is updated in docs/web/control-ui/sessions-and-sidebar.md, docs/web/control-ui/feature-reference.md, docs/gateway/protocol/rpc-session-control.md, and docs/reference/session-management-compaction/schema.md.

Follow-ups: native client parity. Automatic pagination backfill was reviewed and intentionally not added; the existing bounded-read and manual continuation behavior remains.

Evidence

Isolated Codex autoreview on the full branch is scoped-clean through P2 (P0–P2). An earlier node scripts/check-changed.mjs run passed; current rebase validation is recorded below. The initial 683 targeted tests passed, followed by 99 post-extraction tests and the 16-test visibility/catalog fixture selection. These completed proofs are reused for publication.

Measured command wall seconds with --maxWorkers=1 are below. UI runs used the unit project and TZ=America/Los_Angeles. Initial measurements precede the sibling extractions; the post-extraction column records the affected reruns. Database-backed command wall time includes worker preparation, imports, and transforms. The three new sibling test bodies took approximately 0.994 s, 3.556 s, and 0.150 s respectively. CI timing is pending attachment to this head.

Test file Initial wall s Post-extraction wall s
packages/gateway-protocol/src/schema/sessions-patch.test.ts 35.808 —
packages/gateway-protocol/src/index.test.ts 20.468 —
src/config/sessions/sessions.test.ts 227.544 —
src/gateway/sessions-patch.test.ts 86.142 —
src/gateway/session-utils.test.ts 91.403 —
src/gateway/session-event-payload.test.ts 21.124 —
src/shared/session-method-scopes.test.ts 2.834 —
src/agents/command/session-store.test.ts 59.988 —
src/auto-reply/reply/session.heartbeat-no-reset.test.ts 87.072 56.009
ui/src/lib/sessions/session-snooze.test.ts 8.660 —
ui/src/components/session-menu.test.ts 10.548 13.550
ui/src/components/app-sidebar-session-archive-visibility.test.ts 2.491 7.954 combined*
ui/src/components/session-attention-controller.test.ts 3.059 —
ui/src/components/app-sidebar-session-types.test.ts 2.873 —
ui/src/components/session-organizer-batch-mutations.test.ts 4.135 —
ui/src/components/app-sidebar-session-catalogs.test.ts 2.459 7.954 combined*
src/agents/command/session-store.snooze.test.ts — 180.488
src/gateway/session-utils.snooze.test.ts — 103.727
src/gateway/sessions-patch.snooze.test.ts — 98.834

*The visibility and catalog files ran together in one 7.954-second command. Large original test files were not rerun wholesale after extraction; affected siblings and owner tests were rerun, and all 27 selected test-type graphs passed. Full repository and live channel/Gateway suites were not rerun for publication.

Rebased onto main and fixed archived-entry snooze retention in ec3be151bb7a; the regression in src/config/sessions/sessions.test.ts passes with all 38 tests in that file.

The eight-commit branch was rebased onto f02c8eba42a2 after main introduced a documentation conflict. The resolution preserves main's archive creator/admin authorization text and all snooze text. All eight commit messages are unchanged; the range-diff changes only that documentation context. Current published head: c3a4b1f43c84.

Current integration proof: pnpm protocol:check:swift passed (2.699 s); pnpm test test/vitest-cli-ownership.test.ts --maxWorkers=1 passed all 387 tests (78.761 s); the complete node scripts/check-changed.mjs passed (1,972.001 s), including native Swift lint and app contract tests. The earlier local SwiftLint exception did not recur. The coordinator also ran the owner-filter keyboard E2E file after its expectation correction (4 passed).

Prior-head CI run 36765307756 completed with 143 successful, 4 failed, 0 cancelled, and 14 skipped jobs. The corrected UI E2E lane passed. checks-node-changed-compact-small-5 failed because main removed src/plugins/hooks.security.test.ts while src/plugins/compat/registry-records.ts still references it; the failing test and registry inputs are unchanged by this PR and byte-identical on the tested main parent and the observed current main. pr-fail-fast received HTTP 409, and the aggregate gate failed.

The other failing job, checks-node-changed-extensions-bundle-8, had four manager-publication-settlement.test.ts cases miss a five-second native-startup marker. The exercised worker-domain path does not invoke snooze behavior. A bounded baseline on main 662b77618800 through Blacksmith Testbox run 36769441510, constrained to two CPUs/8 GiB, Node 24.19.0, and two workers, passed all 9 files / 173 tests in 115.85 s wall. This larger-host constrained reproduction is inconclusive; it does not establish a timeout fix or prove the historical CI failure's cause. The lease and temporary baseline worktree were cleaned up.

Current-head CI run 36770343804, attempt 1, finished with 117 successful, 2 failed, 28 cancelled, and 14 skipped jobs. The coordinator attributed both root failures to hosted flakes: the npm-pack lifecycle file passed locally on this exact tree (23/23), and the sign-in file passed locally (1/1); its note/confirm mismatch is also a known hosted intermittent seen on unrelated PRs. Neither test file is touched by this PR. The earlier main-side registry red was fixed on main in 09e77e135f09.

Attempt 2 completed with 128 successful, 2 failed, 17 cancelled, and 14 skipped jobs. The npm-pack job passed; only the same known sign-in assertion repeated, plus the aggregate gate. All 17 cancellations are attributed to that Node matrix failure, with no other failed step or test diagnostic in their annotations. The maintainer explicitly authorized the native pre-existing-CI exception for this exact head when only the attributed flakes recur. The native pre-existing-CI admin-evidence route merged this exact head as d63df96b48a69de1e191ed8524920693f7a9014f; GitHub reports MERGED and the commit was verified on origin/main. Failed and cancelled coverage remains recorded. No new push, rebase, or test/CI rerun was performed by the lander.

Review adjudication:

  • Plugin slots: the released v2026.9.7 API-stability policy already marks registration/runtime/SDK APIs experimental and requires testing each declared host version. No named affected consumer or slot-specific compatibility window was identified. These root fields are read-only mirrors; authoritative pluginExtensions[pluginId][namespace] state remains stored. An external plugin using either exact name can encounter a mirror/registration collision after an unsupported-version upgrade, and a legacy future numeric mirror named snoozedUntil could be classified as snoozed after that upgrade. Namespaced plugin state remains stored. This conditional visibility risk is retained under the frozen field design and released experimental API policy; no supported affected consumer or protected slot-specific compatibility window was identified. Copied-store visibility was not tested, and no such proof is claimed.
  • Undo: the approved contract makes Undo an explicit snoozedUntil: null wake, following existing archive Undo semantics, with connection and durable-session identity fences. A newer local toast normally replaces the older one. Cross-client/in-flight writes remain last-write-wins, so an older visible Undo can clear a newer snooze; conditional rollback would be a separate Gateway concurrency contract, not the frozen behavior requested here.

Screenshots

All six captures were inspected and contain only synthetic fixtures from the mocked Control UI.

Before / after context menu:

Before: session context menu without Snooze

After: session context menu with Snooze presets

Before / after status filter:

Before: session status filter without Snoozed

After: session status filter with Snoozed

After: snooze confirmation toast with Undo

After: Snoozed view with wake-time trail and Wake session item

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime agents Agent runtime and tooling size: XL labels Sep 30, 2026
@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 30, 2026
@clawsweeper

clawsweeper Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 30, 2026, 4:59 PM ET / 20:59 UTC (Revision 13).

ClawSweeper review

What this changes

The branch adds Gateway-stored session wake times, Control UI snooze and wake controls, sidebar filtering, protocol models, tests, and documentation.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep open. Current main does not offer session snooze, so this PR remains useful. The prior P1 finding persists on the pinned head: a previously valid numeric plugin mirror can be interpreted as a snooze after upgrade and hide an ordinary session.

Priority: P2
Reviewed head: c3a4b1f43c8493797ffa9d99b89d9cdf32e185a6
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The feature has focused tests and clear visual evidence, but a concrete released-store compatibility defect blocks readiness.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate. Four inspected mock-Control-UI screenshots show the menu and filter appearance, and the PR reports focused tests; they do not establish a copied released-store upgrade. Data-model compatibility is insufficient because the candidate adds durable session-entry fields without proof for the old promoted-slot case.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate. Four inspected mock-Control-UI screenshots show the menu and filter appearance, and the PR reports focused tests; they do not establish a copied released-store upgrade. Data-model compatibility is insufficient because the candidate adds durable session-entry fields without proof for the old promoted-slot case.
Evidence reviewed 11 items PR introduction: The pinned merge-base-to-head diff adds snooze fields to session state and reserves their names against plugin slots.
Released plugin contract: In v2026.9.7, neither snooze name is reserved, and the released plugin contract permits a promoted session-entry slot with a numeric value.
Existing stored entry interpretation: Candidate normalization retains a finite positive numeric snoozedUntil value without checking whether pluginExtensionSlotKeys owns that formerly valid mirror.
Findings 1 actionable finding [P1] Migrate old promoted slots before reserving snooze keys
Security None None.

How this fits together

The Gateway stores session entries and publishes session rows to clients. The Control UI uses those rows to decide which sessions appear in the sidebar and when a snoozed session should reappear.

flowchart LR
  A[Sidebar menu] --> B[Session patch request]
  B --> C[Gateway validation]
  C --> D[Stored session entry]
  E[Messages and completed runs] --> D
  D --> F[Published session row]
  F --> G[Sidebar filter and wake timer]
Loading

Decision needed

Question Recommendation
Must an existing v2026.9.7 store with a numeric promoted snoozedUntil slot retain normal session visibility on upgrade? Preserve existing sessions: Migrate or isolate the old promoted mirror before interpreting the core snooze field, with copied-store upgrade proof.

Why: The PR body accepts an experimental plugin registration collision, but it does not explicitly accept the separate silent sidebar reclassification of already stored sessions.

Before merge

  • Migrate old promoted slots before reserving snooze keys (P1) - This remains from the prior review of the same head. A v2026.9.7 plugin could persist a future numeric snoozedUntil mirror. The new reservation rejects its registration and makes cleanup ignore its recorded slot key, while entry normalization and sidebar filtering treat the retained number as a real snooze. An ordinary session can disappear from Active after upgrade; migrate or distinguish that old mirror before consuming it as core state.
  • Resolve merge risk (P1) - An existing store can contain a formerly valid numeric plugin mirror named snoozedUntil; the candidate can silently classify its ordinary session as snoozed, and no migration or copied-store reopen proof resolves that upgrade case.
  • Complete next step (P2) - Resolve the formerly valid numeric plugin-slot upgrade case and provide copied-store reopen proof before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.

Findings

  • [P1] Migrate old promoted slots before reserving snooze keys — src/plugins/session-entry-slot-keys.ts:25-26
Agent review details

Security

None.

PR surface

Source +534, Tests +1066, Docs +18, Other +16. Total +1634 across 76 files.

View PR surface stats
Area Files Added Removed Net
Source 42 673 139 +534
Tests 29 1248 182 +1066
Docs 4 22 4 +18
Config 0 0 0 0
Generated 0 0 0 0
Other 1 16 0 +16
Total 76 1959 325 +1634

Review metrics

Metric Value Why it matters
Implementation versus coverage production +817/-139; tests +1120/-182; docs +22/-4 The growth is explained by a Gateway-to-Control-UI feature, but its persisted-state upgrade case needs direct proof.
New durable session fields 2 fields added Both fields are stored in session entry JSON and create an upgrade compatibility boundary.

Merge-risk options

Maintainer options:

  1. Repair the upgrade path (recommended)
    Separate or migrate formerly valid promoted slot values and prove visibility and plugin state with a copied v2026.9.7 store.
  2. Explicitly accept affected upgrades
    Record the precise sidebar effect and a recovery path if preserving these experimental plugin mirrors is not the chosen contract.

Technical review

Best possible solution:

Give core snooze state an unambiguous owner or migrate recorded legacy slot ownership before row projection, then verify a copied released store reopens with the session visible and plugin state intact.

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

Yes, source inspection gives a high-confidence upgrade path: persist a future numeric promoted slot in a released store, then reopen it with this head. This read-only review did not execute that path.

Is this the best way to solve the issue?

No, the Gateway and sidebar ownership is appropriate, but reusing a formerly available durable plugin-slot name without migration is not yet upgrade-safe.

Full review comments:

  • [P1] Migrate old promoted slots before reserving snooze keys — src/plugins/session-entry-slot-keys.ts:25-26
    This remains from the prior review of the same head. A v2026.9.7 plugin could persist a future numeric snoozedUntil mirror. The new reservation rejects its registration and makes cleanup ignore its recorded slot key, while entry normalization and sidebar filtering treat the retained number as a real snooze. An ordinary session can disappear from Active after upgrade; migrate or distinguish that old mirror before consuming it as core state.
    Confidence: 0.91

Overall correctness: patch is incorrect
Overall confidence: 0.89

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 33513de8d98a.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Session snooze is a useful but nonurgent sidebar capability.
  • merge-risk: 🚨 compatibility: The new core field names can collide with plugin slots that were valid in v2026.9.7.
  • merge-risk: 🚨 session-state: A retained numeric mirror can make an existing ordinary session disappear from Active after upgrade.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The maintainer-authored PR is exempt from the external-contributor proof gate. Four inspected mock-Control-UI screenshots show the menu and filter appearance, and the PR reports focused tests; they do not establish a copied released-store upgrade. Data-model compatibility is insufficient because the candidate adds durable session-entry fields without proof for the old promoted-slot case.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The maintainer-authored PR is exempt from the external-contributor proof gate. Four inspected mock-Control-UI screenshots show the menu and filter appearance, and the PR reports focused tests; they do not establish a copied released-store upgrade. Data-model compatibility is insufficient because the candidate adds durable session-entry fields without proof for the old promoted-slot case.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Preserve or migrate the formerly valid promoted slot before interpreting it as a core snooze.
  • Record a copied v2026.9.7 store reopen showing ordinary-session visibility and retained plugin state.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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.

History

Review history (12 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-30T17:45:17.849Z sha 2b510dc :: blocked before merge. :: [P1] Preserve previously valid plugin session slots | [P2] Make Undo conditional on the current snooze
  • reviewed 2026-09-30T18:03:27.049Z sha 04e469b :: blocked before merge. :: [P1] Preserve previously valid plugin session slots | [P2] Make Snooze Undo conditional on the current snooze
  • reviewed 2026-09-30T18:23:04.065Z sha 04e469b :: blocked before merge. :: [P1] Preserve previously valid plugin session slots | [P2] Make Snooze Undo conditional on the current snooze
  • reviewed 2026-09-30T18:35:28.799Z sha 04e469b :: blocked before merge. :: [P1] Preserve released plugin session slots during upgrade
  • reviewed 2026-09-30T19:09:32.535Z sha ef6163a :: blocked before merge. :: none
  • reviewed 2026-09-30T19:31:29.929Z sha ecfe31b :: blocked before merge. :: none
  • reviewed 2026-09-30T20:15:42.215Z sha c3a4b1f :: blocked before merge. :: none
  • reviewed 2026-09-30T20:30:11.756Z sha c3a4b1f :: blocked before merge. :: [P1] Preserve old numeric plugin slots before claiming snooze keys

@steipete
steipete force-pushed the steipete/session-snooze branch from 85c2e22 to ec3be15 Compare September 30, 2026 17:05
@steipete
steipete marked this pull request as ready for review September 30, 2026 17:07
@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: c3a4b1f43c8493797ffa9d99b89d9cdf32e185a6
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/shared/session-method-scopes-base.ts: Controls Gateway authentication, pairing, or caller permissions. Check identity validation, scope checks, and revocation.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. and removed proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Sep 30, 2026
@steipete
steipete force-pushed the steipete/session-snooze branch from 04e469b to ef6163a Compare September 30, 2026 19:02
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 30, 2026
Active session lists need a way to defer a conversation without archiving
it or interrupting its work.

Store and protocol retain optional wake and set timestamps in entry JSON
and row snapshots, reserving the core names against plugin slot collisions.
Scoped patches validate durable identity, future wake
times, and eligible roots. Pin and archive clear snooze; snooze keeps pin.

Gateway user interactions and completed activity clear snooze against the
current entry, including snoozes set during a run. System events and
preserved-state runs keep it. Existing row publications carry the change.

The Control UI sidebar adds calendar-aware presets, Snoozed filtering,
Wake and Undo actions, localized wake labels, and deadline invalidation
through the existing attention controller. Root rows reuse the existing
trail, and adopted catalog rows share the visibility projection.

Docs explain the active-session overlay and patch contract. Coherent
sibling modules and shared test fixtures keep the original owners within
their line budgets without removing coverage.

Release-note context: snooze a sidebar session until a preset time, send
it a message, or let its run finish to bring it back. Snoozing never stops
or blocks the session, and its Gateway-owned state follows every client.
…snooze

The Snooze submenu labels already name the day ("Tomorrow"), so the time
column now shows only the clock time except for "Next week", which keeps
its weekday. The shared Control UI session fixture now applies snoozedUntil
patches with the same rules as the Gateway (null wakes, archive and pin
clear, a new wake time restamps), so the mocked dev server and e2e harness
hide and restore snoozed rows like a real Gateway.
Automatic archival (active-session cap, age retention, stale dashboards)
writes archive facts without the sessions.patch path, so a snoozed session
kept its wake time through the archive and a later restore left it hidden
from the Active list. The canonical entry shape now removes snoozedUntil
and snoozedAt from any archived entry, which covers every persisted write,
every read projection, and the existing-entry projection the restore patch
uses.
@steipete
steipete force-pushed the steipete/session-snooze branch from ecfe31b to c3a4b1f Compare September 30, 2026 20:06
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 30, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

CI attribution for run 36770343804 on head c3a4b1f (117 success, 2 failure, 28 cancelled by fail-fast):

Job Test Diagnostic Classification
plugins e2e shard src/plugins/install.npm-spec.e2e.test.ts › preserves a real npm-pack successor when an earlier lifecycle lease has closed timed out at 120000 ms Hosted flake: file untouched by this PR; passes locally on this exact tree (23/23).
agentic-gateway-server-isolated-hosted-1 src/gateway/setup-inference.first-signin.integration.test.ts › replaces same-owner device sign-in… expected confirm, received note Known hosted intermittent (seen on unrelated PRs today); file untouched by this PR; passes locally on this exact tree (1/1).

Both failed jobs were rerun once on the same head. Earlier heads also inherited a main-side red (src/plugins/compat/registry.test.ts referencing a test removed in #162019), fixed directly on main in 09e77e1.

@steipete
steipete merged commit d63df96 into main Sep 30, 2026
365 of 415 checks passed
@steipete
steipete deleted the steipete/session-snooze branch September 30, 2026 21:32
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 1, 2026
* feat(sessions): snooze sessions from the sidebar menu

Active session lists need a way to defer a conversation without archiving
it or interrupting its work.

Store and protocol retain optional wake and set timestamps in entry JSON
and row snapshots, reserving the core names against plugin slot collisions.
Scoped patches validate durable identity, future wake
times, and eligible roots. Pin and archive clear snooze; snooze keeps pin.

Gateway user interactions and completed activity clear snooze against the
current entry, including snoozes set during a run. System events and
preserved-state runs keep it. Existing row publications carry the change.

The Control UI sidebar adds calendar-aware presets, Snoozed filtering,
Wake and Undo actions, localized wake labels, and deadline invalidation
through the existing attention controller. Root rows reuse the existing
trail, and adopted catalog rows share the visibility projection.

Docs explain the active-session overlay and patch contract. Coherent
sibling modules and shared test fixtures keep the original owners within
their line budgets without removing coverage.

Release-note context: snooze a sidebar session until a preset time, send
it a message, or let its run finish to bring it back. Snoozing never stops
or blocks the session, and its Gateway-owned state follows every client.

* chore(sessions): restore the plugin-seam note on lifecycle timestamps

* fix(ui): keep snooze preset times compact and teach the mock fixture snooze

The Snooze submenu labels already name the day ("Tomorrow"), so the time
column now shows only the clock time except for "Next week", which keeps
its weekday. The shared Control UI session fixture now applies snoozedUntil
patches with the same rules as the Gateway (null wakes, archive and pin
clear, a new wake time restamps), so the mocked dev server and e2e harness
hide and restore snoozed rows like a real Gateway.

* fix(sessions): drop snooze metadata when an entry is archived

Automatic archival (active-session cap, age retention, stale dashboards)
writes archive facts without the sessions.patch path, so a snoozed session
kept its wake time through the archive and a later restore left it hidden
from the Active list. The canonical entry shape now removes snoozedUntil
and snoozedAt from any archived entry, which covers every persisted write,
every read projection, and the existing-entry projection the restore patch
uses.

* chore(protocol): regenerate Swift models for session snooze fields

* test(gateway): keep the snooze session-utils test in inventory order

* test(ui): walk the Snoozed status option in the sidebar filter keyboard test

* test(ui): expect Snoozed after one arrow from Active in the owner filter e2e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling app: web-ui App: web-ui docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. security-sensitive-changed size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant