Skip to content

fix(app): restore the offline loaded-workspace reset and drop stale sessionsLoaded fixtures (follow-up to #4889) - #4934

Merged
yomgui merged 1 commit into
devfrom
fix/restore-offline-loaded-state-reset
Sep 12, 2026
Merged

yomgui merged 1 commit into
devfrom
fix/restore-offline-loaded-state-reset

Conversation

@yomgui

@yomgui yomgui commented Sep 12, 2026

Copy link
Copy Markdown
Member

Summary

Surface(s) touched: history-reading (inventory) / Rows changed: C05, C07 / Blanks introduced: none

  • Restore only the private loaded-ID reset alongside disconnected inventory clearing. Counts remain removed.
  • C05 is necessary: the mounted hook regression fails without this line because recovery skips the unchanged, unselected remote scope; local scope invalidation alone is insufficient. Healthy refresh retains cached inventories. Current desktop transient gaps retain display state; the clearing branch exercised here is web disconnect.
  • C07 escaped tsc because apps/app/tsconfig.json excludes tests/. --listFilesOnly confirms both fixtures absent, public type present. The literal has an explicit return type, not widening. Remove the stale fixture field and replace removed hook-export assertions with inventory/loading assertions; do not widen the public type.

Verification

Passed locally on dc0a4f1 (requested Bun/renderer lane):

  • bun test tests/archived-session-sort.test.ts tests/use-workspace-route-state.test.tsx (apps/app): exit 0; 13 passed, 0 failed/skipped.
  • pnpm evals:pr specs/workspace-inventory-recovery.test.ts: exit 0; 1 passed, 0 failed/skipped, wrapping the 13 assertions-backed tests.
  • pnpm --filter @openwork/app typecheck: exit 0.
  • Before reset: focused offline regression failed, missing remote reload. Clean origin/dev also reproduced two stale-hook-consumer failures.

Reviewed #4816 file list: no deleted file, badge, count string/i18n, Archived count UI, or public field restored. Only shared production hook changes, by one line. Signed and signed off; do not merge.

@vercel

vercel Bot commented Sep 12, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 12, 2026 5:18am UTC
openwork-den Ready Ready Preview Sep 12, 2026 5:18am UTC
openwork-diagnostics Ready Ready Preview Sep 12, 2026 5:18am UTC
openwork-landing Ready Ready Preview, v0 Sep 12, 2026 5:18am UTC

@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (14408 ms), confidentiality-review (18572 ms), spec-provenance-review (27836 ms), desktop-den-sync-review (23418 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (dc0a4f14451240fb2a50f715dc8bf881ccf04204). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@yomgui

yomgui commented Sep 12, 2026

Copy link
Copy Markdown
Member Author

Test evidence — workspace inventories recover after disconnect and retain count-free fixture compatibility — ✅ passed

SHA dc0a4f1 · engine v1

✅ passed · 1 expectations passed · 0 failed · 0 pending

verdict passed · 0 user observations · 0 probes · steps 0/0

ℹ️ ASSERTION — 1. C05/C07: unchanged remote scope reloads after offline clearing; healthy refresh stays cached; archive and routing consumers use the retained contract

bun test tests/archived-session-sort.test.ts tests/use-workspace-route-state.test.tsx
Exit: 0
bun test v1.4.0 (34cbb9a40)

13 pass
0 fail
107 expect() calls
Ran 13 tests across 2 files. [119.00ms]

  • ✅ PASS C05/C07: unchanged remote scope reloads after offline clearing; healthy refresh stays cached; archive and routing consumers use the retained contract — bun test tests/archived-session-sort.test.ts tests/use-workspace-route-state.test.tsx
    Exit: 0
    bun test v1.4.0 (34cbb9a40)

13 pass
0 fail
107 expect() calls
Ran 13 tests across 2 files. [119.00ms]


Test run created 2026-09-12T05:17:09.617Z · Source: evals/results/test-runs/2026-09-12T05-17-09-616Z-workspace-inventories-recover-after-disconnect-and-retain-count-free-fixture-com/test-run.json · Repro: pnpm --dir evals artifacts:publish -- --pr 4934 --test-run 2026-09-12T05-17-09-616Z-workspace-inventories-recover-after-disconnect-and-retain-count-free-fixture-com

@yomgui
yomgui merged commit 39299d7 into dev Sep 12, 2026
27 checks passed

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — dc0a4f14 Deployed Sep 12, 2026 by vercel[bot]
Preview – openwork-app — dc0a4f14 Deployed Sep 12, 2026 by vercel[bot]
Preview – openwork-den — dc0a4f14 Deployed Sep 12, 2026 by vercel[bot]
Preview – openwork-diagnostics — dc0a4f14 Deployed Sep 12, 2026 by vercel[bot]
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