Skip to content

Fix fallback workspace key derivation in forceStopDaemon

699fe46
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

feat: Workspace filesystem cleanup #391

Fix fallback workspace key derivation in forceStopDaemon
699fe46
Select commit
Loading
Failed to load commit list.
GitHub Actions / warden: code-simplifier completed May 4, 2026 in 14m 15s

1 issue

code-simplifier: Found 1 issue (1 low)

Low

Nested ternary in shouldRecoverLockDir reduces clarity - `src/utils/fs-lock.ts:76-80`

The early-return branch uses a ternary that wraps an awaited expression and returns one of two object shapes. Per the skill's guidance to avoid compact ternaries in favor of explicit if/else, an if/else here would be clearer and easier to extend. User-visible impact: harder-to-read control flow for a critical lock-recovery decision.

Also found at:

  • src/utils/runtime-instance.ts:51-54
  • src/daemon.ts:152-171

Duration: 14m 12s · Tokens: 627.3k in / 2.1k out · Cost: $1.13 (+merge: $0.00)