You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three SHOULD-FIX gaps from the pre-release audit (no blockers found):
1. serve /api responses now carry Cache-Control: no-store. The shared security
middleware set CSP/Referrer/nosniff but not no-store, so /api/invoke results
(transcripts, config, mutation results) were cacheable. Added an /api-scoped
no-store layer (static hashed assets stay cacheable). +test asserting no-store
on both a 200 result and an error response.
2. CLI model/version discovery now uses the resolved binary path. detectOpenCode
can return an absolute binary not on PATH (stock ~/.opencode/bin, a shim), but
getOpenCodeVersion/getAvailableModels shelled out to bare opencode, so such
installs fell back to manual entry. Threaded detection.binary through via
execFile. +test with a real executable stub.
3. Rust Desktop detection no longer misreports a Desktop user as none when env
vars are unset. from_process now falls back home, USERPROFILE, dirs::home_dir
and derives Windows AppData/Local from home when the env vars are absent,
matching the TS fallbacks. Extracted OpencodeDesktopEnv::resolve for a test.
Audit confirmed clean (no change needed): serve auth/Host/Origin/body-limit,
guard preservation, command parity, doctor plugin-cache, TUI badge color.
Gate: dashboard Rust 225/0, CLI 226/0, tsc + biome clean across both.
Co-authored-by: Alfonso [Magic Context] <288211368+alfonso-magic-context@users.noreply.github.com>
0 commit comments