Skip to content

Complete sidebar snooze parity and lifecycle acceptance #299

Closed

Description

@rynfar

Complete the remaining applicable SB-SNOOZE row as one coherent task. The calendar, settings navigation, presets, custom dialog and owner/grant guards already exist. Reuse their valid proof; do not reimplement them or replay historical factory journals. This task implements the remaining source-backed dependencies and closes the finite lifecycle evidence gaps for #262/#242, including current upstream drift #289. Sidebar remains 5/16 accepted until whole-row review, gate and merged verification complete.

Fresh source comparison at native 90bbacab503cc9c4a3a0b50e66f7d245ac8f1950 confirms:

  • Native shared resolve_custom_snooze rounds fractional epoch milliseconds; web resolveCustomSnooze uses Date truncation. The earlier standalone extracted-production RED is not a linked-crate regression test. Correct the shared resolver with a meaningful compiled failing-first extension to its existing duration case (0.6ms rejection,1.6ms truncation, ordinary controls).
  • Web allows snoozing an existing user-input question and wakes only for newer question/failure edges. Native rejects every pending request and treats existing questions as early wake. parity: fix(threads): allow snoozing pending input requests (pingdotgg/t3code#20058) #289 owns this intake drift. Native PendingRuntimeRequestSummary omits the existing wire createdAt, which current contracts serialize as an ISO string; project it safely, preserving missing/invalid timestamp fail-visible behavior and unknown request handling.
  • Web inline snooze visibility requires current operate permission, support and eligibility. Native render_card currently checks eligibility only. Activation fails closed, so this is an affordance parity gap, not evidence of unauthorized writes.

Explicit separate scope decision: #262's original app-only edit brief remains unchanged. This new allocation owns its indispensable shared-core/row dependencies and current #289 drift; it does not grant blanket core or row edits.

Allowed production paths/changes:

  1. crates/core/src/sidebar/settled.rs: custom-duration conversion and current snooze eligibility/question/failure/wake semantics only.
  2. crates/core/src/sidebar/thread.rs: minimum request-kind/question-time projection needed by those semantics.
  3. crates/core/src/shell.rs: only the optional backward-compatible PendingRuntimeRequestSummary.createdAt field/decoding needed above. No server/contracts change.
  4. Existing crates/core/src/sidebar/tests.rs cases, including required literal defaults and compatibility/regression coverage.
  5. crates/app/src/sidebar/row.rs: snooze affordance/entry eligibility only; bounded test-only production-path proof.
  6. crates/app/src/snooze_dialog.rs: only demonstrated snooze lifecycle/focus/validation/invalidation corrections and existing-module tests.
  7. crates/app/src/context_menu.rs: snooze-only paths, plus minimal cfg(test,snapshot) fixture sharing if indispensable.
  8. Only SB-SNOOZE ledger cells. Preserve all other130 rows and UPSTREAM bytes.

No AppState/controller/bulk/settings/client/dependency/global-renderer/server/web/auth changes; reuse existing default-off ClientFixture/in-memory command sink and install_active_environment, without a supervisor/network. Extra files require a precise source-backed blocker to root before edits. Preserve other row/menu/project behavior and the five accepted sidebar rows.

Acceptance covers the entire applicable #262/#242 checklist:

  • Calendar/local-day bounds and selection/keyboard/focus; retain typed date/time/local timezone/DST validation and positive fractional durations. Prior266 midnight proof stays narrow and is reused, never rerun.
  • Settings click/keyboard cancels pending request/calendar/timer before existing Settings→Threads→snooze-options navigation; fresh reopen resets owner/input/view. No settings save.
  • Actual inline hover→menu→Custom, thread context and bulk entry paths with current eligibility/capability/grants; preset confirmation re-resolves current settings/time and expired choices warn without dispatch. No forced-visible substitute or context frame relabeled inline.
  • Actual AppState capture/plan_for and guarded submit against changed environment/connection/generation, same-id replacement, vanished targets, grants/config. Use synthetic watched grants and owned in-memory command sink; no actual server snooze/delete/wake/settings/provider writes. Verify cancellation, Enter/Escape/backdrop, mode errors/clearing, focus return, bulk selection retention, reverse wake/Undo plans where needed. Existing accepted behavior/source preservation need not be rerun merely for acknowledgement.
  • One finite evidence map may reuse the earlier 34-row matrix as navigation. No recursive proof-journal machinery, repeated copies, unrelated full-source reads, duplicate capture credit or new blanket live-grant/relay/multidevice/performance requirements. Mark a remaining gap honestly if it cannot be covered under authorized synthetic limits.

Extend existing tests at the lowest failing layer. Pure visual differences use before/after proof, no nitpick tests. Fresh PRIVATE snapshot build actualJOIN0+hash before ANY executable app/test render/help; normal/cache binaries never qualify. Only copied14658 Replay(dev), throwaway copied home/empty T3 home/selectedNone fixtures. Original homes and protected15ae/f0/5056 user apps stay untouched. No CUA/browser/clipboard/real windows/new servers/paid app turns/auth widening/unowned signals.

Use native-worker. Publish one coherent PR and complete material evidence. A fully supported done ledger proposal is allowed, but accepted sidebar count changes only after exact independent Sol6.1 whole-row review, one essential root gate and one meaningful merged PRIVATE verification. Otherwise retain partial with exact remaining requirements. Formatting RED, including touched code, stays explicit; no repo-wide formatting. Do not repeat terminal298/297/270/268/266/264/263/261 pipelines or wake archived chats.

Process set by direct maintainer: build correctly, stop waste; finish a row rather than multiplying tiny slices. Root56 orchestrates only. Model/harness: GPT-6.1 Sol / Codex.

Activity

  1. added
    parity
    native:feature
    status:in-progress
    on Nov 6, 2026
  2. rynfar commented on Nov 6, 2026

    @rynfar
    OwnerAuthor

    Root56 verified the focused-input failure in the pinned sources and recorded a bounded proof-method decision. A focused editable Input on macOS calls native text-content/autofill setup; GPUI TestWindow deliberately has no native window handle. Dependency/platform changes and real windows stay outside this task.

    Continue the same worker with actual production focus handles, key/events, cancellation/validation/target checks asserted before transferring focus to an existing footer control for headless draw/capture. A native focused-input NSView/autofill raster pass is outside this changed feature's acceptance and remains explicitly unverified. Unfocused dialog images must be labeled accordingly; no disabled/read-only replacements or fabricated handles. Clock-glyph pixels remain unverified if the headless renderer omits them; actual eligible/denied hit targets and real hover/click paths still require proof. No glyph-renderer project.

    All applicable functional snooze requirements, independent exact-head review, one essential gate and meaningful merged verification remain required. Current linked core RED→GREEN41 is intermediate-source evidence, not final candidate coverage. No commit/PR or new row acceptance yet; sidebar5/16. The original eight-path scope and all operational limits remain unchanged. Same worker resumed once for this substantive decision; no new checkout/clone/dependency work.

  3. added
    status:review
    and removed
    status:in-progress
    on Nov 6, 2026
  4. rynfar commented on Nov 6, 2026

    @rynfar
    OwnerAuthor

    Independent review requests changes on PR #300 at ebd010fe09ebeff28c7278f44fcfeec6ab91f5f2: the row samples current grants during rendering, but a grant-only update does not notify the cached sidebar. Forced test redraws missed that production invalidation path. Activation still fails closed; this is a stale affordance defect.

    Root56 verified the current sources and authorized only one additional path, apps/native/crates/app/src/sidebar/mod.rs, for an owned event-driven current-session grant watcher/rebind/sidebar notification and its bounded regression. Nine allowed paths total; no global/AppState/client/dependency/workspace/auth changes. Require compiled failing-first evidence from actual pane notification/cache behavior, with stationary pointer and no clock advance or forced parent invalidation. Include revoke/regrant/initial grant and old-owner watcher release.

    Same worker/checkout/PR continues; same independent reviewer retained for the revised head. No root gate or merge ran on the rejected head. Other functional checklist evidence is supported within the explicit renderer limits, but SB-SNOOZE acceptance remains pending and sidebar stays5/16. Existing formatting RED and all runtime/safety qualifications remain.

  5. rynfar commented on Nov 6, 2026

    @rynfar
    OwnerAuthor

    SB-SNOOZE is accepted after PR #300 merged as 50d3bbcd1203cb0fee6f06b16076bb51c0927d80 / tree 7aaaa1d9bbb041d883c5ae4382dcfbb11a73a7f1. Sidebar acceptance is now 6/16, with 10 partial rows remaining. Preserve SB-LIST/HEADER/UNDO/DRAFTS/TAGS.

    The full five-bullet checklist is supported: calendar/local-day/validation, Settings cancellation/fresh reopen, inline/context/bulk entry and presets, current owner/grant/config guards, keyboard/focus/errors/cancel/reverse preservation. New linked fractional/question/failure and focus regressions pass. Independent review's cached-grant P2 was fixed with an owned pane watcher and compiled notification/cache-contract RED→GREEN; the same reviewer supports the revised full functional proposal at f02e647210e7fc1d74c65d3f2305b6e4f6f287fb.

    ONE root gate passed strict default Clippy, workspace1,410 once, theme/parity42/scoped conformance and diff checks. Valid published-source build/format receipts were reused. Fresh merged PRIVATE snapshot build and libtest compile joined/hash-verified before ONE process ran BOTH cached-grant and full lifecycle cases:2 passed. Current representative merged error/settings images were inspected; duplicate image groups add no credit. Original copied14658 home was preserved before exact clean-head cleanup.

    Formatting remains RED including touched code/cells. Proof remains synthetic ClientFixture/action/focus/capture boundaries plus actual pane notification/GPUI cache contract. Native focused NSView/autofill raster, inline SVG pixels, universal raw focused keys, live grant/server success/Undo notice, relay/fleet/performance are unverified. Retained prior calendar/midnight proofs keep their event-time/source/P3 qualifications; no archived pipeline was replayed. Separate #299 explicitly owned the core/row/#289 dependencies; original #262 edit-scope exclusions were not widened.

  6. removed
    status:review
    on Nov 6, 2026
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

    native:featureparity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions