Skip to content

fix(native): retain Working grace across shell snapshots - #325

Merged
rynfar merged 1 commit into
nativefrom
nw/324-snapshot-grace
Nov 7, 2026
Merged

rynfar merged 1 commit into
nativefrom
nw/324-snapshot-grace

Conversation

@rynfar

@rynfar rynfar commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Problem

An authoritative shell snapshot discarded the same thread's Working exit grace because the watched sidebar tracker key included the shell revision.

Change

Keep the existing tracker under the saved/canonical environment incarnation. Reuse the thread's parsed creation time to clear recreated-thread state and return timestamps. The shared local tracker gets the same recreation protection. Unchanged identities retain their behavior; no extra registry, API, or per-row string allocation is added.

The existing core case applies a real snapshot and checks unchanged placement/identity, the grace deadline, and seeded-history controls for replacement environments and recreated threads. A return-order fixture now keeps creation time constant across running/completed observations; its assertion and times are unchanged.

Verification

  • 1,356 core/client tests; strict workspace/all-target Clippy.
  • Normal and snapshot builds; theme, intake, and conformance checks.
  • Compiler-JSON-selected binaries: three exact core history cases and five exact native paging controls, each selecting and passing one test.
  • Independent exact-head source and PR-context reviews pass. Final current-artifact review is pending.

This is a finite core state fix, not app timer/wake verification or whole SB-SECTIONS completion. Sidebar remains 9/16. No constants, server, provider, or pixel changes. No live-provider, native-input, restart, or performance proof is claimed.

Closes #324. Parent #242.

Model/harness: OpenAI coding model via Prime Agent; independent Sol/Codex review.

@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Independent exact-head and PR-context source review found no blocking issues in this finite four-file change. Core/client tests (1,356), strict workspace/all-target Clippy, and theme/intake/conformance checks pass. The normal app build is running. Snapshot build, selected core/native runtime cases, and final current-artifact review remain pending before merge. No app timer/wake or whole SECTIONS credit.

@rynfar
rynfar merged commit cf93bf5 into native Nov 7, 2026
@rynfar

rynfar commented Nov 7, 2026

Copy link
Copy Markdown
Owner Author

Finite core fix #324 is accepted after PR #325 matched-head squash merge cf93bf5d0b215e901530b0b0cf4e4248803c6c0c (tree fe2004c35a2dbc424a3f34a17e8fbcb0e3af42f8), required candidate gates, and fresh merged proof.

  • All 1,356 core/client tests, strict workspace/all-target Clippy, normal/snapshot builds, and theme/intake/conformance checks pass.
  • Fresh merged snapshot build and compiler-JSON-selected binaries: three exact core history cases and five exact native paging controls, each selecting and passing one test.
  • Independent final review verified the current source, ledger, clean merged tree, and all three present artifact hashes. Final review SHA256: 14137acc7029253e28dd264004cd49f45ccff9799ffafc620badefd0f12c7beb.

The same-incarnation tracker retains Working exit grace across authoritative snapshots. Recreated thread and replacement environment histories stay separate. The return-order fixture now preserves creation identity; its assertion and timestamps are unchanged.

This accepts pure state/deadline behavior only. It does not prove actual app timer wake, complete project-filter history, or finish SB-SECTIONS. Sidebar acceptance remains 9/16. No constants changed. Formatting remains the approved exception.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant