Skip to content

fix(desktop): restore per-session turn clock dropped by the sync + gate renderer tests in CI#160

Merged
OmarB97 merged 1 commit into
mainfrom
fix/turn-clock-merge-casualty
Jun 10, 2026
Merged

fix(desktop): restore per-session turn clock dropped by the sync + gate renderer tests in CI#160
OmarB97 merged 1 commit into
mainfrom
fix/turn-clock-merge-casualty

Conversation

@OmarB97

@OmarB97 OmarB97 commented Jun 10, 2026

Copy link
Copy Markdown
Owner

Regression (user-visible): the statusbar running-turn timer is dead on main — and a backgrounded turn's elapsed time zeroes when you focus it (the exact bug upstream NousResearch#41182 fixed). The sync's internal merge (e866446df) clipped the implementation while the type + tests survived: all 6 turnStartedAt seed/clear sites in use-message-stream.ts and the view-sync mirror in use-session-state-cache.ts were gone (git log -S misses it because merge commits hide content drops).

Fix: restored all 7 sites to upstream/main's exact shape. use-session-state-cache tests 3/3; full renderer suite 602/602 — first fully-green run (also green under TZ=UTC).

Prevention: this is the third silent renderer clobber today (sleep/wake recovery, ghost-pin rollback, now the turn clock) — all merged invisibly because CI never ran the vitest suite. Adds renderer-tests.yml gating vitest run --environment jsdom src on every PR (scoped to src/; the electron/*.cjs files are node --test and vendored node-pty isn't collectible).

…ed + gate renderer tests in CI

The running-turn timer's per-session clock (upstream NousResearch#41182) was clipped by the
upstream-sync's internal merge (e866446): ClientSessionState.turnStartedAt
and its tests survived, but all six seed/clear sites in use-message-stream.ts
and the view-sync mirror in use-session-state-cache.ts vanished — so the
statusbar timer never starts, and a backgrounded turn's elapsed time zeroes on
focus (the exact bug NousResearch#41182 fixed). Restored all seven sites to upstream's
shape. Renderer suite: 602/602 (first fully-green run; also passes under
TZ=UTC).

Because nothing in CI ran this suite, the clobber merged silently — same class
as the sleep/wake-recovery loss (#148). Add renderer-tests.yml gating
`vitest run --environment jsdom src` on every PR so the next one can't.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

🔎 Lint report: fix/turn-clock-merge-casualty vs origin/main

ruff

Total: 0 on HEAD, 0 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 0 pre-existing issues carried over.

ty (type checker)

Total: 10627 on HEAD, 10627 on base (➖ 0)

🆕 New issues: none

✅ Fixed issues: none

Unchanged: 5556 pre-existing issues carried over.

Diagnostics are surfaced as warnings — this check never fails the build.

@OmarB97 OmarB97 merged commit e78bbc3 into main Jun 10, 2026
26 checks passed
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