DashboardopencodeStopAndWait defer errors

StopAndWait defer errors

Category: gotcha
Confidence: 1.00
ID: 01a07f79-8ce2-7cf7-ac69-6f891b470e0b
Project ID: c0425955-02bc-4c17-9af2-b114c00077e7
Cross-project: No
Recalled in other projects: 1
Source session: 0HnYWt04hkHDZf4Yf
Created: 2026-09-08 05:24:27
Updated: 2026-09-08 05:24:27

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 1d ago

Content

Trap: deferring StopAndWait looks like reliable cleanup because it runs on every return path, but an unchecked deferred error silently releases admission after D-Bus, subscription, or timeout failure while the PTY cgroup may remain. Fix: make cleanup an explicit lifecycle result, retain the capacity reservation until confirmed UnitRemoved, and surface cleanup failure instead of reporting successful termination.

Move to: